From b6d64fb0f925a96e5fbce08daaefa443f71df939 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 19 Aug 2001 01:09:06 +0000 Subject: [PATCH] Update. * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t. * wcsmbs/wcwidth.c (wcwdith): Likewise. * wcsmbs/wcwidth.h (internal_wcwdith): Likewise. * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS. * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests. --- ChangeLog | 8 ++++++++ conform/data/ucontext.h-data | 8 ++++---- conform/data/unistd.h-data | 1 - wcsmbs/wchar.h | 2 +- wcsmbs/wcwidth.c | 4 ++-- wcsmbs/wcwidth.h | 4 ++-- 6 files changed, 17 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index c319a21..c95fd26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2001-08-18 Ulrich Drepper + * wcsmbs/wchar.h (wcwdith): Change parameter type to wchar_t. + * wcsmbs/wcwidth.c (wcwdith): Likewise. + * wcsmbs/wcwidth.h (internal_wcwdith): Likewise. + + * conform/data/unistd.h-data: Remove _SC_MULTIPLE_PROCESS. + + * conform/data/ucontext.h-data: Fix typos in ucontext_t element tests. + * time/time.h (struct timespec): Use __time_t for tv_sec element. * sysdeps/generic/inttypes.h: Define __wchar_t. Use it instead of diff --git a/conform/data/ucontext.h-data b/conform/data/ucontext.h-data index 87a6025..3540fdd 100644 --- a/conform/data/ucontext.h-data +++ b/conform/data/ucontext.h-data @@ -2,10 +2,10 @@ type mcontext_t type ucontext_t -element {struct ucontext_t} {ucontext_t*} uc_link -element {struct ucontext_t} sigset_t uc_sigmask -element {struct ucontext_t} stack_t uc_stack -element {struct ucontext_t} mcontext_t uc_mcontext +element ucontext_t {ucontext_t*} uc_link +element ucontext_t sigset_t uc_sigmask +element ucontext_t stack_t uc_stack +element ucontext_t mcontext_t uc_mcontext type sigset_t type stack_t diff --git a/conform/data/unistd.h-data b/conform/data/unistd.h-data index c7e9f99..757d5c9 100644 --- a/conform/data/unistd.h-data +++ b/conform/data/unistd.h-data @@ -174,7 +174,6 @@ constant _SC_MESSAGE_PASSING constant _SC_MONOTONIC_CLOCK constant _SC_MQ_OPEN_MAX constant _SC_MQ_PRIO_MAX -constant _SC_MULTIPLE_PROCESS constant _SC_NETWORKING constant _SC_NGROUPS_MAX constant _SC_OPEN_MAX diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h index 46ed8d8..b7b63ba 100644 --- a/wcsmbs/wchar.h +++ b/wcsmbs/wchar.h @@ -324,7 +324,7 @@ extern size_t wcsnrtombs (char *__restrict __dst, /* The following functions are extensions found in X/Open CAE. */ #ifdef __USE_XOPEN /* Determine number of column positions required for C. */ -extern int wcwidth (wint_t __c) __THROW; +extern int wcwidth (wchar_t __c) __THROW; /* Determine number of column positions required for first N wide characters (or fewer if S ends before this) in S. */ diff --git a/wcsmbs/wcwidth.c b/wcsmbs/wcwidth.c index 6631c47..82dd020 100644 --- a/wcsmbs/wcwidth.c +++ b/wcsmbs/wcwidth.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -21,7 +21,7 @@ /* Determine number of column positions required for CH. */ int -wcwidth (wint_t ch) +wcwidth (wchar_t ch) { return internal_wcwidth (ch); } diff --git a/wcsmbs/wcwidth.h b/wcsmbs/wcwidth.h index 2cea530..92ee3d6 100644 --- a/wcsmbs/wcwidth.h +++ b/wcsmbs/wcwidth.h @@ -1,5 +1,5 @@ /* Internal header containing implementation of wcwidth() function. - Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -26,7 +26,7 @@ extern const char *__ctype32_width; static __inline int -internal_wcwidth (wint_t wc) +internal_wcwidth (wchar_t wc) { unsigned char res; -- 2.7.4