From: Bruno Haible Date: Fri, 20 Jun 2003 20:55:34 +0000 (+0000) Subject: Assume ANSI C. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2ec12eb8a0dbf4713d7870199962a7c9167429e;p=pspp Assume ANSI C. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 179d0d286b..be7254f81a 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2003-06-20 Bruno Haible + + Assume C89, so PARAMS isn't needed. + * unicodeio.h (PARAMS): Remove. + * unicodeio.c: Don't use PARAMS. + 2003-06-18 Jim Meyering Merge changes from coreutils. diff --git a/lib/unicodeio.c b/lib/unicodeio.c index a146569e47..f31ac52765 100644 --- a/lib/unicodeio.c +++ b/lib/unicodeio.c @@ -1,6 +1,6 @@ /* Unicode character output to streams with locale dependent encoding. - Copyright (C) 2000-2002 Free Software Foundation, Inc. + Copyright (C) 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -112,10 +112,10 @@ utf8_wctomb (unsigned char *r, unsigned int wc) Assumes that the locale doesn't change between two calls. */ long unicode_to_mb (unsigned int code, - long (*success) PARAMS ((const char *buf, size_t buflen, - void *callback_arg)), - long (*failure) PARAMS ((unsigned int code, const char *msg, - void *callback_arg)), + long (*success) (const char *buf, size_t buflen, + void *callback_arg), + long (*failure) (unsigned int code, const char *msg, + void *callback_arg), void *callback_arg) { static int initialized; diff --git a/lib/unicodeio.h b/lib/unicodeio.h index 92fa23c335..89f87d5efc 100644 --- a/lib/unicodeio.h +++ b/lib/unicodeio.h @@ -1,6 +1,6 @@ /* Unicode character output to streams with locale dependent encoding. - Copyright (C) 2000-2002 Free Software Foundation, Inc. + Copyright (C) 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published @@ -23,23 +23,15 @@ # include # include -# ifndef PARAMS -# if defined PROTOTYPES || (defined __STDC__ && __STDC__) -# define PARAMS(Args) Args -# else -# define PARAMS(Args) () -# endif -# endif - /* Outputs the Unicode character CODE to the output stream STREAM. Upon failure, exit if exit_on_error is true, otherwise output a fallback notation. */ -extern void print_unicode_char PARAMS ((FILE *stream, unsigned int code, - int exit_on_error)); +extern void print_unicode_char (FILE *stream, unsigned int code, + int exit_on_error); /* Simple success callback that outputs the converted string. The STREAM is passed as callback_arg. */ -extern long fwrite_success_callback PARAMS ((const char *buf, size_t buflen, - void *callback_arg)); +extern long fwrite_success_callback (const char *buf, size_t buflen, + void *callback_arg); #endif