summaryrefslogtreecommitdiffstats
path: root/libc/misc/regex/regex.c
Commit message (Collapse)AuthorAgeFilesLines
* ctype: remove some trivial macros from ctype.h;Denis Vlasenko2008-12-271-4/+0
| | | | | | | | | | | | remove __tolower and __toupper (they existed only in SOME configs!); remove usages of _tolower (some of them clearly buggy) from uclibc code; add a few more -U<define> options to unifdef pass over installed headers; document it on docs/wchar_and_locale.txt text data bss dec hex filename - 514963 2727 15396 533086 8225e lib/libuClibc-0.9.30-svn.so + 514888 2727 15396 533011 82213 lib/libuClibc-0.9.30-svn.so
* new regex: stop confusing ourself with _LIBC being undefined;Denis Vlasenko2008-12-261-3/+0
| | | | | | | | | | | | | | | | | nuke one struct initializer which was invisibly becoming a memset - this improves speed by x2: test 0 pattern 0 '.?.?.?.?.?.?.?Log\.13' - 0.249795s + 0.133522s test 0 pattern 1 '(.?)(.?)(.?)(.?)(.?)(.?)(.?)Log\.13' - 0.360115s + 0.191959s text data bss dec hex filename - 515009 2731 15396 533136 82290 lib/libuClibc-0.9.30-svn.so + 514961 2727 15396 533084 8225c lib/libuClibc-0.9.30-svn.so
* regex: drop __<funcname> aliases. remove much of unused code.Denis Vlasenko2008-12-261-112/+25
| | | | | | | | | shrink offset tables. disable "likely/unlikely" BE() macro. text data bss dec hex filename - 515032 2731 15424 533187 822c3 lib/libuClibc-0.9.30-svn.so + 515014 2731 15424 533169 822b1 lib/libuClibc-0.9.30-svn.so
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-201-13/+13
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-201-3/+3
|
* libc_hidden_proto removal, a few more functionsDenis Vlasenko2008-11-181-3/+3
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-181-1/+1
|
* This fixes a problem with the move of libc_hidden_proto to string.h.Bernd Schmidt2008-06-041-1/+0
| | | | | | | | | | | | | The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of <strings.h> from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include <string.h>. We then do not need to duplicate the libc_hidden_proto block in <strings.h>.
* - Avoid warning about undefined preprocessor token. No obj-code changes.Bernhard Reutner-Fischer2008-05-301-1/+1
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-10/+10
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* select needs sys/select.h, str[n]casecmp/ffs needs strings.h, if BSD is not ↵Peter S. Mazinger2006-03-231-0/+1
| | | | defined, gettimeofday has other prototype and tm_gmtoff/tm_zone do not exist
* Correct build if UCLIBC_HAS_CTYPE_TABLES is not definedPeter S. Mazinger2006-03-221-1/+3
|
* Mark some functions as GNU, provide missing hidden memmem, remove ↵Peter S. Mazinger2006-03-221-2/+6
| | | | _ISOC99/XOPEN_SOURCE
* make regex a little bit smallerPeter S. Mazinger2006-01-301-0/+3
|
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-1/+0
| | | | is a useless attempt
* Last relocs jump and global data, (even locales) that I could remove are ↵Peter S. Mazinger2006-01-161-0/+7
| | | | gone from libc. The remaining are left as exercise for others ;-)
* get rid of warning if UCLIBC_HAS_CTYPE_TABLES is not enabledPeter S. Mazinger2006-01-151-0/+2
|
* hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger2006-01-141-32/+37
| | | | missing headers, other jump relocs removed
* Use hidden towupper in new regexPeter S. Mazinger2005-12-161-0/+1
|
* New regex as wellPeter S. Mazinger2005-12-161-0/+2
|
* Hide morePeter S. Mazinger2005-12-071-0/+1
|
* Hide *clnt|pmap|svc* and some rpc. inet/rpc is full of relocs ...Peter S. Mazinger2005-12-071-3/+10
|
* Make use internal str*casecmp/wcscollPeter S. Mazinger2005-12-061-0/+2
|
* More hiding, including __mempcpyPeter S. Mazinger2005-12-031-0/+4
|
* Hide mostly used functionsPeter S. Mazinger2005-12-011-0/+9
|
* Allow internal_function to come from libcPeter S. Mazinger2005-11-281-1/+0
|
* Add new regex code from glibc, this is almost double size of the earlier ↵Peter S. Mazinger2005-11-281-0/+105
| | | | one, but passes sed tests (and thus allows making sed shrink from 91k to 42k
* Rename regex.c to regex_old.cPeter S. Mazinger2005-11-281-8383/+0
|
* Sync regex.h w/ glibc and make regex build w/ itPeter S. Mazinger2005-11-281-0/+1
|
* Hide some wcs*Peter S. Mazinger2005-11-271-0/+1
|
* Hide some of mem* and str*Peter S. Mazinger2005-11-271-0/+11
|
* As released in uClibc 0.9.16, regex was being compiled withoutEric Andersen2002-11-141-2/+2
| | | | | | wide char support, even when the rest of uClibc was. This led to anyone using regex segfaulting... -Erik
* Sync regex with glibc 2.2.4. I need to add an option to selectEric Andersen2001-11-241-4300/+6942
| | | | | a minamalist replacement. Coming soon... -Erik
* The m68k-elf compiler chokes on this code when compiling for PIC asDavid McCullough2001-06-071-1129/+1128
| | | | | | | | | | | | | | | | compile_regex is one big function (relative function calls further than cpu32 can do). The solution was to re-order the code a little to reduce the size of these relative calls. So the total sum of the changes is: * Move compile_regex to the end of the file * make store_op1 an inline Unfortunately CVS diff doesn't show this and makes it look like the whole file has been severely hacked. It hasn't.
* Fix regex support to be compatible with 4.2 BSD regex library. This isEric Andersen2001-05-261-0/+1
| | | | the last bit that was needed to get util-linux to compile.
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-0/+3
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* A smaller, kinder, gentler regexp implementation.Eric Andersen2000-10-201-0/+5725