summaryrefslogtreecommitdiffstats
path: root/libiberty/regex.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.mrs2013-07-221-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201139 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix.mrs2013-07-211-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201102 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/56245jakub2013-02-091-4/+6
| | | | | | | | * regex.c (PTR_INT_TYPE): Define. (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195918 138bc75d-0d04-0410-961f-82ee72b054a4
* remove useless if-before-free testsmeyering2011-04-201-7/+4
| | | | | | | | | | | Change "if (E) free (E);" to "free (E);" everywhere except in the libgo/, intl/, zlib/ and classpath/ directories. Also transform equivalent variants like "if (E != NULL) free (E);" and allow an extra cast on the argument to free. Otherwise, the tested and freed "E" expressions must be identical, modulo white space. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172785 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but notjakub2010-04-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | used count variable. * genemit.c (gen_expand, gen_split): Avoid set but not used warnings when operandN variables aren't used in the body of the expander or splitter. * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings. * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise. * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT, FOR_EACH_IMM_USE_ON_STMT): Likewise. * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise. * tree.c (PROCESS_ARG): Likewise. fortran/ * parse.c (parse_derived, parse_enum): Avoid set but not used warning. java/ * expr.c (process_jvm_instruction): Avoid set but not used warning. * builtins.c (compareAndSwapInt_builtin, compareAndSwapLong_builtin, getVolatile_builtin): Likewise. libjava/ * exception.cc (_Jv_Throw): Avoid set but not used warning. * include/java-assert.h (JvAssertMessage, JvAssert): Use argument in sizeof to avoid set but not used warnings. libjava/classpath/ * native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaPortDevice.c (Java_gnu_javax_sound_midi_alsa_AlsaPortDevice_run_1receiver_1thread_1): Avoid set but not used warning. libiberty/ * regex.c (byte_re_match_2_internal): Avoid set but not used warning. gcc/testsuite/ * gcc.dg/builtin-choose-expr.c: Avoid set but not used warnings. * gcc.dg/trunc-1.c: Likewise. * gcc.dg/vla-9.c: Likewise. * gcc.dg/dfp/composite-type.c: Likewise. libffi/ * testsuite/libffi.call/err_bad_abi.c: Remove unused args variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158084 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-09-30 Martin Thuresson <martint@google.com>nvachhar2009-10-011-2/+5
| | | | | | | | * regex.c (byte_re_match_2_internal): Split declaration and assignment to avoid -Wc++-compat warning due to goto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152354 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (regcomp): Change type of `i' from unsigned to int.bje2005-07-221-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102270 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (TRANSLATE): Cast rhs of ternary expression to char.bje2005-07-151-2/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102050 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.c (pexecute): Cast string litrals to char *.bje2005-07-121-1/+1
| | | | | | | * regex.c (re_comp): Cast a call to gettext() to char *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101911 138bc75d-0d04-0410-961f-82ee72b054a4
* Update the address and phone number of the FSF organization.nickc2005-05-101-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99519 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix missed replacements.gdr2005-04-131-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98063 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):gdr2005-04-131-8/+8
| | | | | | | Replace not with negate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98062 138bc75d-0d04-0410-961f-82ee72b054a4
* include/gdr2005-03-281-291/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> * xregex2.h (_RE_ARGS): Remove definition and uses. libiberty/ 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> Convert libiberty to use ISO C prototype style 7/n. * regex.c (PARAMS): Remove definition. (PREFIX): Unconditionaly define using ISO C ## operator. (init_syntax_once, extract_number, extract_number_and_incr, print_fastmap, print_partial_compiled_pattern, print_compiled_pattern, print_double_string, printchar, convert_mbs_to_wcs, re_set_syntax, regex_grow_registers, regex_compile, store_op1, store_op2, insert_op1, insert_op2, at_begline_loc_p, at_endline_p, group_in_compile_stack, insert_space, wcs_compile_range, byte_compile_range, truncate_wchar, re_compile_fastmap, re_compile_fastmap, re_set_registers, re_search, re_search_2, re_search_3, re_match, re_match_2, count_mbs_length, wcs_re_match_2_internal, byte_re_match_2_internal, group_match_null_string_p, alt_match_null_string_p, common_op_match_null_string_p, bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror, regfree): Use ISO C prototype style. * partition.c: (elem_compare): Likewise. * cp-demangle.c (print_usage): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97129 138bc75d-0d04-0410-961f-82ee72b054a4
* * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" beforesayle2004-11-201-2/+4
| | | | | | | | "ansidecl.h" to avoid redeclaration errors with native compilers. * regex.c: Protect config.h from multiple inclusion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90954 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c: Include <ansidecl.h>.kraai2004-02-171-2/+4
| | | | | | | | (regcomp): Cast i to int. (regerror): Add ATTRIBUTE_UNUSED to parameter preg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77944 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:ghazi2003-04-151-1/+1
| | | | | | | | | | | | | | | | | | PR target/10338 PR bootstrap/10198 PR bootstrap/10140 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy. libiberty: PR target/10338 PR bootstrap/10198 PR bootstrap/10140 * getopt.c (exchange, _getopt_initialize): Use mempcpy not __mempcpy. * regex.c (regerror): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65634 138bc75d-0d04-0410-961f-82ee72b054a4
* * cp-demangle.c (demangling_new): Cast 0 to enum.danglin2002-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | (demangle_char): Cast return of strdup to char *. (is_gnu_v3_mangled_ctor): Cast 0 to enum. (is_gnu_v3_mangled_dtor): Likewise. * cplus-dem.c (grow_vect): Cast return of xrealloc to void *. (work_stuff_copy_to_from): Cast return of xmalloc to char **. * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t. * md5.c (md5_process_bytes): Cast results back to const void *. (md5_process_block): Add cast to const md5_uint32 *. * regex.c (re_compile_fastmap): Cast enum to UCHAR_T. * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to unsigned short. * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc to void *. * vasprintf.c (int_vasprintf): Cast return of malloc to char *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57330 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c: Only use "#pragma alloca" on AIX when not using gcc.sayle2002-09-051-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56871 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (re_error_msgid): Just use a simple array of strings.dj2002-08-071-81/+25
| | | | | | | | | | (re_compile_pattern): Compensate. (re_comp): Likewise. (re_comp): Likewise. (regerror): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56106 138bc75d-0d04-0410-961f-82ee72b054a4
* Update test for token pasting to also check "|| defined(ALMOST_STDC)"ghazi2001-11-161-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47108 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE)ghazi2001-11-161-2/+2
| | | | | | | to determine whether ISO CPP token pasting is available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47107 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.in (HAVE_UINTPTR_T): Provide autoconf stub.law2001-11-151-1/+1
| | | | | | | | | | * configure.in (HAVE_UINTPTR_T): Test for system defining uintptr_t and define HAVE_UINTPTR_T appropriately. * regex.c (uintptr_t): Do not provide a definition if the system provided one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47068 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (PREFIX): Provide an alternate definition forlaw2001-11-151-3/+12
| | | | | | | | non-ANSI/ISO compilers. (ARG_PREFIX): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47067 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-11-12 Jim Meyering <meyering@lucent.com>dj2001-11-131-1/+1
| | | | | | | | | | | * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, this code would end up calling gettext even in packages built with --disable-nls. * getopt.c (_): Likewise. * regex.c (_): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46975 138bc75d-0d04-0410-961f-82ee72b054a4
* merge from glibcdj2001-08-231-14/+58
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45134 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from libc:dj2001-08-131-2/+2
| | | | | | | | | * regex.c (wcs_regex_compile): Use appropriate string to compare with collating element. Fix the padding for the alignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44838 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from glibc:aj2001-07-301-46/+107
| | | | | | | | | | | | * regex.c: Declare wcs functions only if compiling with MBS_SUPPORT. Don't use #elif for traditional C. * regex.c: Revamp memory allocation for WCHAR functions to not use too much stack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44471 138bc75d-0d04-0410-961f-82ee72b054a4
* merge from glibcdj2001-07-181-10/+24
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44138 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Add support for regex code.dj2001-07-111-0/+8245
* regex.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43914 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud