Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libkern Ansify's (use prototypes).



details:   https://anonhg.NetBSD.org/src/rev/31900689c631
branches:  trunk
changeset: 537632:31900689c631
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Oct 04 00:50:15 2002 +0000

description:
Ansify's (use prototypes).

diffstat:

 sys/lib/libkern/libkern.h |  65 +++++++++++++---------------------------------
 1 files changed, 19 insertions(+), 46 deletions(-)

diffs (162 lines):

diff -r 6c684c355376 -r 31900689c631 sys/lib/libkern/libkern.h
--- a/sys/lib/libkern/libkern.h Thu Oct 03 22:32:37 2002 +0000
+++ b/sys/lib/libkern/libkern.h Fri Oct 04 00:50:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libkern.h,v 1.43 2002/08/25 21:09:45 thorpej Exp $     */
+/*     $NetBSD: libkern.h,v 1.44 2002/10/04 00:50:15 matt Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -67,134 +67,107 @@
 
 #ifdef LIBKERN_BODY
 LIBKERN_INLINE int
-imax(a, b)
-       int a, b;
+imax(int a, int b)
 {
        return (a > b ? a : b);
 }
 LIBKERN_INLINE int
-imin(a, b)
-       int a, b;
+imin(int a, int b)
 {
        return (a < b ? a : b);
 }
 LIBKERN_INLINE long
-lmax(a, b)
-       long a, b;
+lmax(long a, long b)
 {
        return (a > b ? a : b);
 }
 LIBKERN_INLINE long
-lmin(a, b)
-       long a, b;
+lmin(long a, long b)
 {
        return (a < b ? a : b);
 }
 LIBKERN_INLINE u_int
-max(a, b)
-       u_int a, b;
+max(u_int a, u_int b)
 {
        return (a > b ? a : b);
 }
 LIBKERN_INLINE u_int
-min(a, b)
-       u_int a, b;
+min(u_int a, u_int b)
 {
        return (a < b ? a : b);
 }
 LIBKERN_INLINE u_long
-ulmax(a, b)
-       u_long a, b;
+ulmax(u_long a, u_long b)
 {
        return (a > b ? a : b);
 }
 LIBKERN_INLINE u_long
-ulmin(a, b)
-       u_long a, b;
+ulmin(u_long a, u_long b)
 {
        return (a < b ? a : b);
 }
 
 LIBKERN_INLINE int
-abs(j)
-       int j;
+abs(int j)
 {
        return(j < 0 ? -j : j);
 }
 
 LIBKERN_INLINE int
-isspace(ch)
-       int ch;
+isspace(int ch)
 {
-
        return (ch == ' ' || (ch >= '\t' && ch <= '\r'));
 }
 
 LIBKERN_INLINE int
-isascii(ch)
-       int ch;
+isascii(int ch)
 {
-
        return ((ch & ~0x7f) == 0);
 }
 
 LIBKERN_INLINE int
-isupper(ch)
-       int ch;
+isupper(int ch)
 {
-
        return (ch >= 'A' && ch <= 'Z');
 }
 
 LIBKERN_INLINE int
-islower(ch)
-       int ch;
+islower(int ch)
 {
-
        return (ch >= 'a' && ch <= 'z');
 }
 
 LIBKERN_INLINE int
-isalpha(ch)
-       int ch;
+isalpha(int ch)
 {
-
        return (isupper(ch) || islower(ch));
 }
 
 LIBKERN_INLINE int
-isdigit(ch)
-       int ch;
+isdigit(int ch)
 {
-
        return (ch >= '0' && ch <= '9');
 }
 
 LIBKERN_INLINE int
-isxdigit(ch)
-       int ch;
+isxdigit(int ch)
 {
-
        return (isdigit(ch) ||
            (ch >= 'A' && ch <= 'F') ||
            (ch >= 'a' && ch <= 'f'));
 }
 
 LIBKERN_INLINE int
-toupper(ch)
-       int ch;
+toupper(int ch)
 {
-
        if (islower(ch))
                return (ch - 0x20);
        return (ch);
 }
 
 LIBKERN_INLINE int
-tolower(ch)
-       int ch;
+tolower(int ch)
 {
-
        if (isupper(ch))
                return (ch + 0x20);
        return (ch);



Home | Main Index | Thread Index | Old Index