Define and use macro, PARAMS, not __P.
authorJim Meyering <jim@meyering.net>
Thu, 17 Oct 1996 02:59:09 +0000 (02:59 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 17 Oct 1996 02:59:09 +0000 (02:59 +0000)
lib/linebuffer.h
lib/long-options.h
lib/md5.h
lib/memcasecmp.h
lib/strtol.c
lib/xstrtod.h
lib/xstrtol.h

index 70781de..6130710 100644 (file)
@@ -24,20 +24,21 @@ struct linebuffer
   char *buffer;
 };
 
-#undef __P
+#undef PARAMS
 #if defined (__STDC__) && __STDC__
-#define        __P(x) x
+# define PARAMS(x) x
 #else
-#define        __P(x) ()
+# define PARAMS(x) ()
 #endif
 
 /* Initialize linebuffer LINEBUFFER for use. */
-void initbuffer __P ((struct linebuffer *linebuffer));
+void initbuffer PARAMS ((struct linebuffer *linebuffer));
 
 /* Read an arbitrarily long line of text from STREAM into LINEBUFFER.
    Remove any newline.  Does not null terminate.
    Return LINEBUFFER, except at end of file return 0.  */
-struct linebuffer *readline __P ((struct linebuffer *linebuffer, FILE *stream));
+struct linebuffer *readline PARAMS ((struct linebuffer *linebuffer,
+                                    FILE *stream));
 
 /* Free linebuffer LINEBUFFER and its data, all allocated with malloc. */
-void freebuffer __P ((struct linebuffer *));
+void freebuffer PARAMS ((struct linebuffer *));
index 44d80f5..acf5e2d 100644 (file)
@@ -1,11 +1,12 @@
-#undef __P
+#undef PARAMS
 #if defined (__STDC__) && __STDC__
-# define __P(Args) Args
+# define PARAMS(Args) Args
 #else
-# define __P(Args) ()
+# define PARAMS(Args) ()
 #endif
 
 void
-  parse_long_options __P ((int _argc, char **_argv, const char *_command_name,
-                          const char *_package,
-                          const char *_version, void (*_usage) (int)));
+  parse_long_options PARAMS ((int _argc, char **_argv,
+                             const char *_command_name,
+                             const char *_package,
+                             const char *_version, void (*_usage) (int)));
index ed38c19..495461f 100644 (file)
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -63,11 +63,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 # endif
 #endif
 
-#undef __P
+#undef PARAMS
 #if defined (__STDC__) && __STDC__
-#define        __P(x) x
+# define PARAMS(x) x
 #else
-#define        __P(x) ()
+# define PARAMS(x) ()
 #endif
 
 /* Structure to save state of computation between the single steps.  */
@@ -86,30 +86,30 @@ struct md5_ctx
 
 /* Initialize structure containing state of computation.
    (RFC 1321, 3.3: Step 3)  */
-void md5_init_ctx __P ((struct md5_ctx *ctx));
+void md5_init_ctx PARAMS ((struct md5_ctx *ctx));
 
 /* Starting with the result of former calls of this function (or the
    initialzation function update the context for the next LEN bytes
    starting at BUFFER.
    It is necessary that LEN is a multiple of 64!!! */
-void md5_process_block __P ((const void *buffer, size_t len,
-                            struct md5_ctx *ctx));
+void md5_process_block PARAMS ((const void *buffer, size_t len,
+                               struct md5_ctx *ctx));
 
 /* Put result from CTX in first 16 bytes following RESBUF.  The result is
    always in little endian byte order, so that a byte-wise output yields
    to the wanted ASCII representation of the message digest.  */
-void *md5_read_ctx __P ((const struct md5_ctx *ctx, void *resbuf));
+void *md5_read_ctx PARAMS ((const struct md5_ctx *ctx, void *resbuf));
 
 
 /* Compute MD5 message digest for bytes read from STREAM.  The
    resulting message digest number will be written into the 16 bytes
    beginning at RESBLOCK.  */
-int md5_stream __P ((FILE *stream, void *resblock));
+int md5_stream PARAMS ((FILE *stream, void *resblock));
 
 /* Compute MD5 message digest for LEN bytes beginning at BUFFER.  The
    result is always in little endian byte order, so that a byte-wise
    output yields to the wanted ASCII representation of the message
    digest.  */
-void *md5_buffer __P ((const char *buffer, size_t len, void *resblock));
+void *md5_buffer PARAMS ((const char *buffer, size_t len, void *resblock));
 
 #endif
index 8069f95..32695c1 100644 (file)
@@ -1,9 +1,9 @@
-#undef __P
+#undef PARAMS
 #if defined (__STDC__) && __STDC__
-# define __P(args) args
+# define PARAMS(args) args
 #else
-# define __P(args) ()
+# define PARAMS(args) ()
 #endif
 
 int
-  memcasecmp __P((const void *vs1, const void *vs2, size_t n));
+  memcasecmp PARAMS ((const void *vs1, const void *vs2, size_t n));
index ad08049..9b4029e 100644 (file)
@@ -340,16 +340,16 @@ noconv:
 \f
 /* External user entry point.  */
 
-#undef __P
+#undef PARAMS
 #if defined (__STDC__) && __STDC__
-# define __P(args) args
+# define PARAMS(args) args
 #else
-# define __P(args) ()
+# define PARAMS(args) ()
 #endif
 
 /* Prototype.  */
-INT strtol __P ((const STRING_TYPE *nptr, STRING_TYPE **endptr,
-                           int base));
+INT strtol PARAMS ((const STRING_TYPE *nptr, STRING_TYPE **endptr,
+                   int base));
 
 
 INT
index 5b61c46..b2fffb2 100644 (file)
@@ -1,15 +1,14 @@
 #ifndef XSTRTOD_H
 # define XSTRTOD_H 1
 
-# ifndef __P
-#  if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
-#   define __P(Args) Args
-#  else
-#   define __P(Args) ()
-#  endif
-# endif
+#undef PARAMS
+#if defined (__STDC__) && __STDC__
+# define PARAMS(Args) Args
+#else
+# define PARAMS(Args) ()
+#endif
 
 int
-  xstrtod __P ((const char *str, const char **ptr, double *result));
+  xstrtod PARAMS ((const char *str, const char **ptr, double *result));
 
 #endif /* not XSTRTOD_H */
index fd0c97f..e710a09 100644 (file)
 # define __ZLONG_MAX LONG_MAX
 #endif
 
-#undef __P
+#undef PARAMS
 #if defined (__STDC__) && __STDC__
-#define        __P(x) x
+# define PARAMS(x) x
 #else
-#define        __P(x) ()
+# define PARAMS(x) ()
 #endif
 
 enum strtol_error
@@ -27,8 +27,8 @@ enum strtol_error
 typedef enum strtol_error strtol_error;
 
 strtol_error
-  __xstrtol __P ((const char *s, char **ptr, int base,
-                 __unsigned long int *val, const char *valid_suffixes));
+  __xstrtol PARAMS ((const char *s, char **ptr, int base,
+                    __unsigned long int *val, const char *valid_suffixes));
 
 #define _STRTOL_ERROR(exit_code, str, argument_type_string, err)       \
   do                                                                   \