version 1.32, 2000/11/01 19:37:18 |
version 1.33, 2001/04/05 04:38:06 |
Line 55 LIBKERN_INLINE u_long ulmax __P((u_long, |
|
Line 55 LIBKERN_INLINE u_long ulmax __P((u_long, |
|
LIBKERN_INLINE u_long ulmin __P((u_long, u_long)) __attribute__ ((unused)); |
LIBKERN_INLINE u_long ulmin __P((u_long, u_long)) __attribute__ ((unused)); |
LIBKERN_INLINE int abs __P((int)) __attribute__ ((unused)); |
LIBKERN_INLINE int abs __P((int)) __attribute__ ((unused)); |
|
|
|
LIBKERN_INLINE int isspace __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int isascii __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int isupper __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int islower __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int isalpha __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int isdigit __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int isxdigit __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int toupper __P((int)) __attribute__((__unused__)); |
|
LIBKERN_INLINE int tolower __P((int)) __attribute__((__unused__)); |
|
|
#ifdef LIBKERN_BODY |
#ifdef LIBKERN_BODY |
LIBKERN_INLINE int |
LIBKERN_INLINE int |
imax(a, b) |
imax(a, b) |
|
|
{ |
{ |
return(j < 0 ? -j : j); |
return(j < 0 ? -j : j); |
} |
} |
|
|
|
LIBKERN_INLINE int |
|
isspace(ch) |
|
int ch; |
|
{ |
|
|
|
return (ch == ' ' || (ch >= '\t' && ch <= '\r')); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
isascii(ch) |
|
int ch; |
|
{ |
|
|
|
return ((ch & ~0x7f) == 0); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
isupper(ch) |
|
int ch; |
|
{ |
|
|
|
return (ch >= 'A' && ch <= 'Z'); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
islower(ch) |
|
int ch; |
|
{ |
|
|
|
return (ch >= 'a' && ch <= 'z'); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
isalpha(ch) |
|
int ch; |
|
{ |
|
|
|
return (isupper(ch) || islower(ch)); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
isdigit(ch) |
|
int ch; |
|
{ |
|
|
|
return (ch >= '0' && ch <= '9'); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
isxdigit(ch) |
|
int ch; |
|
{ |
|
|
|
return (isdigit(ch) || |
|
(ch >= 'A' && ch <= 'F') || |
|
(ch >= 'a' && ch <= 'f')); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
toupper(ch) |
|
int ch; |
|
{ |
|
|
|
if (islower(ch)) |
|
return (ch - 0x20); |
|
return (ch); |
|
} |
|
|
|
LIBKERN_INLINE int |
|
tolower(ch) |
|
int ch; |
|
{ |
|
|
|
if (isupper(ch)) |
|
return (ch + 0x20); |
|
return (ch); |
|
} |
#endif |
#endif |
|
|
#ifdef NDEBUG /* tradition! */ |
#ifdef NDEBUG /* tradition! */ |