-/* $OpenBSD: misc.c,v 1.13 2013/10/27 18:31:24 guenther Exp $ */
+/* $OpenBSD: misc.c,v 1.14 2015/10/15 05:57:09 mmcc Exp $ */
/* misc - miscellaneous flex routines */
* PURPOSE.
*/
-/* $Header: /home/cvs/src/usr.bin/lex/misc.c,v 1.13 2013/10/27 18:31:24 guenther Exp $ */
+/* $Header: /home/cvs/src/usr.bin/lex/misc.c,v 1.14 2015/10/15 05:57:09 mmcc Exp $ */
#include "flexdef.h"
{
while ( *str )
{
- if ( ! isascii( (Char) *str ) || ! islower( *str ) )
+ if ( ! isascii( (Char) *str ) || ! islower( (Char) *str ) )
return 0;
++str;
}
{
while ( *str )
{
- if ( ! isascii( (Char) *str ) || ! isupper( *str ) )
+ if ( ! isascii( (Char) *str ) || ! isupper( (Char) *str ) )
return 0;
++str;
}
int sptr = 2;
while ( isascii( array[sptr] ) &&
- isxdigit( (char) array[sptr] ) )
+ isxdigit( array[sptr] ) )
/* Don't increment inside loop control
* because if isdigit() is a macro it might
* expand into multiple increments ...