summaryrefslogtreecommitdiff
path: root/lib/mbswidth.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-23 14:59:39 +0000
committerJim Meyering <jim@meyering.net>2002-11-23 14:59:39 +0000
commitba986c2928e90b6e30d90a69066e6ae077222fba (patch)
tree8532ee64a1486c823c2e3de259dbe951013d9353 /lib/mbswidth.h
parent34c25ed945b375317ee4fbfb6cb5dfbea4d6fb9a (diff)
downloadcoreutils-ba986c2928e90b6e30d90a69066e6ae077222fba.tar.xz
Update from gnulib.
Diffstat (limited to 'lib/mbswidth.h')
-rw-r--r--lib/mbswidth.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/mbswidth.h b/lib/mbswidth.h
index 38911da00..40d4cba04 100644
--- a/lib/mbswidth.h
+++ b/lib/mbswidth.h
@@ -1,5 +1,5 @@
/* Determine the number of screen columns needed for a string.
- Copyright (C) 2000-2001 Free Software Foundation, Inc.
+ Copyright (C) 2000-2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -15,13 +15,7 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#ifndef PARAMS
-# if defined (__GNUC__) || __STDC__
-# define PARAMS(Args) Args
-# else
-# define PARAMS(Args) ()
-# endif
-#endif
+#include <stddef.h>
/* Optional flags to influence mbswidth/mbsnwidth behavior. */
@@ -36,8 +30,8 @@
/* Returns the number of screen columns needed for STRING. */
#define mbswidth gnu_mbswidth /* avoid clash with UnixWare 7.1.1 function */
-extern int mbswidth PARAMS ((const char *string, int flags));
+extern int mbswidth (const char *string, int flags);
/* Returns the number of screen columns needed for the NBYTES bytes
starting at BUF. */
-extern int mbsnwidth PARAMS ((const char *buf, size_t nbytes, int flags));
+extern int mbsnwidth (const char *buf, size_t nbytes, int flags);