From 50bfab9998997645795c41305c448fc0e379f801 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Wed, 5 Aug 2020 11:39:09 +1000 Subject: [PATCH] Tweak example/*/*.cc compile instructions --- example/crc32/crc32.cc | 3 +-- example/json-to-cbor/json-to-cbor.cc | 3 +-- example/jsonfindptrs/jsonfindptrs.cc | 3 +-- example/jsonptr/jsonptr.cc | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/example/crc32/crc32.cc b/example/crc32/crc32.cc index e0e3261d..edc140b9 100644 --- a/example/crc32/crc32.cc +++ b/example/crc32/crc32.cc @@ -19,8 +19,7 @@ crc32 prints the CRC-32 checksum (using the IEEE polynomial) of stdin. It is similar to the standard /usr/bin/crc32 program, except that this example program only reads from stdin. -This example program differs from most other example Wuffs programs in that it -is written in C++, not C. +To run: $CXX crc32.cc && ./a.out < ../../README.md; rm -f a.out diff --git a/example/json-to-cbor/json-to-cbor.cc b/example/json-to-cbor/json-to-cbor.cc index 62e32d8a..7da6f419 100644 --- a/example/json-to-cbor/json-to-cbor.cc +++ b/example/json-to-cbor/json-to-cbor.cc @@ -22,8 +22,7 @@ See the "const char* g_usage" string below for details. ---- -This example program differs from most other example Wuffs programs in that it -is written in C++, not C. +To run: $CXX json-to-cbor.cc && ./a.out < ../../test/data/github-tags.json; rm -f a.out diff --git a/example/jsonfindptrs/jsonfindptrs.cc b/example/jsonfindptrs/jsonfindptrs.cc index b21ea0a7..87ce7391 100644 --- a/example/jsonfindptrs/jsonfindptrs.cc +++ b/example/jsonfindptrs/jsonfindptrs.cc @@ -49,8 +49,7 @@ This program (jsonfindptrs) rejects duplicate keys. ---- -This example program differs from most other example Wuffs programs in that it -is written in C++, not C. +To run: $CXX jsonfindptrs.cc && ./a.out < ../../test/data/github-tags.json; rm -f a.out diff --git a/example/jsonptr/jsonptr.cc b/example/jsonptr/jsonptr.cc index e088dc5b..64de0c29 100644 --- a/example/jsonptr/jsonptr.cc +++ b/example/jsonptr/jsonptr.cc @@ -86,8 +86,7 @@ it runs in a SECCOMP_MODE_STRICT sandbox. ---- -This example program differs from most other example Wuffs programs in that it -is written in C++, not C. +To run: $CXX jsonptr.cc && ./a.out < ../../test/data/github-tags.json; rm -f a.out