2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>

* libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
	* libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
	* libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
	"iswcntrl".
This commit is contained in:
Ralf Corsepius 2011-08-23 11:59:56 +00:00
parent 74c92a62fe
commit 0792b19670
4 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/posix/regexec.c: Define "nope" only #ifndef NDEBUG.
* libc/stdio/vfscanf.c: Define "state" only #ifdef _MB_CAPABLE.
* libc/string/wcwidth.c: Include <wctypes.h> for "iswprint" and
"iswcntrl".
2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org> 2011-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on * libc/sys/rtems/include/limits.h: Compute SSIZE_MAX based on

View File

@ -58,7 +58,9 @@ static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94";
#include "utils.h" #include "utils.h"
#include "regex2.h" #include "regex2.h"
#ifndef NDEBUG
static int nope = 0; /* for use in asserts; shuts lint up */ static int nope = 0; /* for use in asserts; shuts lint up */
#endif
/* macros for manipulating states, small version */ /* macros for manipulating states, small version */
#define states long #define states long

View File

@ -453,7 +453,9 @@ _DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap),
wchar_t wc; /* wchar to use to read format string */ wchar_t wc; /* wchar to use to read format string */
wchar_t *wcp; /* handy wide character pointer */ wchar_t *wcp; /* handy wide character pointer */
size_t mbslen; /* length of converted multibyte sequence */ size_t mbslen; /* length of converted multibyte sequence */
#ifdef _MB_CAPABLE
mbstate_t state; /* value to keep track of multibyte state */ mbstate_t state; /* value to keep track of multibyte state */
#endif
#define CCFN_PARAMS _PARAMS((struct _reent *, const char *, char **, int)) #define CCFN_PARAMS _PARAMS((struct _reent *, const char *, char **, int))
u_long (*ccfn)CCFN_PARAMS=0; /* conversion function (strtol/strtoul) */ u_long (*ccfn)CCFN_PARAMS=0; /* conversion function (strtol/strtoul) */

View File

@ -94,6 +94,9 @@ PORTABILITY
#include <_ansi.h> #include <_ansi.h>
#include <wchar.h> #include <wchar.h>
#ifndef _MB_CAPABLE
#include <wctype.h> /* iswprint, iswcntrl */
#endif
#include "local.h" #include "local.h"
#ifdef _MB_CAPABLE #ifdef _MB_CAPABLE