ansification: remove _AND

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz 2017-12-03 19:31:41 -06:00
parent 1e39db3062
commit 6783860a2e
517 changed files with 1771 additions and 1773 deletions

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (_fstat, (fd, buf), _DEFUN (_fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -17,7 +17,7 @@
/* /*
* isatty -- returns 1 if connected to a terminal device, * isatty -- returns 1 if connected to a terminal device,
* returns 0 if not. Since we're hooked up to a * returns 0 if not. Since we're hooked up to a
* serial port, we'll say yes _AND return a 1. * serial port, we'll say yes and return a 1.
*/ */
int int
_DEFUN (_isatty, (fd), _DEFUN (_isatty, (fd),

View File

@ -21,7 +21,7 @@ extern void _exit (int) __attribute__((__noreturn__));
*/ */
int int
_DEFUN (_kill, (pid, sig), _DEFUN (_kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (_stat, (path, buf), _DEFUN (_stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (fstat, (fd, buf), _DEFUN (fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -17,7 +17,7 @@
/* /*
* isatty -- returns 1 if connected to a terminal device, * isatty -- returns 1 if connected to a terminal device,
* returns 0 if not. Since we're hooked up to a * returns 0 if not. Since we're hooked up to a
* serial port, we'll say yes _AND return a 1. * serial port, we'll say yes and return a 1.
*/ */
int int
_DEFUN (isatty, (fd), _DEFUN (isatty, (fd),

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (kill, (pid, sig), _DEFUN (kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (stat, (path, buf), _DEFUN (stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (_fstat, (fd, buf), _DEFUN (_fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -17,7 +17,7 @@
/* /*
* isatty -- returns 1 if connected to a terminal device, * isatty -- returns 1 if connected to a terminal device,
* returns 0 if not. Since we're hooked up to a * returns 0 if not. Since we're hooked up to a
* serial port, we'll say yes _AND return a 1. * serial port, we'll say yes and return a 1.
*/ */
int int
_DEFUN (_isatty, (fd), _DEFUN (_isatty, (fd),

View File

@ -21,7 +21,7 @@ extern void _exit (int) __attribute__((__noreturn__));
*/ */
int int
_DEFUN (_kill, (pid, sig), _DEFUN (_kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -66,7 +66,7 @@ _DEFUN (_times, _times (buf),
*/ */
int int
_DEFUN (_gettimeofday, _gettimeofday (tv, tz), _DEFUN (_gettimeofday, _gettimeofday (tv, tz),
struct timeval *tv _AND struct timeval *tv,
void *tzvp) void *tzvp)
{ {
struct timezone *tz = tzvp; struct timezone *tz = tzvp;

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (_stat, (path, buf), _DEFUN (_stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (fstat, (fd, buf), _DEFUN (fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (_fstat, (fd, buf), _DEFUN (_fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -17,7 +17,7 @@
/* /*
* isatty -- returns 1 if connected to a terminal device, * isatty -- returns 1 if connected to a terminal device,
* returns 0 if not. Since we're hooked up to a * returns 0 if not. Since we're hooked up to a
* serial port, we'll say yes _AND return a 1. * serial port, we'll say yes and return a 1.
*/ */
int int
_DEFUN (_isatty, (fd), _DEFUN (_isatty, (fd),

View File

@ -21,7 +21,7 @@ extern void _exit (int) __attribute__((__noreturn__));
*/ */
int int
_DEFUN (_kill, (pid, sig), _DEFUN (_kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -23,8 +23,8 @@
*/ */
off_t off_t
_DEFUN (_lseek, (fd, offset, whence), _DEFUN (_lseek, (fd, offset, whence),
int fd _AND int fd,
off_t offset _AND off_t offset,
int whence) int whence)
{ {
errno = ESPIPE; errno = ESPIPE;

View File

@ -23,8 +23,8 @@
*/ */
off_t off_t
_DEFUN (_lseek, (fd, offset, whence), _DEFUN (_lseek, (fd, offset, whence),
int fd _AND int fd,
off_t offset _AND off_t offset,
int whence) int whence)
{ {
/* errno = ESPIPE; */ /* errno = ESPIPE; */

View File

@ -34,7 +34,7 @@ _DEFUN (_times, _times (buf),
*/ */
int int
_DEFUN (_gettimeofday, _gettimeofday (tv, tz), _DEFUN (_gettimeofday, _gettimeofday (tv, tz),
struct timeval *tv _AND struct timeval *tv,
void *tzvp) void *tzvp)
{ {
struct timezone *tz = tzvp; struct timezone *tz = tzvp;

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (_stat, (path, buf), _DEFUN (_stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -17,7 +17,7 @@
/* /*
* isatty -- returns 1 if connected to a terminal device, * isatty -- returns 1 if connected to a terminal device,
* returns 0 if not. Since we're hooked up to a * returns 0 if not. Since we're hooked up to a
* serial port, we'll say yes _AND return a 1. * serial port, we'll say yes, return a 1.
*/ */
int int
_DEFUN (isatty, (fd), _DEFUN (isatty, (fd),

View File

@ -19,7 +19,7 @@
*/ */
int int
_DEFUN (kill, (pid, sig), _DEFUN (kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -13,8 +13,8 @@ extern int errno;
int int
_DEFUN (_chown, (path, owner, group), _DEFUN (_chown, (path, owner, group),
const char *path _AND const char *path,
uid_t owner _AND uid_t owner,
gid_t group) gid_t group)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,8 +12,8 @@ extern int errno;
int int
_DEFUN (_execve, (name, argv, env), _DEFUN (_execve, (name, argv, env),
char *name _AND char *name,
char **argv _AND char **argv,
char **env) char **env)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -14,7 +14,7 @@ extern int errno;
int int
_DEFUN (_fstat, (fildes, st), _DEFUN (_fstat, (fildes, st),
int fildes _AND int fildes,
struct stat *st) struct stat *st)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -16,7 +16,7 @@ struct timeval;
int int
_DEFUN (_gettimeofday, (ptimeval, ptimezone), _DEFUN (_gettimeofday, (ptimeval, ptimezone),
struct timeval *ptimeval _AND struct timeval *ptimeval,
void *ptimezone) void *ptimezone)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,7 +12,7 @@ extern int errno;
int int
_DEFUN (_kill, (pid, sig), _DEFUN (_kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,7 +12,7 @@ extern int errno;
int int
_DEFUN (_link, (existing, new), _DEFUN (_link, (existing, new),
char *existing _AND char *existing,
char *new) char *new)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,8 +12,8 @@ extern int errno;
int int
_DEFUN (_lseek, (file, ptr, dir), _DEFUN (_lseek, (file, ptr, dir),
int file _AND int file,
int ptr _AND int ptr,
int dir) int dir)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,8 +12,8 @@ extern int errno;
int int
_DEFUN (_open, (file, flags, mode), _DEFUN (_open, (file, flags, mode),
char *file _AND char *file,
int flags _AND int flags,
int mode) int mode)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,8 +12,8 @@ extern int errno;
int int
_DEFUN (_read, (file, ptr, len), _DEFUN (_read, (file, ptr, len),
int file _AND int file,
char *ptr _AND char *ptr,
int len) int len)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -13,8 +13,8 @@ extern int errno;
int int
_DEFUN (_readlink, (path, buf, bufsize), _DEFUN (_readlink, (path, buf, bufsize),
const char *path _AND const char *path,
char *buf _AND char *buf,
size_t bufsize) size_t bufsize)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -14,7 +14,7 @@ extern int errno;
int int
_DEFUN (_stat, (file, st), _DEFUN (_stat, (file, st),
const char *file _AND const char *file,
struct stat *st) struct stat *st)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,7 +12,7 @@ extern int errno;
int int
_DEFUN (_symlink, (path1, path2), _DEFUN (_symlink, (path1, path2),
const char *path1 _AND const char *path1,
const char *path2) const char *path2)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -12,8 +12,8 @@ extern int errno;
int int
_DEFUN (_write, (file, ptr, len), _DEFUN (_write, (file, ptr, len),
int file _AND int file,
char *ptr _AND char *ptr,
int len) int len)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -21,8 +21,8 @@
*/ */
off_t off_t
_DEFUN (lseek, (fd, offset, whence), _DEFUN (lseek, (fd, offset, whence),
int fd _AND int fd,
off_t offset _AND off_t offset,
int whence) int whence)
{ {
errno = ESPIPE; errno = ESPIPE;

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (_fstat, (fd, buf), _DEFUN (_fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -19,7 +19,7 @@
*/ */
int int
_DEFUN (_kill, (pid, sig), _DEFUN (_kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -21,8 +21,8 @@
*/ */
off_t off_t
_DEFUN (_lseek, (fd, offset, whence), _DEFUN (_lseek, (fd, offset, whence),
int fd _AND int fd,
off_t offset _AND off_t offset,
int whence) int whence)
{ {
errno = ESPIPE; errno = ESPIPE;

View File

@ -21,8 +21,8 @@
*/ */
int int
_DEFUN (_open, (buf, flags, mode), _DEFUN (_open, (buf, flags, mode),
const char *buf _AND const char *buf,
int flags _AND int flags,
int mode) int mode)
{ {
errno = EIO; errno = EIO;

View File

@ -22,8 +22,8 @@ extern char _DEFUN_VOID (inbyte);
*/ */
int int
_DEFUN (_read, (fd, buf, nbytes), _DEFUN (_read, (fd, buf, nbytes),
int fd _AND int fd,
char *buf _AND char *buf,
int nbytes) int nbytes)
{ {
int i = 0; int i = 0;

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (_stat, (path, buf), _DEFUN (_stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -23,8 +23,8 @@ extern int _EXFUN (outbyte, (char x));
*/ */
int int
_DEFUN (_write, (fd, buf, nbytes), _DEFUN (_write, (fd, buf, nbytes),
int fd _AND int fd,
char *buf _AND char *buf,
int nbytes) int nbytes)
{ {
int i; int i;

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (_fstat, (fd, buf), _DEFUN (_fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -17,7 +17,7 @@
/* /*
* isatty -- returns 1 if connected to a terminal device, * isatty -- returns 1 if connected to a terminal device,
* returns 0 if not. Since we're hooked up to a * returns 0 if not. Since we're hooked up to a
* serial port, we'll say yes _AND return a 1. * serial port, we'll say yes and return a 1.
*/ */
int int
_DEFUN (_isatty, (fd), _DEFUN (_isatty, (fd),

View File

@ -21,7 +21,7 @@ extern void _exit (int) __attribute__((__noreturn__));
*/ */
int int
_DEFUN (_kill, (pid, sig), _DEFUN (_kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -101,7 +101,7 @@ _DEFUN (time, time (t),
*/ */
int int
_DEFUN (_gettimeofday, _gettimeofday (tv, tz), _DEFUN (_gettimeofday, _gettimeofday (tv, tz),
struct timeval *tv _AND struct timeval *tv,
void *tzvp) void *tzvp)
{ {
struct timezone *tz = tzvp; struct timezone *tz = tzvp;

View File

@ -23,8 +23,8 @@
*/ */
off_t off_t
_DEFUN (_lseek, (fd, offset, whence), _DEFUN (_lseek, (fd, offset, whence),
int fd _AND int fd,
off_t offset _AND off_t offset,
int whence) int whence)
{ {
errno = ESPIPE; errno = ESPIPE;

View File

@ -23,8 +23,8 @@
*/ */
off_t off_t
_DEFUN (_lseek, (fd, offset, whence), _DEFUN (_lseek, (fd, offset, whence),
int fd _AND int fd,
off_t offset _AND off_t offset,
int whence) int whence)
{ {
/* errno = ESPIPE; */ /* errno = ESPIPE; */

View File

@ -65,7 +65,7 @@ _DEFUN (_times, _times (buf),
*/ */
int int
_DEFUN (_gettimeofday, _gettimeofday (tv, tz), _DEFUN (_gettimeofday, _gettimeofday (tv, tz),
struct timeval *tv _AND struct timeval *tv,
void *tzvp) void *tzvp)
{ {
struct timezone *tz = tzvp; struct timezone *tz = tzvp;

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (_stat, (path, buf), _DEFUN (_stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -21,8 +21,8 @@
*/ */
int int
_DEFUN (open, (buf, flags, mode), _DEFUN (open, (buf, flags, mode),
const char *buf _AND const char *buf,
int flags _AND int flags,
int mode) int mode)
{ {
errno = EIO; errno = EIO;

View File

@ -22,8 +22,8 @@ extern char _DEFUN_VOID (inbyte);
*/ */
int int
_DEFUN (read, (fd, buf, nbytes), _DEFUN (read, (fd, buf, nbytes),
int fd _AND int fd,
char *buf _AND char *buf,
int nbytes) int nbytes)
{ {
int i = 0; int i = 0;

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (stat, (path, buf), _DEFUN (stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (kill, (pid, sig), _DEFUN (kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -23,8 +23,8 @@ extern int _EXFUN (outbyte, (char x));
*/ */
int int
_DEFUN (write, (fd, buf, nbytes), _DEFUN (write, (fd, buf, nbytes),
int fd _AND int fd,
char *buf _AND char *buf,
int nbytes) int nbytes)
{ {
int i; int i;

View File

@ -31,7 +31,7 @@ int _DEFUN(_getpid,(),)
} }
int _DEFUN(_kill,(pid, sig), int _DEFUN(_kill,(pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
errno = ENOSYS; errno = ENOSYS;

View File

@ -20,7 +20,7 @@
*/ */
int int
_DEFUN (_fstat, (fd, buf), _DEFUN (_fstat, (fd, buf),
int fd _AND int fd,
struct stat *buf) struct stat *buf)
{ {
buf->st_mode = S_IFCHR; /* Always pretend to be a tty */ buf->st_mode = S_IFCHR; /* Always pretend to be a tty */

View File

@ -17,7 +17,7 @@
/* /*
* isatty -- returns 1 if connected to a terminal device, * isatty -- returns 1 if connected to a terminal device,
* returns 0 if not. Since we're hooked up to a * returns 0 if not. Since we're hooked up to a
* serial port, we'll say yes _AND return a 1. * serial port, we'll say yes and return a 1.
*/ */
int int
_DEFUN (_isatty, (fd), _DEFUN (_isatty, (fd),

View File

@ -19,7 +19,7 @@
*/ */
int int
_DEFUN (_kill, (pid, sig), _DEFUN (_kill, (pid, sig),
int pid _AND int pid,
int sig) int sig)
{ {
if(pid == __MYPID) if(pid == __MYPID)

View File

@ -21,8 +21,8 @@
*/ */
off_t off_t
_DEFUN (_lseek, (fd, offset, whence), _DEFUN (_lseek, (fd, offset, whence),
int fd _AND int fd,
off_t offset _AND off_t offset,
int whence) int whence)
{ {
errno = ESPIPE; errno = ESPIPE;

View File

@ -21,8 +21,8 @@
*/ */
int int
_DEFUN (_open, (buf, flags, mode), _DEFUN (_open, (buf, flags, mode),
const char *buf _AND const char *buf,
int flags _AND int flags,
int mode) int mode)
{ {
errno = EIO; errno = EIO;

View File

@ -21,7 +21,7 @@
*/ */
int int
_DEFUN (_stat, (path, buf), _DEFUN (_stat, (path, buf),
const char *path _AND const char *path,
struct stat *buf) struct stat *buf)
{ {
errno = EIO; errno = EIO;

View File

@ -12,8 +12,8 @@
error_t error_t
_DEFUN (argz_add, (argz, argz_len, str), _DEFUN (argz_add, (argz, argz_len, str),
char **argz _AND char **argz,
size_t *argz_len _AND size_t *argz_len,
const char *str) const char *str)
{ {
int len_to_add = 0; int len_to_add = 0;

View File

@ -12,9 +12,9 @@
error_t error_t
_DEFUN (argz_add_sep, (argz, argz_len, str, sep), _DEFUN (argz_add_sep, (argz, argz_len, str, sep),
char **argz _AND char **argz,
size_t *argz_len _AND size_t *argz_len,
const char *str _AND const char *str,
int sep) int sep)
{ {
char *str_argz = 0; char *str_argz = 0;

View File

@ -12,9 +12,9 @@
error_t error_t
_DEFUN (argz_append, (argz, argz_len, buf, buf_len), _DEFUN (argz_append, (argz, argz_len, buf, buf_len),
char **argz _AND char **argz,
size_t *argz_len _AND size_t *argz_len,
const char *buf _AND const char *buf,
size_t buf_len) size_t buf_len)
{ {
if (buf_len) if (buf_len)

View File

@ -11,7 +11,7 @@
size_t size_t
_DEFUN (argz_count, (argz, argz_len), _DEFUN (argz_count, (argz, argz_len),
const char *argz _AND const char *argz,
size_t argz_len) size_t argz_len)
{ {
int i; int i;

View File

@ -12,8 +12,8 @@
error_t error_t
_DEFUN (argz_create, (argv, argz, argz_len), _DEFUN (argz_create, (argv, argz, argz_len),
char *const argv[] _AND char *const argv[],
char **argz _AND char **argz,
size_t *argz_len) size_t *argz_len)
{ {
int argc = 0; int argc = 0;

View File

@ -12,9 +12,9 @@
error_t error_t
_DEFUN (argz_create_sep, (string, sep, argz, argz_len), _DEFUN (argz_create_sep, (string, sep, argz, argz_len),
const char *string _AND const char *string,
int sep _AND int sep,
char **argz _AND char **argz,
size_t *argz_len) size_t *argz_len)
{ {
int len = 0; int len = 0;

View File

@ -12,8 +12,8 @@
error_t error_t
_DEFUN (argz_delete, (argz, argz_len, entry), _DEFUN (argz_delete, (argz, argz_len, entry),
char **argz _AND char **argz,
size_t *argz_len _AND size_t *argz_len,
char *entry) char *entry)
{ {
int len = 0; int len = 0;

View File

@ -10,8 +10,8 @@
void void
_DEFUN (argz_extract, (argz, argz_len, argv), _DEFUN (argz_extract, (argz, argz_len, argv),
char *argz _AND char *argz,
size_t argz_len _AND size_t argz_len,
char **argv) char **argv)
{ {
size_t i = 0; size_t i = 0;

View File

@ -14,9 +14,9 @@
error_t error_t
_DEFUN (argz_insert, (argz, argz_len, before, entry), _DEFUN (argz_insert, (argz, argz_len, before, entry),
char **argz _AND char **argz,
size_t *argz_len _AND size_t *argz_len,
char *before _AND char *before,
const char *entry) const char *entry)
{ {
int len = 0; int len = 0;

View File

@ -12,8 +12,8 @@
char * char *
_DEFUN (argz_next, (argz, argz_len, entry), _DEFUN (argz_next, (argz, argz_len, entry),
char *argz _AND char *argz,
size_t argz_len _AND size_t argz_len,
const char *entry) const char *entry)
{ {
if (entry) if (entry)

View File

@ -14,10 +14,10 @@
error_t error_t
_DEFUN (argz_replace, (argz, argz_len, str, with, replace_count), _DEFUN (argz_replace, (argz, argz_len, str, with, replace_count),
char **argz _AND char **argz,
size_t *argz_len _AND size_t *argz_len,
const char *str _AND const char *str,
const char *with _AND const char *with,
unsigned *replace_count) unsigned *replace_count)
{ {
const int str_len = strlen(str); const int str_len = strlen(str);

View File

@ -11,8 +11,8 @@
void void
_DEFUN (argz_stringify, (argz, argz_len, sep), _DEFUN (argz_stringify, (argz, argz_len, sep),
char *argz _AND char *argz,
size_t argz_len _AND size_t argz_len,
int sep) int sep)
{ {
size_t i; size_t i;

View File

@ -13,9 +13,9 @@
error_t error_t
_DEFUN (envz_add, (envz, envz_len, name, value), _DEFUN (envz_add, (envz, envz_len, name, value),
char **envz _AND char **envz,
size_t *envz_len _AND size_t *envz_len,
const char *name _AND const char *name,
const char *value) const char *value)
{ {
char *concat = NULL; char *concat = NULL;

View File

@ -14,8 +14,8 @@
char * char *
_DEFUN (envz_entry, (envz, envz_len, name), _DEFUN (envz_entry, (envz, envz_len, name),
const char *envz _AND const char *envz,
size_t envz_len _AND size_t envz_len,
const char *name) const char *name)
{ {
char *buf_ptr = (char *)envz; char *buf_ptr = (char *)envz;

View File

@ -14,8 +14,8 @@
char * char *
_DEFUN (envz_get, (envz, envz_len, name), _DEFUN (envz_get, (envz, envz_len, name),
const char *envz _AND const char *envz,
size_t envz_len _AND size_t envz_len,
const char *name) const char *name)
{ {
char *buf_ptr = (char *)envz; char *buf_ptr = (char *)envz;

View File

@ -13,10 +13,10 @@
error_t error_t
_DEFUN (envz_merge, (envz, envz_len, envz2, envz2_len, override), _DEFUN (envz_merge, (envz, envz_len, envz2, envz2_len, override),
char **envz _AND char **envz,
size_t *envz_len _AND size_t *envz_len,
const char *envz2 _AND const char *envz2,
size_t envz2_len _AND size_t envz2_len,
int override) int override)
{ {
char *entry = NULL; char *entry = NULL;

View File

@ -13,8 +13,8 @@
void void
_DEFUN (envz_remove, (envz, envz_len, name), _DEFUN (envz_remove, (envz, envz_len, name),
char **envz _AND char **envz,
size_t *envz_len _AND size_t *envz_len,
const char *name) const char *name)
{ {
char *entry = NULL; char *entry = NULL;

View File

@ -13,7 +13,7 @@
void void
_DEFUN (envz_strip, (envz, envz_len), _DEFUN (envz_strip, (envz, envz_len),
char **envz _AND char **envz,
size_t *envz_len) size_t *envz_len)
{ {
char *entry = 0; char *entry = 0;

View File

@ -38,7 +38,7 @@ No supporting OS subroutines are required.
#include "local.h" #include "local.h"
int int
_DEFUN(iswctype,(c, desc), wint_t c _AND wctype_t desc) _DEFUN(iswctype,(c, desc), wint_t c, wctype_t desc)
{ {
switch (desc) switch (desc)
{ {

View File

@ -48,7 +48,7 @@
#define JP_EUCJP 3 #define JP_EUCJP 3
static wint_t static wint_t
_DEFUN (__jp2uc, (c, type), wint_t c _AND int type) _DEFUN (__jp2uc, (c, type), wint_t c, int type)
{ {
int index, adj; int index, adj;
unsigned char byte1, byte2; unsigned char byte1, byte2;

View File

@ -77,8 +77,8 @@ No supporting OS subroutines are required.
wint_t wint_t
_DEFUN (_towctrans_r, (r, c, w), _DEFUN (_towctrans_r, (r, c, w),
struct _reent *r _AND struct _reent *r,
wint_t c _AND wint_t c,
wctrans_t w) wctrans_t w)
{ {
if (w == WCT_TOLOWER) if (w == WCT_TOLOWER)
@ -95,7 +95,7 @@ _DEFUN (_towctrans_r, (r, c, w),
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
wint_t wint_t
_DEFUN (towctrans, (c, w), _DEFUN (towctrans, (c, w),
wint_t c _AND wint_t c,
wctrans_t w) wctrans_t w)
{ {
return _towctrans_r (_REENT, c, w); return _towctrans_r (_REENT, c, w);

View File

@ -76,7 +76,7 @@ No supporting OS subroutines are required.
wctrans_t wctrans_t
_DEFUN (_wctrans_r, (r, c), _DEFUN (_wctrans_r, (r, c),
struct _reent *r _AND struct _reent *r,
const char *c) const char *c)
{ {
if (!strcmp (c, "tolower")) if (!strcmp (c, "tolower"))

View File

@ -77,7 +77,7 @@ No supporting OS subroutines are required.
wctype_t wctype_t
_DEFUN (_wctype_r, (r, c), _DEFUN (_wctype_r, (r, c),
struct _reent *r _AND struct _reent *r,
const char *c) const char *c)
{ {
switch (*c) switch (*c)

View File

@ -102,7 +102,7 @@ static euc_cs_desc_t euc_kr_cs_desc [] =
#if defined (ICONV_FROM_UCS_CES_EUC) #if defined (ICONV_FROM_UCS_CES_EUC)
static _VOID_PTR static _VOID_PTR
_DEFUN(euc_from_ucs_init, (rptr, encoding), _DEFUN(euc_from_ucs_init, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int i; int i;
@ -166,7 +166,7 @@ error1:
static size_t static size_t
_DEFUN(euc_from_ucs_close, (rptr, data), _DEFUN(euc_from_ucs_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
int i; int i;
@ -186,9 +186,9 @@ _DEFUN(euc_from_ucs_close, (rptr, data),
static size_t static size_t
_DEFUN(euc_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(euc_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
register ucs4_t in _AND register ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
int i; int i;
@ -262,7 +262,7 @@ _DEFUN(euc_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_EUC) #if defined (ICONV_TO_UCS_CES_EUC)
static _VOID_PTR static _VOID_PTR
_DEFUN(euc_to_ucs_init, (rptr, encoding), _DEFUN(euc_to_ucs_init, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int i; int i;
@ -326,7 +326,7 @@ error1:
static size_t static size_t
_DEFUN(euc_to_ucs_close, (rptr, data), _DEFUN(euc_to_ucs_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
int i; int i;
@ -346,8 +346,8 @@ _DEFUN(euc_to_ucs_close, (rptr, data),
static ucs4_t static ucs4_t
_DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(euc_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
int i; int i;

View File

@ -41,9 +41,9 @@
#if defined (ICONV_FROM_UCS_CES_TABLE_PCS) #if defined (ICONV_FROM_UCS_CES_TABLE_PCS)
static size_t static size_t
_DEFUN(table_pcs_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(table_pcs_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
ucs4_t in _AND ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
if (*outbytesleft < 1) if (*outbytesleft < 1)
@ -66,7 +66,7 @@ _DEFUN(table_pcs_convert_from_ucs, (data, in, outbuf, outbytesleft),
static _VOID_PTR static _VOID_PTR
_DEFUN(table_pcs_from_ucs_init, (rptr, encoding), _DEFUN(table_pcs_from_ucs_init, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
return _iconv_from_ucs_ces_handlers_table.init (rptr, encoding); return _iconv_from_ucs_ces_handlers_table.init (rptr, encoding);
@ -74,7 +74,7 @@ _DEFUN(table_pcs_from_ucs_init, (rptr, encoding),
static size_t static size_t
_DEFUN(table_pcs_from_ucs_close, (rptr, data), _DEFUN(table_pcs_from_ucs_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
return _iconv_from_ucs_ces_handlers_table.close (rptr, data); return _iconv_from_ucs_ces_handlers_table.close (rptr, data);
@ -92,8 +92,8 @@ _DEFUN(table_pcs_from_ucs_get_mb_cur_max, (data),
#if defined (ICONV_TO_UCS_CES_TABLE_PCS) #if defined (ICONV_TO_UCS_CES_TABLE_PCS)
static ucs4_t static ucs4_t
_DEFUN(table_pcs_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(table_pcs_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
if (*inbytesleft < 1) if (*inbytesleft < 1)
@ -114,7 +114,7 @@ _DEFUN(table_pcs_convert_to_ucs, (data, inbuf, inbytesleft),
static _VOID_PTR static _VOID_PTR
_DEFUN(table_pcs_to_ucs_init, (rptr, encoding), _DEFUN(table_pcs_to_ucs_init, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
return _iconv_to_ucs_ces_handlers_table.init (rptr, encoding); return _iconv_to_ucs_ces_handlers_table.init (rptr, encoding);
@ -122,7 +122,7 @@ _DEFUN(table_pcs_to_ucs_init, (rptr, encoding),
static size_t static size_t
_DEFUN(table_pcs_to_ucs_close, (rptr, data), _DEFUN(table_pcs_to_ucs_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
return _iconv_to_ucs_ces_handlers_table.close (rptr, data); return _iconv_to_ucs_ces_handlers_table.close (rptr, data);

View File

@ -75,7 +75,7 @@ _EXFUN(load_file, (struct _reent *rptr, _CONST char *name, int direction));
*/ */
static size_t static size_t
_DEFUN(table_close, (rptr, data), _DEFUN(table_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
_CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data; _CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
@ -90,7 +90,7 @@ _DEFUN(table_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_TABLE) #if defined (ICONV_FROM_UCS_CES_TABLE)
static _VOID_PTR static _VOID_PTR
_DEFUN(table_init_from_ucs, (rptr, encoding), _DEFUN(table_init_from_ucs, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int i; int i;
@ -128,9 +128,9 @@ _DEFUN(table_init_from_ucs, (rptr, encoding),
static size_t static size_t
_DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
ucs4_t in _AND ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
_CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data; _CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
@ -173,7 +173,7 @@ _DEFUN(table_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_TABLE) #if defined (ICONV_TO_UCS_CES_TABLE)
static _VOID_PTR static _VOID_PTR
_DEFUN(table_init_to_ucs, (rptr, encoding), _DEFUN(table_init_to_ucs, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int i; int i;
@ -211,8 +211,8 @@ _DEFUN(table_init_to_ucs, (rptr, encoding),
static ucs4_t static ucs4_t
_DEFUN(table_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(table_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
_CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data; _CONST iconv_ccs_desc_t *ccsp = (iconv_ccs_desc_t *)data;
@ -304,7 +304,7 @@ _iconv_from_ucs_ces_handlers_table =
*/ */
static __inline ucs2_t static __inline ucs2_t
_DEFUN(find_code_speed, (code, tblp), _DEFUN(find_code_speed, (code, tblp),
ucs2_t code _AND ucs2_t code,
_CONST __uint16_t *tblp) _CONST __uint16_t *tblp)
{ {
int idx = tblp[code >> 8]; int idx = tblp[code >> 8];
@ -327,7 +327,7 @@ _DEFUN(find_code_speed, (code, tblp),
*/ */
static __inline ucs2_t static __inline ucs2_t
_DEFUN(find_code_speed_8bit, (code, tblp), _DEFUN(find_code_speed_8bit, (code, tblp),
ucs2_t code _AND ucs2_t code,
_CONST unsigned char *tblp) _CONST unsigned char *tblp)
{ {
int idx; int idx;
@ -367,7 +367,7 @@ _DEFUN(find_code_speed_8bit, (code, tblp),
*/ */
static ucs2_t static ucs2_t
_DEFUN(find_code_size, (code, tblp), _DEFUN(find_code_size, (code, tblp),
ucs2_t code _AND ucs2_t code,
_CONST __uint16_t *tblp) _CONST __uint16_t *tblp)
{ {
int first, last, cur, center; int first, last, cur, center;
@ -461,8 +461,8 @@ _DEFUN(find_code_size, (code, tblp),
*/ */
static _CONST iconv_ccs_desc_t * static _CONST iconv_ccs_desc_t *
_DEFUN(load_file, (rptr, name, direction), _DEFUN(load_file, (rptr, name, direction),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *name _AND _CONST char *name,
int direction) int direction)
{ {
int fd; int fd;

View File

@ -45,9 +45,9 @@
#if defined (ICONV_FROM_UCS_CES_UCS_2_INTERNAL) #if defined (ICONV_FROM_UCS_CES_UCS_2_INTERNAL)
static size_t static size_t
_DEFUN(ucs_2_internal_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(ucs_2_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
register ucs4_t in _AND register ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
if (in > 0x0000FFFF) if (in > 0x0000FFFF)
@ -67,8 +67,8 @@ _DEFUN(ucs_2_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_2_INTERNAL) #if defined (ICONV_TO_UCS_CES_UCS_2_INTERNAL)
static ucs4_t static ucs4_t
_DEFUN(ucs_2_internal_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(ucs_2_internal_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
register ucs4_t res; register ucs4_t res;

View File

@ -51,7 +51,7 @@
static _VOID_PTR static _VOID_PTR
_DEFUN(ucs_2_init, (rptr, encoding), _DEFUN(ucs_2_init, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int *data; int *data;
@ -69,7 +69,7 @@ _DEFUN(ucs_2_init, (rptr, encoding),
static size_t static size_t
_DEFUN(ucs_2_close, (rptr, data), _DEFUN(ucs_2_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
_free_r (rptr, data); _free_r (rptr, data);
@ -79,9 +79,9 @@ _DEFUN(ucs_2_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_UCS_2) #if defined (ICONV_FROM_UCS_CES_UCS_2)
static size_t static size_t
_DEFUN(ucs_2_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(ucs_2_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
ucs4_t in _AND ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
if ((in >= 0x0000D800 && in <= 0x0000DFFF) /* Surrogate character */ if ((in >= 0x0000D800 && in <= 0x0000DFFF) /* Surrogate character */
@ -106,8 +106,8 @@ _DEFUN(ucs_2_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_2) #if defined (ICONV_TO_UCS_CES_UCS_2)
static ucs4_t static ucs4_t
_DEFUN(ucs_2_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(ucs_2_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
ucs4_t res; ucs4_t res;

View File

@ -45,9 +45,9 @@
#if defined (ICONV_FROM_UCS_CES_UCS_4_INTERNAL) #if defined (ICONV_FROM_UCS_CES_UCS_4_INTERNAL)
static size_t static size_t
_DEFUN(ucs_4_internal_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(ucs_4_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
register ucs4_t in _AND register ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
if (in > 0x7FFFFFFF) if (in > 0x7FFFFFFF)
@ -67,8 +67,8 @@ _DEFUN(ucs_4_internal_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_4_INTERNAL) #if defined (ICONV_TO_UCS_CES_UCS_4_INTERNAL)
static ucs4_t static ucs4_t
_DEFUN(ucs_4_internal_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(ucs_4_internal_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
register ucs4_t res; register ucs4_t res;

View File

@ -52,7 +52,7 @@
static _VOID_PTR static _VOID_PTR
_DEFUN(ucs_4_init, (rptr, encoding), _DEFUN(ucs_4_init, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int *data; int *data;
@ -70,7 +70,7 @@ _DEFUN(ucs_4_init, (rptr, encoding),
static size_t static size_t
_DEFUN(ucs_4_close, (rptr, data), _DEFUN(ucs_4_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
_free_r(rptr, data); _free_r(rptr, data);
@ -81,9 +81,9 @@ _DEFUN(ucs_4_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_UCS_4) #if defined (ICONV_FROM_UCS_CES_UCS_4)
static size_t static size_t
_DEFUN(ucs_4_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(ucs_4_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
ucs4_t in _AND ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
if ((in >= 0x0000D800 && in <= 0x0000DFFF) /* Surrogate character */ if ((in >= 0x0000D800 && in <= 0x0000DFFF) /* Surrogate character */
@ -108,8 +108,8 @@ _DEFUN(ucs_4_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UCS_4) #if defined (ICONV_TO_UCS_CES_UCS_4)
static ucs4_t static ucs4_t
_DEFUN(ucs_4_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(ucs_4_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
ucs4_t res; ucs4_t res;

View File

@ -41,9 +41,9 @@
#if defined (ICONV_FROM_UCS_CES_US_ASCII) #if defined (ICONV_FROM_UCS_CES_US_ASCII)
static size_t static size_t
_DEFUN(us_ascii_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(us_ascii_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
ucs4_t in _AND ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
if (in > 0x7F) if (in > 0x7F)
@ -61,8 +61,8 @@ _DEFUN(us_ascii_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_US_ASCII) #if defined (ICONV_TO_UCS_CES_US_ASCII)
static ucs4_t static ucs4_t
_DEFUN(us_ascii_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(us_ascii_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
ucs4_t res; ucs4_t res;

View File

@ -59,7 +59,7 @@
static size_t static size_t
_DEFUN(utf_16_close, (rptr, data), _DEFUN(utf_16_close, (rptr, data),
struct _reent *rptr _AND struct _reent *rptr,
_VOID_PTR data) _VOID_PTR data)
{ {
_free_r(rptr, data); _free_r(rptr, data);
@ -69,7 +69,7 @@ _DEFUN(utf_16_close, (rptr, data),
#if defined (ICONV_FROM_UCS_CES_UTF_16) #if defined (ICONV_FROM_UCS_CES_UTF_16)
static _VOID_PTR static _VOID_PTR
_DEFUN(utf_16_init_from_ucs, (rptr, encoding), _DEFUN(utf_16_init_from_ucs, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int *data; int *data;
@ -89,9 +89,9 @@ _DEFUN(utf_16_init_from_ucs, (rptr, encoding),
static size_t static size_t
_DEFUN(utf_16_convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(utf_16_convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
register ucs4_t in _AND register ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
register ucs2_t *cp; register ucs2_t *cp;
@ -171,7 +171,7 @@ _DEFUN(utf_16_convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UTF_16) #if defined (ICONV_TO_UCS_CES_UTF_16)
static _VOID_PTR static _VOID_PTR
_DEFUN(utf_16_init_to_ucs, (rptr, encoding), _DEFUN(utf_16_init_to_ucs, (rptr, encoding),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding) _CONST char *encoding)
{ {
int *data; int *data;
@ -191,8 +191,8 @@ _DEFUN(utf_16_init_to_ucs, (rptr, encoding),
static ucs4_t static ucs4_t
_DEFUN(utf_16_convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(utf_16_convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
register ucs2_t w1; register ucs2_t w1;

View File

@ -44,9 +44,9 @@
#if defined (ICONV_FROM_UCS_CES_UTF_8) #if defined (ICONV_FROM_UCS_CES_UTF_8)
static size_t static size_t
_DEFUN(convert_from_ucs, (data, in, outbuf, outbytesleft), _DEFUN(convert_from_ucs, (data, in, outbuf, outbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
register ucs4_t in _AND register ucs4_t in,
unsigned char **outbuf _AND unsigned char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
register unsigned char *cp; register unsigned char *cp;
@ -126,8 +126,8 @@ _DEFUN(convert_from_ucs, (data, in, outbuf, outbytesleft),
#if defined (ICONV_TO_UCS_CES_UTF_8) #if defined (ICONV_TO_UCS_CES_UTF_8)
static ucs4_t static ucs4_t
_DEFUN(convert_to_ucs, (data, inbuf, inbytesleft), _DEFUN(convert_to_ucs, (data, inbuf, inbytesleft),
_VOID_PTR data _AND _VOID_PTR data,
_CONST unsigned char **inbuf _AND _CONST unsigned char **inbuf,
size_t *inbytesleft) size_t *inbytesleft)
{ {
register _CONST unsigned char *in = *inbuf; register _CONST unsigned char *in = *inbuf;

View File

@ -49,7 +49,7 @@
*/ */
static _CONST char * static _CONST char *
_DEFUN(canonical_form, (rptr, str), _DEFUN(canonical_form, (rptr, str),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *str) _CONST char *str)
{ {
char *p, *p1; char *p, *p1;
@ -94,9 +94,9 @@ _DEFUN(canonical_form, (rptr, str),
*/ */
static char * static char *
_DEFUN(find_alias, (rptr, alias, table, len), _DEFUN(find_alias, (rptr, alias, table, len),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *alias _AND _CONST char *alias,
_CONST char *table _AND _CONST char *table,
int len) int len)
{ {
_CONST char *end; _CONST char *end;
@ -148,7 +148,7 @@ search_again:
*/ */
char * char *
_DEFUN(_iconv_resolve_encoding_name, (rptr, cname, path), _DEFUN(_iconv_resolve_encoding_name, (rptr, cname, path),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *ca) _CONST char *ca)
{ {
char *p = (char *)ca; char *p = (char *)ca;

View File

@ -121,7 +121,7 @@ No supporting OS subroutine calls are required.
iconv_t iconv_t
_DEFUN(iconv_open, (to, from), _DEFUN(iconv_open, (to, from),
_CONST char *to _AND _CONST char *to,
_CONST char *from) _CONST char *from)
{ {
return _iconv_open_r (_REENT, to, from); return _iconv_open_r (_REENT, to, from);
@ -130,10 +130,10 @@ _DEFUN(iconv_open, (to, from),
size_t size_t
_DEFUN(iconv, (cd, inbuf, inbytesleft, outbuf, outbytesleft), _DEFUN(iconv, (cd, inbuf, inbytesleft, outbuf, outbytesleft),
iconv_t cd _AND iconv_t cd,
char **__restrict inbuf _AND char **__restrict inbuf,
size_t *__restrict inbytesleft _AND size_t *__restrict inbytesleft,
char **__restrict outbuf _AND char **__restrict outbuf,
size_t *__restrict outbytesleft) size_t *__restrict outbytesleft)
{ {
return _iconv_r (_REENT, cd, (_CONST char **) inbuf, inbytesleft, return _iconv_r (_REENT, cd, (_CONST char **) inbuf, inbytesleft,
@ -151,8 +151,8 @@ _DEFUN(iconv_close, (cd), iconv_t cd)
#ifndef _REENT_ONLY #ifndef _REENT_ONLY
iconv_t iconv_t
_DEFUN(_iconv_open_r, (rptr, to, from), _DEFUN(_iconv_open_r, (rptr, to, from),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *to _AND _CONST char *to,
_CONST char *from) _CONST char *from)
{ {
iconv_conversion_t *ic; iconv_conversion_t *ic;
@ -202,11 +202,11 @@ _DEFUN(_iconv_open_r, (rptr, to, from),
size_t size_t
_DEFUN(_iconv_r, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft), _DEFUN(_iconv_r, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
struct _reent *rptr _AND struct _reent *rptr,
iconv_t cd _AND iconv_t cd,
_CONST char **inbuf _AND _CONST char **inbuf,
size_t *inbytesleft _AND size_t *inbytesleft,
char **outbuf _AND char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
iconv_conversion_t *ic = (iconv_conversion_t *)cd; iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@ -289,7 +289,7 @@ _DEFUN(_iconv_r, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
int int
_DEFUN(_iconv_close_r, (rptr, cd), _DEFUN(_iconv_close_r, (rptr, cd),
struct _reent *rptr _AND struct _reent *rptr,
iconv_t cd) iconv_t cd)
{ {
int res; int res;

View File

@ -60,9 +60,9 @@
*/ */
_CONST char * _CONST char *
_DEFUN(_iconv_nls_construct_filename, (rptr, file, ext), _DEFUN(_iconv_nls_construct_filename, (rptr, file, ext),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *file _AND _CONST char *file,
_CONST char *dir _AND _CONST char *dir,
_CONST char *ext) _CONST char *ext)
{ {
int len1, len2, len3; int len1, len2, len3;
@ -115,7 +115,7 @@ _DEFUN(_iconv_nls_construct_filename, (rptr, file, ext),
*/ */
int int
_DEFUN(_iconv_nls_get_mb_cur_max, (cd, direction), _DEFUN(_iconv_nls_get_mb_cur_max, (cd, direction),
iconv_t cd _AND iconv_t cd,
int direction) int direction)
{ {
iconv_conversion_t *ic = (iconv_conversion_t *)cd; iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@ -138,7 +138,7 @@ _DEFUN(_iconv_nls_get_mb_cur_max, (cd, direction),
*/ */
int int
_DEFUN(_iconv_nls_is_stateful, (cd, direction), _DEFUN(_iconv_nls_is_stateful, (cd, direction),
iconv_t cd _AND iconv_t cd,
int direction) int direction)
{ {
iconv_conversion_t *ic = (iconv_conversion_t *)cd; iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@ -167,11 +167,11 @@ _DEFUN(_iconv_nls_is_stateful, (cd, direction),
*/ */
size_t size_t
_DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft), _DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
struct _reent *rptr _AND struct _reent *rptr,
iconv_t cd _AND iconv_t cd,
_CONST char **inbuf _AND _CONST char **inbuf,
size_t *inbytesleft _AND size_t *inbytesleft,
char **outbuf _AND char **outbuf,
size_t *outbytesleft) size_t *outbytesleft)
{ {
iconv_conversion_t *ic = (iconv_conversion_t *)cd; iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@ -221,8 +221,8 @@ _DEFUN(_iconv_nls_conv, (rptr, cd, inbuf, inbytesleft, outbuf, outbytesleft),
*/ */
_VOID _VOID
_DEFUN(_iconv_nls_get_state, (cd, ps, direction), _DEFUN(_iconv_nls_get_state, (cd, ps, direction),
iconv_t cd _AND iconv_t cd,
mbstate_t *ps _AND mbstate_t *ps,
int direction) int direction)
{ {
iconv_conversion_t *ic = (iconv_conversion_t *)cd; iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@ -248,8 +248,8 @@ _DEFUN(_iconv_nls_get_state, (cd, ps, direction),
*/ */
int int
_DEFUN(_iconv_nls_set_state, (cd, ps, direction), _DEFUN(_iconv_nls_set_state, (cd, ps, direction),
iconv_t cd _AND iconv_t cd,
mbstate_t *ps _AND mbstate_t *ps,
int direction) int direction)
{ {
iconv_conversion_t *ic = (iconv_conversion_t *)cd; iconv_conversion_t *ic = (iconv_conversion_t *)cd;
@ -260,8 +260,8 @@ _DEFUN(_iconv_nls_set_state, (cd, ps, direction),
/* Same as iconv_open() but don't perform name resolving */ /* Same as iconv_open() but don't perform name resolving */
static iconv_t static iconv_t
_DEFUN(iconv_open1, (rptr, to, from), _DEFUN(iconv_open1, (rptr, to, from),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *to _AND _CONST char *to,
_CONST char *from) _CONST char *from)
{ {
iconv_conversion_t *ic; iconv_conversion_t *ic;
@ -317,10 +317,10 @@ _DEFUN(iconv_open1, (rptr, to, from),
*/ */
int int
_DEFUN(_iconv_nls_open, (rptr, encoding, towc, tomb), _DEFUN(_iconv_nls_open, (rptr, encoding, towc, tomb),
struct _reent *rptr _AND struct _reent *rptr,
_CONST char *encoding _AND _CONST char *encoding,
iconv_t *tomb _AND iconv_t *tomb,
iconv_t *towc _AND iconv_t *towc,
int flag) int flag)
{ {
_CONST char *wchar_encoding; _CONST char *wchar_encoding;

Some files were not shown because too many files have changed in this diff Show More