mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
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:
parent
8c2dd02b27
commit
ecbb06f865
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129971
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user