[BACK]Return to libkern.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / lib / libkern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/lib/libkern/libkern.h between version 1.32 and 1.33

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)
Line 111  abs(j)
Line 121  abs(j)
 {  {
         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! */

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

CVSweb <webmaster@jp.NetBSD.org>