summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/strtok.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-05-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-241-6/+28
| | | | | | | | | | * libc/string/Makefile.am: Add support for strsep.c. * libc/string/Makefile.in: Regenerated. * libc/string/strsep.c: New file. * libc/string/strtok.c: Change to call __strtok_r service routine. * libc/string/strtok_r.c: Add __strtok_r routine which takes additional flag parameter regarding whether to skip leading delimeters. Change strtok_r to call __strtok_r.
* 2002-04-01 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for initializing a struct _reent that has been dynamically allocated. (_REENT_CHECK_MISC): New macro that checks _misc struct for _REENT_SMALL and does nothing otherwise. (_REENT_STRTOK_LAST): New macro for reentrant strtok. (_REENT_MBLEN_STATE): New macro for reentrant mblen. (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc. (_REENT_WCTOMB_STATE): New macro for reentrant wctomb. [_REENT_SMALL](struct _misc_reent): New structure containing miscellaneous reentrant areas needed by newlib. [_REENT_SMALL](struct _reent): Add _misc pointer. [_REENT_SMALL](_REENT_INIT_MISC): New macro. * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC and _REENT_STRTOK_LAST macros. * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC and _REENT_MBLEN_STATE macros. * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC and _REENT_MBTOWC_STATE macros. * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC and _REENT_WCTOMB_STATE macros.
* * implement a new `struct _reent' that is significantly smaller. use thisMatthew Green2002-02-031-1/+2
| | | | if _REENT_SMALL is defined in config.h. define this for xstormy16.
* 2001-03-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-03-021-0/+2
| | | | | * libc/string/strtok.c: Add #undef of __STRICT_ANSI__ so prototype of strtok_r is always defined.
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+76