Try to change the isdigitch() macro to something that Bruce won't roll

his eyes at quite so much...  (actually someone else pointed this out
to me a long time ago, but apparently I never fixed it)
This commit is contained in:
Garance A Drosehn 2004-06-01 23:27:11 +00:00
parent 8c2dd02b27
commit ecbb06f865
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129971

View File

@ -85,10 +85,10 @@ __FBSDID("$FreeBSD$");
#endif
/*
* isdigit is defined to work on an 'int', in the range 0 to 255, plus EOF.
* Define a wrapper which can take 'char', either signed or unsigned.
* isdigit takes an `int', but expects values in the range of unsigned char.
* This wrapper ensures that values from a 'char' end up in the correct range.
*/
#define isdigitch(Anychar) isdigit(((int) Anychar) & 255)
#define isdigitch(Anychar) isdigit((u_char)(Anychar))
int cflag; /* -c */
int eval; /* Exit value */