commit fa059a4e3f19706674ed7314d5c4a764a1bc8222 from: rsc date: Sat Dec 17 13:00:00 2005 UTC better errno declarations commit - cd37aecf6edf53e2bd6c27f57b7d40cf57096b04 commit + fa059a4e3f19706674ed7314d5c4a764a1bc8222 blob - bc7deb6e0f2a4cbf49f9677b57a0177f866149ab blob + e66358879e3212f8493e18cc3dac6c8bd3b9b083 --- src/cmd/tcs/utf.c +++ src/cmd/tcs/utf.c @@ -2,7 +2,13 @@ #include #include #include +#ifdef PLAN9PORT +#include #else +extern int errno; +#define EILSEQ 123 +#endif +#else #include #include #include @@ -291,10 +297,6 @@ fullisorune(char *str, int n) return 0; } -#ifdef PLAN9 -int errno; -#endif - enum { T1 = 0x00, @@ -326,11 +328,6 @@ enum Wchar3 = (1UL<<(Bit3+2*Bitx))-1, Wchar4 = (1UL<<(Bit4+3*Bitx))-1, Wchar5 = (1UL<<(Bit5+4*Bitx))-1 - -#ifndef EILSEQ - , /* we hate ansi c's comma rules */ - EILSEQ = 123 -#endif /* PLAN9 */ }; int