diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/postscript | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/postscript')
-rw-r--r-- | src/cmd/postscript/common/rune.c | 2 | ||||
-rw-r--r-- | src/cmd/postscript/common/rune.h | 2 | ||||
-rw-r--r-- | src/cmd/postscript/misc/laserbar.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/postscript/common/rune.c b/src/cmd/postscript/common/rune.c index 01ee6ba8..ee5a79d0 100644 --- a/src/cmd/postscript/common/rune.c +++ b/src/cmd/postscript/common/rune.c @@ -21,7 +21,7 @@ enum Maskx = (1<<Bitx)-1, /* 0011 1111 */ Testx = Maskx ^ 0xFF, /* 1100 0000 */ - Bad = Runeerror, + Bad = Runeerror }; int diff --git a/src/cmd/postscript/common/rune.h b/src/cmd/postscript/common/rune.h index 2df5f767..0e7d0cb6 100644 --- a/src/cmd/postscript/common/rune.h +++ b/src/cmd/postscript/common/rune.h @@ -14,6 +14,6 @@ enum UTFmax = 3, /* maximum bytes per rune */ Runesync = 0x80, /* cannot represent part of a utf sequence (<) */ Runeself = 0x80, /* rune and utf sequences are the same (<) */ - Runeerror = 0x80, /* decoding error in utf */ + Runeerror = 0xFFFD /* decoding error in utf */ }; #endif diff --git a/src/cmd/postscript/misc/laserbar.c b/src/cmd/postscript/misc/laserbar.c index 2f61c277..7b45e667 100644 --- a/src/cmd/postscript/misc/laserbar.c +++ b/src/cmd/postscript/misc/laserbar.c @@ -43,7 +43,7 @@ static int code39[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; static void barprt(); |