Improve the check for departures from C89, and fix the departures
commit9b06af3367500dfe09067b047381e788969059cd
authorPaul Eggert <eggert@penguin.cs.ucla.edu>
Mon, 27 Nov 2006 10:27:46 +0000 (27 11:27 +0100)
committerJim Meyering <jim@meyering.net>
Mon, 27 Nov 2006 10:27:46 +0000 (27 11:27 +0100)
tree0b4858e328a2c8ceabf60d95fdfa0cc016faf5d4
parenta45772d52d86a2b1a39ee057b139af7eb36a2b76
Improve the check for departures from C89, and fix the departures
I found.
* Makefile.maint (my-distcheck): Also check for C89 compatibility
as best we can with GCC.
* src/stat.c (PRINTF_OPTION): Omit comma before } in enum
declaration; C89 doesn't allow this.
* src/dcgen: Don't generate string literals longer than
what C89 requires support for.
* src/cut.c (usage): Don't use string literals longer than
what C89 requires support for.
* src/date.c (usage): Likewise.
* src/dd.c (usage): Likewise.
* src/du.c (usage): Likewise.
* src/ls.c (usage): Likewise.
* src/od.c (usage): Likewise.
* src/readlink.c (usage): Likewise.
* src/seq.c (usage): Likewise.
* src/shred.c (usage): Likewise.
13 files changed:
ChangeLog
Makefile.maint
src/cut.c
src/date.c
src/dcgen
src/dd.c
src/du.c
src/ls.c
src/od.c
src/readlink.c
src/seq.c
src/shred.c
src/stat.c