From 6183aba9d786c33e5b4e08d781f554c7813be6c7 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 30 Jun 2018 10:43:26 +1000 Subject: [PATCH] Capitalize the $CC and $CXX environment variables --- example/crc32/crc32.cc | 4 ++-- example/gifplayer/gifplayer.c | 4 ++-- example/library/library.c | 8 ++++---- example/zcat/zcat.c | 4 ++-- test/c/std/adler32.c | 4 ++-- test/c/std/crc32.c | 4 ++-- test/c/std/deflate.c | 4 ++-- test/c/std/gif.c | 4 ++-- test/c/std/gzip.c | 4 ++-- test/c/std/lzw.c | 4 ++-- test/c/std/zlib.c | 4 ++-- 11 files changed, 24 insertions(+), 24 deletions(-) diff --git a/example/crc32/crc32.cc b/example/crc32/crc32.cc index 76eab10c..4ad8b0db 100644 --- a/example/crc32/crc32.cc +++ b/example/crc32/crc32.cc @@ -20,9 +20,9 @@ program only reads from stdin. This example program differs from the other example Wuffs programs in that it is written in C++, not C. -$cxx crc32.cc && ./a.out < ../../README.md; rm -f a.out +$CXX crc32.cc && ./a.out < ../../README.md; rm -f a.out -for a C++ compiler $cxx, such as clang++ or g++. +for a C++ compiler $CXX, such as clang++ or g++. */ #include diff --git a/example/gifplayer/gifplayer.c b/example/gifplayer/gifplayer.c index 2ada0dd5..4d33f452 100644 --- a/example/gifplayer/gifplayer.c +++ b/example/gifplayer/gifplayer.c @@ -16,9 +16,9 @@ gifplayer prints an ASCII representation of the GIF image read from stdin. To play Eadweard Muybridge's iconic galloping horse animation, run: -$cc gifplayer.c && ./a.out < ../../test/data/muybridge.gif; rm -f a.out +$CC gifplayer.c && ./a.out < ../../test/data/muybridge.gif; rm -f a.out -for a C compiler $cc, such as clang or gcc. +for a C compiler $CC, such as clang or gcc. Add the -color flag to a.out to get 24 bit color ("true color") terminal output (in the UTF-8 format) instead of plain ASCII output. Not all terminal emulators diff --git a/example/library/library.c b/example/library/library.c index bddba9b5..8eeb8610 100644 --- a/example/library/library.c +++ b/example/library/library.c @@ -17,17 +17,17 @@ library exercises the software libraries built by `wuffs genlib`. To exercise the static library: -$cc -static -I../../.. library.c ../../gen/lib/c/$cc-static/libwuffs.a +$CC -static -I../../.. library.c ../../gen/lib/c/$CC-static/libwuffs.a ./a.out rm -f a.out To exercise the dynamic library: -$cc -I../../.. library.c -L../../gen/lib/c/$cc-dynamic -lwuffs -LD_LIBRARY_PATH=../../gen/lib/c/$cc-dynamic ./a.out +$CC -I../../.. library.c -L../../gen/lib/c/$CC-dynamic -lwuffs +LD_LIBRARY_PATH=../../gen/lib/c/$CC-dynamic ./a.out rm -f a.out -for a C compiler $cc, such as clang or gcc. +for a C compiler $CC, such as clang or gcc. */ #include diff --git a/example/zcat/zcat.c b/example/zcat/zcat.c index d077dc46..9e31b02f 100644 --- a/example/zcat/zcat.c +++ b/example/zcat/zcat.c @@ -17,9 +17,9 @@ zcat decodes gzip'ed data to stdout. It is similar to the standard /bin/zcat program, except that this example program only reads from stdin. On Linux, it also self-imposes a SECCOMP_MODE_STRICT sandbox. To run: -$cc zcat.c && ./a.out < ../../test/data/romeo.txt.gz; rm -f a.out +$CC zcat.c && ./a.out < ../../test/data/romeo.txt.gz; rm -f a.out -for a C compiler $cc, such as clang or gcc. +for a C compiler $CC, such as clang or gcc. */ #include diff --git a/test/c/std/adler32.c b/test/c/std/adler32.c index 119ced1b..8cb5e4d2 100644 --- a/test/c/std/adler32.c +++ b/test/c/std/adler32.c @@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc. To manually run this test: -for cc in clang gcc; do - $cc -std=c99 -Wall -Werror adler32.c && ./a.out +for CC in clang gcc; do + $CC -std=c99 -Wall -Werror adler32.c && ./a.out rm -f a.out done diff --git a/test/c/std/crc32.c b/test/c/std/crc32.c index d602d8da..a3481ec6 100644 --- a/test/c/std/crc32.c +++ b/test/c/std/crc32.c @@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc. To manually run this test: -for cc in clang gcc; do - $cc -std=c99 -Wall -Werror crc32.c && ./a.out +for CC in clang gcc; do + $CC -std=c99 -Wall -Werror crc32.c && ./a.out rm -f a.out done diff --git a/test/c/std/deflate.c b/test/c/std/deflate.c index c3f2bcb2..aa2739d3 100644 --- a/test/c/std/deflate.c +++ b/test/c/std/deflate.c @@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc. To manually run this test: -for cc in clang gcc; do - $cc -std=c99 -Wall -Werror deflate.c && ./a.out +for CC in clang gcc; do + $CC -std=c99 -Wall -Werror deflate.c && ./a.out rm -f a.out done diff --git a/test/c/std/gif.c b/test/c/std/gif.c index ba399381..61896e8c 100644 --- a/test/c/std/gif.c +++ b/test/c/std/gif.c @@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc. To manually run this test: -for cc in clang gcc; do - $cc -std=c99 -Wall -Werror gif.c && ./a.out +for CC in clang gcc; do + $CC -std=c99 -Wall -Werror gif.c && ./a.out rm -f a.out done diff --git a/test/c/std/gzip.c b/test/c/std/gzip.c index 3fe7f463..aad81d65 100644 --- a/test/c/std/gzip.c +++ b/test/c/std/gzip.c @@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc. To manually run this test: -for cc in clang gcc; do - $cc -std=c99 -Wall -Werror gzip.c && ./a.out +for CC in clang gcc; do + $CC -std=c99 -Wall -Werror gzip.c && ./a.out rm -f a.out done diff --git a/test/c/std/lzw.c b/test/c/std/lzw.c index 38936051..25bf258e 100644 --- a/test/c/std/lzw.c +++ b/test/c/std/lzw.c @@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc. To manually run this test: -for cc in clang gcc; do - $cc -std=c99 -Wall -Werror lzw.c && ./a.out +for CC in clang gcc; do + $CC -std=c99 -Wall -Werror lzw.c && ./a.out rm -f a.out done diff --git a/test/c/std/zlib.c b/test/c/std/zlib.c index 11461c55..be29234f 100644 --- a/test/c/std/zlib.c +++ b/test/c/std/zlib.c @@ -20,8 +20,8 @@ giflib for GIF, libpng for PNG, etc. To manually run this test: -for cc in clang gcc; do - $cc -std=c99 -Wall -Werror zlib.c && ./a.out +for CC in clang gcc; do + $CC -std=c99 -Wall -Werror zlib.c && ./a.out rm -f a.out done