summaryrefslogtreecommitdiffstats
path: root/libc/misc/regex
Commit message (Collapse)AuthorAgeFilesLines
* regcomp.c, aeabi_mb_cur_max.c: use unconditionally MB_CUR_MAX from stdlib.hPeter S. Mazinger2011-03-091-4/+0
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* regex: remove set but not used variableBernhard Reutner-Fischer2011-02-141-3/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc/regex: fix internal_function declarationsRoman I Khimov2010-04-271-5/+5
| | | | | | | | | | | | | | Build failed with | In file included from libc/misc/regex/regex.c:59: | libc/misc/regex/regexec.c:315: error: conflicting types for 're_search_2_stub' | libc/misc/regex/regexec.c:44: note: previous declaration of 're_search_2_stub' was here | libc/misc/regex/regexec.c:358: error: conflicting types for 're_search_stub' | libc/misc/regex/regexec.c:49: note: previous declaration of 're_search_stub' was here .... etc Signed-off-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* libc: Remove compiler warning due to old-style function definitionCarmelo Amoroso2010-04-251-57/+27
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libc_regex: __libc_lock primitives are actually available on uClibcCarmelo Amoroso2010-04-122-3/+6
| | | | | | | | | | | | | | | | | | __libc_lock primitives are actually available on uClibc when threading support is enable, so in this case they can be used. It also fixes the following compiler warnings: In file included from libc/misc/regex/regex.c:55: libc/misc/regex/regex_internal.h:49:1: warning: "__libc_lock_define" redefined [SNIP] libc/misc/regex/regex_internal.h:50:1: warning: "__libc_lock_init" redefined [SNIP] libc/misc/regex/regex_internal.h:51:1: warning: "__libc_lock_lock" redefined [SNIP] libc/misc/regex/regex_internal.h:52:1: warning: "__libc_lock_unlock" redefined Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* regex_old: convert static flag variable to smallintDenys Vlasenko2010-04-051-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* prettify make cleanBernhard Reutner-Fischer2010-03-251-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* silence some warnings about unused paramsBernhard Reutner-Fischer2010-01-231-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* regex: call memcpy() ourselvesMike Frysinger2009-10-221-1/+2
| | | | | | | Call the hidden memcpy() ourselves otherwise gcc will emit a call to the public memcpy() which goes through the PLT. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-182-14/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-181-1/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* support building out-of-treeBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | Handle O= Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* add hidden aliases for newer regex search functionsBernhard Reutner-Fischer2009-08-171-0/+2
| | | | | | | Fixes 3575b741754b391a27e33bb1866bdb29131b7fea which only changed the old impl but not the new one. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* remove erroneous ';'Bernhard Reutner-Fischer2009-07-281-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* regex: convert #if to #ifdefMike Frysinger2009-07-202-2/+2
| | | | | | Avoid gcc warnings about #if statements with defines that aren't defined. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add hidden aliases for older regex search functionsMike Frysinger2009-07-201-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ctype: remove some trivial macros from ctype.h;Denis Vlasenko2008-12-274-8/+4
| | | | | | | | | | | | 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
* convert yet another old-style function definitionDenis Vlasenko2008-12-261-5/+5
|
* new regex: stop confusing ourself with _LIBC being undefined;Denis Vlasenko2008-12-265-165/+88
| | | | | | | | | | | | | | | | | 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: remove useless casts on allocations;Denis Vlasenko2008-12-264-92/+96
| | | | | | | | | | remove old-style-C function params declarations; change re_comp_buf from struct to pointer (more static build friendly) text data bss dec hex filename - 514952 2731 15424 533107 82273 lib/libuClibc-0.9.30-svn.so + 515011 2731 15396 533138 82292 lib/libuClibc-0.9.30-svn.so
* regex: drop __<funcname> aliases. remove much of unused code.Denis Vlasenko2008-12-266-341/+52
| | | | | | | | | 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
* test/regex/tst-regex2.c: fix the rest of testsuite failuresDenis Vlasenko2008-12-251-1/+12
|
* test/regex/tst-regex2.c: fix test failure. Next one is immediately after...Denis Vlasenko2008-12-251-1/+1
| | | | | | | | | | | | test 2 pattern 0 '.?.?.?.?.?.?.?Log\.13' -incorrect num_regs 30, expected 2 + 1.283480s +test 2 pattern 1 '(.?)(.?)(.?)(.?)(.?)(.?)(.?)Log\.13' + 3.429810s +test 2 pattern 2 '((((((((((.?))))))))))((((((((((.?))))))))))....' +incorrect num_regs 30, expected 72
* heed compiler warnings about checking non-defined variables in #if directivesDenis Vlasenko2008-12-141-6/+6
|
* *: remove vestiges of gcc's "bounded pointers" feature,Denis Vlasenko2008-12-121-34/+11
| | | | | | it is dead (not supported by gcc) for years. (more of it remains in multiple copies of sigaction.c)
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-204-23/+23
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-202-4/+4
|
* libc_hidden_proto removal, a few more functionsDenis Vlasenko2008-11-181-3/+3
|
* libc_hidden_proto removal, just a few functionsDenis Vlasenko2008-11-182-2/+2
|
* - less verbose make cleanBernhard Reutner-Fischer2008-11-071-4/+4
|
* - fix for r23427. Thanks to psm for mentioning this and sorry for the breakageBernhard Reutner-Fischer2008-09-191-7/+7
|
* - remove non stdc path (old style definitions). No obj-code changesBernhard Reutner-Fischer2008-09-181-248/+208
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-235-42/+42
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-234-12/+12
|
* Revert revision 19347, plus libc_hidden_proto for __uc_malloc.Bernd Schmidt2008-06-121-7/+3
| | | | | Some of the code is functionally identical before and after, but for now I'm just mechanically reverting the entire mess.
* 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>.
* fix trivial mismatch in return type of build_wcs_upper_buffer()Denis Vlasenko2008-06-031-1/+1
| | | | | (int/enum). clases bug 3234.
* add missing includes of unistd.h for smallint usageDenis Vlasenko2008-06-011-0/+1
| | | | | remove a few duplicate includes of unistd.h
* - Avoid warning about undefined preprocessor token. No obj-code changes.Bernhard Reutner-Fischer2008-05-301-1/+1
|
* replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.Denis Vlasenko2008-05-201-7/+4
|
* Introduce and use small[u]int type. Changes in size:Denis Vlasenko2008-05-201-1/+1
| | | | | | | | | | | | | | - 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-192-16/+16
| | | | | | | | | 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.
* add hidden_proto's for __uc_mallocDenis Vlasenko2008-02-121-0/+1
| | | | | (patch by Bernd Schmidt <bernds_cb1 at t-online.de>)
* make regex_old.c, ruserpass.c use __uc_malloc,Denis Vlasenko2007-07-301-3/+6
| | | | | | | | | | | | | replace "buf = malloc(BUFSIZ); if (!buf) abort();" by __uc_malloc elsewhere. With last 7 patches together uclibc has 3k of static data total with fairly big .config and with 2k being used for 2 x BUFSIZ stdio buffer: text data bss dec hex filename 114 132 2048 2294 8f6 _stdio.o (ex lib/libc.a) total data 593 total bss 3062
* fixup my copyright notice, trim stale remnants of older notices whichEric Andersen2006-07-051-1/+0
| | | | I had clearly run search/replace on that were cluttering things up.
* 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-224-7/+15
| | | | _ISOC99/XOPEN_SOURCE
* Sync w/ glibcPeter S. Mazinger2006-02-284-5/+8
|
* libc-{a,so,multi}-y replaced by libc-y covering common objects both in ↵Peter S. Mazinger2006-02-131-12/+9
| | | | libc.a/libc.so, the diffs go into libc-static-y/libc-shared-y exclusively, add IMA to libc, don't use any MSRC anymore