]> Savannah Git Hosting - gnulib.git/commitdiff
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 70781de3b79fa5ccea3c5fce3b19a630560f292a..6130710a7dc986288a711bbc6506b729ad378f91 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 44d80f5ee55b5dfd2d49079eb4ee074a3f2c8216..acf5e2d22ead40757eea617b5f60a0dbb0f31769 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 ed38c192d2bb036062683bc7acf82169ac6cef47..495461f879f157283aeec7b6376f601cf8177b8e 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 8069f953cf8780bc1248937b0538cc304a616ae7..32695c11906f0fe9431da6f6b6bec814a6369b05 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 ad0804931d9318f5e2d80ecba8194c3c6ed4b00a..9b4029ebb2408f6732313774a18503f92fa91435 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 5b61c46df8e7c7d07c04cd2061ad2717d484a73f..b2fffb27893fc6454d3a6c5f397a172e90fe6845 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 fd0c97f6325819ffb92d53a634eff87de80e506b..e710a09ac73f9cfaa598bf67c08fd7f4becec6fc 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                                                                   \