#include "libiberty.h"#include <sys/types.h>#include <strings.h>#include "gnu-regex.h"#include <safe-ctype.h>

Go to the source code of this file.
Data Types | |
| union | fail_stack_elt |
| type | fail_stack_type |
| union | register_info_type |
| type | compile_stack_elt_t |
| type | compile_stack_type |
Defines | |
| #define | PARAMS(args) () |
| #define | gettext(msgid) (msgid) |
| #define | gettext_noop(String) String |
| #define | volatile |
| #define | memcmp(s1, s2, n) bcmp (s1, s2, n) |
| #define | memcpy(d, s, n) (bcopy (s, d, n), (d)) |
| #define | Sword 1 |
| #define | SWITCH_ENUM_CAST(x) (x) |
| #define | CHAR_SET_SIZE 256 |
| #define | SYNTAX(c) re_syntax_table[c] |
| #define | NULL (void *)0 |
| #define | SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128) |
| #define | REGEX_ALLOCATE alloca |
| #define | REGEX_REALLOCATE(source, osize, nsize) |
| #define | REGEX_FREE(arg) ((void)0) |
| #define | REGEX_ALLOCATE_STACK alloca |
| #define | REGEX_REALLOCATE_STACK(source, osize, nsize) REGEX_REALLOCATE (source, osize, nsize) |
| #define | REGEX_FREE_STACK(arg) |
| #define | FIRST_STRING_P(ptr) (size1 && string1 <= (ptr) && (ptr) <= string1 + size1) |
| #define | TALLOC(n, t) ((t *) malloc ((n) * sizeof (t))) |
| #define | RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t))) |
| #define | RETALLOC_IF(addr, n, t) if (addr) RETALLOC((addr), (n), t); else (addr) = TALLOC ((n), t) |
| #define | REGEX_TALLOC(n, t) ((t *) REGEX_ALLOCATE ((n) * sizeof (t))) |
| #define | BYTEWIDTH 8 |
| #define | STREQ(s1, s2) ((strcmp (s1, s2) == 0)) |
| #define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
| #define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
| #define | false 0 |
| #define | true 1 |
| #define | STORE_NUMBER(destination, number) |
| #define | STORE_NUMBER_AND_INCR(destination, number) |
| #define | EXTRACT_NUMBER(destination, source) |
| #define | EXTRACT_NUMBER_AND_INCR(destination, source) |
| #define | assert(e) |
| #define | DEBUG_STATEMENT(e) |
| #define | DEBUG_PRINT1(x) |
| #define | DEBUG_PRINT2(x1, x2) |
| #define | DEBUG_PRINT3(x1, x2, x3) |
| #define | DEBUG_PRINT4(x1, x2, x3, x4) |
| #define | DEBUG_PRINT_COMPILED_PATTERN(p, s, e) |
| #define | DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2) |
| #define | MATCH_MAY_ALLOCATE |
| #define | INIT_FAILURE_ALLOC 5 |
| #define | FAIL_STACK_EMPTY() (fail_stack.avail == 0) |
| #define | FAIL_STACK_PTR_EMPTY() (fail_stack_ptr->avail == 0) |
| #define | FAIL_STACK_FULL() (fail_stack.avail == fail_stack.size) |
| #define | INIT_FAIL_STACK() |
| #define | RESET_FAIL_STACK() REGEX_FREE_STACK (fail_stack.stack) |
| #define | DOUBLE_FAIL_STACK(fail_stack) |
| #define | PUSH_PATTERN_OP(POINTER, FAIL_STACK) |
| #define | PUSH_FAILURE_POINTER(item) fail_stack.stack[fail_stack.avail++].pointer = (unsigned char *) (item) |
| #define | PUSH_FAILURE_INT(item) fail_stack.stack[fail_stack.avail++].integer = (item) |
| #define | PUSH_FAILURE_ELT(item) fail_stack.stack[fail_stack.avail++] = (item) |
| #define | POP_FAILURE_POINTER() fail_stack.stack[--fail_stack.avail].pointer |
| #define | POP_FAILURE_INT() fail_stack.stack[--fail_stack.avail].integer |
| #define | POP_FAILURE_ELT() fail_stack.stack[--fail_stack.avail] |
| #define | DEBUG_PUSH(item) |
| #define | DEBUG_POP(item_addr) |
| #define | PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) |
| #define | NUM_REG_ITEMS 3 |
| #define | NUM_NONREG_ITEMS 4 |
| #define | MAX_FAILURE_ITEMS (5 * NUM_REG_ITEMS + NUM_NONREG_ITEMS) |
| #define | NUM_FAILURE_ITEMS |
| #define | REMAINING_AVAIL_SLOTS ((fail_stack).size - (fail_stack).avail) |
| #define | POP_FAILURE_POINT(str, pat, low_reg, high_reg, regstart, regend, reg_info) |
| #define | MATCH_NULL_UNSET_VALUE 3 |
| #define | REG_MATCH_NULL_STRING_P(R) ((R).bits.match_null_string_p) |
| #define | IS_ACTIVE(R) ((R).bits.is_active) |
| #define | MATCHED_SOMETHING(R) ((R).bits.matched_something) |
| #define | EVER_MATCHED_SOMETHING(R) ((R).bits.ever_matched_something) |
| #define | SET_REGS_MATCHED() |
| #define | REG_UNSET_VALUE (®_unset_dummy) |
| #define | REG_UNSET(e) ((e) == REG_UNSET_VALUE) |
| #define | PATFETCH(c) |
| #define | PATFETCH_RAW(c) |
| #define | PATUNFETCH p-- |
| #define | TRANSLATE(d) (translate ? (char) translate[(unsigned char) (d)] : (d)) |
| #define | INIT_BUF_SIZE 32 |
| #define | GET_BUFFER_SPACE(n) |
| #define | BUF_PUSH(c) |
| #define | BUF_PUSH_2(c1, c2) |
| #define | BUF_PUSH_3(c1, c2, c3) |
| #define | STORE_JUMP(op, loc, to) store_op1 (op, loc, (int) ((to) - (loc) - 3)) |
| #define | STORE_JUMP2(op, loc, to, arg) store_op2 (op, loc, (int) ((to) - (loc) - 3), arg) |
| #define | INSERT_JUMP(op, loc, to) insert_op1 (op, loc, (int) ((to) - (loc) - 3), b) |
| #define | INSERT_JUMP2(op, loc, to, arg) insert_op2 (op, loc, (int) ((to) - (loc) - 3), arg, b) |
| #define | MAX_BUF_SIZE (1L << 16) |
| #define | REALLOC(p, s) realloc ((p), (s)) |
| #define | EXTEND_BUFFER() |
| #define | MAX_REGNUM 255 |
| #define | INIT_COMPILE_STACK_SIZE 32 |
| #define | COMPILE_STACK_EMPTY (compile_stack.avail == 0) |
| #define | COMPILE_STACK_FULL (compile_stack.avail == compile_stack.size) |
| #define | COMPILE_STACK_TOP (compile_stack.stack[compile_stack.avail]) |
| #define | SET_LIST_BIT(c) |
| #define | GET_UNSIGNED_NUMBER(num) |
| #define | CHAR_CLASS_MAX_LENGTH 6 |
| #define | IS_CHAR_CLASS(string) |
| #define | FREE_STACK_RETURN(value) return (free (compile_stack.stack), value) |
| #define | POINTER_TO_OFFSET(ptr) |
| #define | MATCHING_IN_FIRST_STRING (dend == end_match_1) |
| #define | PREFETCH() |
| #define | AT_STRINGS_BEG(d) ((d) == (size1 ? string1 : string2) || !size2) |
| #define | AT_STRINGS_END(d) ((d) == end2) |
| #define | WORDCHAR_P(d) |
| #define | FREE_VAR(var) if (var) REGEX_FREE (var); var = NULL |
| #define | FREE_VARIABLES() |
| #define | NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH) |
| #define | NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1) |
Typedefs | |
| typedef char | boolean |
| typedef union fail_stack_elt | fail_stack_elt_t |
| typedef unsigned | regnum_t |
| typedef long | pattern_offset_t |
Enumerations | |
| enum | re_opcode_t { no_op = 0, succeed, exactn, anychar, charset, charset_not, start_memory, stop_memory, duplicate, begline, endline, begbuf, endbuf, jump, jump_past_alt, on_failure_jump, on_failure_keep_string_jump, pop_failure_jump, maybe_pop_jump, dummy_failure_jump, push_dummy_failure, succeed_n, jump_n, set_number_at, wordchar, notwordchar, wordbeg, wordend, wordbound, notwordbound, no_op = 0, succeed, exactn, anychar, charset, charset_not, start_memory, stop_memory, duplicate, begline, endline, begbuf, endbuf, jump, jump_past_alt, on_failure_jump, on_failure_keep_string_jump, pop_failure_jump, maybe_pop_jump, dummy_failure_jump, push_dummy_failure, succeed_n, jump_n, set_number_at, wordchar, notwordchar, wordbeg, wordend, wordbound, notwordbound, no_op = 0, succeed, exactn, anychar, charset, charset_not, start_memory, stop_memory, duplicate, begline, endline, begbuf, endbuf, jump, jump_past_alt, on_failure_jump, on_failure_keep_string_jump, pop_failure_jump, maybe_pop_jump, dummy_failure_jump, push_dummy_failure, succeed_n, jump_n, set_number_at, wordchar, notwordchar, wordbeg, wordend, wordbound, notwordbound, no_op = 0, succeed, exactn, anychar, charset, charset_not, start_memory, stop_memory, duplicate, begline, endline, begbuf, endbuf, jump, jump_past_alt, on_failure_jump, on_failure_keep_string_jump, pop_failure_jump, maybe_pop_jump, dummy_failure_jump, push_dummy_failure, succeed_n, jump_n, set_number_at, wordchar, notwordchar, wordbeg, wordend, wordbound, notwordbound, no_op = 0, succeed, exactn, anychar, charset, charset_not, start_memory, stop_memory, duplicate, begline, endline, begbuf, endbuf, jump, jump_past_alt, on_failure_jump, on_failure_keep_string_jump, pop_failure_jump, maybe_pop_jump, dummy_failure_jump, push_dummy_failure, succeed_n, jump_n, set_number_at, wordchar, notwordchar, wordbeg, wordend, wordbound, notwordbound } |
Functions/Subroutines | |
| char * | malloc () |
| char * | realloc () |
| static void init_syntax_once | PARAMS ((void)) |
| static void | init_syntax_once () |
| static int re_match_2_internal | PARAMS ((struct re_pattern_buffer *bufp, const char *string1, int size1, const char *string2, int size2, int pos, struct re_registers *regs, int stop)) |
| reg_syntax_t | re_set_syntax (reg_syntax_t syntax) |
| static reg_errcode_t regex_compile | _RE_ARGS ((const char *pattern, size_t size, reg_syntax_t syntax, struct re_pattern_buffer *bufp)) |
| static void store_op1 | _RE_ARGS ((re_opcode_t op, unsigned char *loc, int arg)) |
| static void store_op2 | _RE_ARGS ((re_opcode_t op, unsigned char *loc, int arg1, int arg2)) |
| static void insert_op1 | _RE_ARGS ((re_opcode_t op, unsigned char *loc, int arg, unsigned char *end)) |
| static void insert_op2 | _RE_ARGS ((re_opcode_t op, unsigned char *loc, int arg1, int arg2, unsigned char *end)) |
| static boolean at_begline_loc_p | _RE_ARGS ((const char *pattern, const char *p, reg_syntax_t syntax)) |
| static boolean at_endline_loc_p | _RE_ARGS ((const char *p, const char *pend, reg_syntax_t syntax)) |
| static reg_errcode_t compile_range | _RE_ARGS ((const char **p_ptr, const char *pend, char *translate, reg_syntax_t syntax, unsigned char *b)) |
| static boolean group_in_compile_stack | _RE_ARGS ((compile_stack_typecompile_stack, regnum_t regnum)) |
| static reg_errcode_t | regex_compile (char *pattern, size_t size, reg_syntax_t syntax, struct re_pattern_buffer *bufp) const |
| static void | store_op1 (re_opcode_t op, unsigned char *loc, int arg) |
| static void | store_op2 (re_opcode_t op, unsigned char *loc, int arg1, int arg2) |
| static void | insert_op1 (re_opcode_t op, unsigned char *loc, int arg, unsigned char *end) |
| static void | insert_op2 (re_opcode_t op, unsigned char *loc, int arg1, int arg2, unsigned char *end) |
| static boolean | at_begline_loc_p (char *pattern, char *p, reg_syntax_t syntax) const |
| static boolean | at_endline_loc_p (char *p, char *pend, reg_syntax_t syntax) const |
| static boolean | group_in_compile_stack (compile_stack_type compile_stack, regnum_t regnum) |
| static reg_errcode_t | compile_range (char **p_ptr, char *pend, RE_TRANSLATE_TYPE translate, reg_syntax_t syntax, unsigned char *b) const |
| int | re_compile_fastmap (struct re_pattern_buffer *bufp) |
| void | re_set_registers (struct re_pattern_buffer *bufp, struct re_registers *regs, unsigned num_regs, regoff_t *starts, regoff_t *ends) |
| int | re_search (struct re_pattern_buffer *bufp, const char *string, int size, int startpos, int range, struct re_registers *regs) |
| int | re_search_2 (struct re_pattern_buffer *bufp, const char *string1, int size1, const char *string2, int size2, int startpos, int range, struct re_registers *regs, int stop) |
| int | re_match (struct re_pattern_buffer *bufp, const char *string, int size, int pos, struct re_registers *regs) |
| static boolean group_match_null_string_p | _RE_ARGS ((unsigned char **p, unsigned char *end, register_info_type *reg_info)) |
| static boolean alt_match_null_string_p | _RE_ARGS ((unsigned char *p, unsigned char *end, register_info_type *reg_info)) |
| static int bcmp_translate | _RE_ARGS ((const char *s1, const char *s2, int len, char *translate)) |
| int | re_match_2 (struct re_pattern_buffer *bufp, const char *string1, int size1, const char *string2, int size2, int pos, struct re_registers *regs, int stop) |
| static int | re_match_2_internal (struct re_pattern_buffer *bufp, const char *string1, int size1, const char *string2, int size2, int pos, struct re_registers *regs, int stop) |
| static boolean | group_match_null_string_p (unsigned char **p, unsigned char *end, register_info_type *reg_info) |
| static boolean | alt_match_null_string_p (unsigned char *p, unsigned char *end, register_info_type *reg_info) |
| static boolean | common_op_match_null_string_p (unsigned char **p, unsigned char *end, register_info_type *reg_info) |
| static int | bcmp_translate (char *s1, char *s2, int len, RE_TRANSLATE_TYPE translate) const |
| const char * | re_compile_pattern (char *pattern, size_t length, struct re_pattern_buffer *bufp) const |
| int | regcomp (regex_t *preg, const char *pattern, int cflags) |
| int | regexec (regex_t *preg, const char *string, size_t nmatch, pmatch, int eflags) const |
| size_t | regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) |
| void | regfree (regex_t *preg) |
Variables | |
| static char | re_syntax_table [CHAR_SET_SIZE] |
| reg_syntax_t | re_syntax_options |
| static const char *const | re_error_msgid [] |
| int | re_max_failures = 20000 |
| static char | reg_unset_dummy |
| #define assert | ( | e | ) |
Definition at line 898 of file gnu-regex.c.
Referenced by $ARGSHCK(), _alloc_unit(), _beautify(), _BUFFERIN(), _Cif_binread(), _CLOSE(), _cmplx_convert(), _dr_endrec(), _dw_endrec(), _ffconvert_stat(), _find_dupcnt(), _fio_du_close(), _fio_du_open(), _fmt_parse(), _FRF(), _FRN(), _FRU(), _frwd(), _FWF(), _FWN(), _FWU(), _fwwd(), _gather_data(), _gdc_dflt2len(), _get_dc_param(), _getnlval(), _INQUIRE(), _iochunk(), _ir_endrec(), _iw_endrec(), _ld_read(), _ld_write(), _lw_after_nonadv(), _map_to_dv(), _nl_stride_dv(), _nlrdent(), _nlstrent(), _nonadv_endrec(), _nonadv_partrec(), _OPEN(), _rdfmt(), _rnl90to77(), _scatter_data(), _set_stride(), _sr_endrec(), _stride_dv(), _strip_mine(), _sw_endrec(), _unit_close(), _unit_seek(), _Unwind_GetGR(), _Unwind_SetGR(), _wnl90to77(), _wrfmt(), _xanalyze_stmt_for_conds(), _xcombine_atom_with_disj(), _xcombine_disj_with_disj(), _xcreate_simple_basic_shackle(), _xdependence_is_preserved(), _xfer_iolist(), _xis_simple_shackle_case(), add_child_to_map(), Add_Parent_Loop_Constraints(), RES_REQ::Add_Resource(), AddStringToAttr(), argument_info_ptr(), argument_info_string(), argument_name_ptr(), argument_name_string(), Augment_Simple_Basic_Shackle(), bvInit(), RES::Calculate_Field_Width(), canonicalize_if_condition(), Cif_Putrecord(), LINEAR_CLAUSE::CLAUSE_atom(), LINEAR_CLAUSE::CLAUSE_conj(), LINEAR_CLAUSE::CLAUSE_nconj(), clusterInterpretpchclr(), common_op_match_null_string_p(), Common_Shackling_Depth(), convert(), Convert_Do_Loops_Conditionals(), copy_access_array_from_src2dst(), Create_array(), Create_New_Section(), Create_Shackle_If_Per_Stmt(), Create_Simple_Shackle_Loops(), IPA_DATA_FLOW::dataflow(), determine_if_sinkable_in_do(), DFBASE::DFBASE(), Divide_Exp_By_Const(), dumpem(), dumpif(), dumpimp(), EKAPI_GetLcRange(), EKAPI_Op2Opndsgrp(), EKAPI_RegStruct4id(), Em_Dwarf_Symbolic_Relocs_To_Elf(), DaVinci::Emit_Ack(), Emit_Bundle_Scheduling(), Extend_Dep_Vectors(), family_name(), fCheckIdenticalVal(), fEqual_val(), fExactTypeMatch(), fFailCheck(), fFailCheckLimitValue(), fFailCheckLimitValue2(), ffe_init_1(), ffe_init_2(), ffe_init_3(), ffe_terminate_1(), ffe_terminate_2(), ffe_terminate_3(), ffebad_here(), ffebad_init_0(), ffebad_string(), ffebit_count(), ffebit_set(), ffebit_test(), ffebld_constant_cmp(), ffebld_constant_new_integer1(), ffebld_constant_new_integerbinary(), ffebld_constant_new_integerhex(), ffebld_constant_new_integeroctal(), ffebld_constantarray_get(), ffebld_constantarray_new(), ffebld_constantarray_prepare(), ffebld_constantarray_preparray(), ffebld_constantarray_put(), ffebld_init_0(), ffebld_pool_pop(), ffecom_1(), ffecom_2(), ffecom_2pass_advise_entrypoint(), ffecom_arg_ptr_to_const_expr(), ffecom_arg_ptr_to_expr(), ffecom_arglist_expr_(), ffecom_call_(), ffecom_char_args_x_(), ffecom_char_enhance_arg_(), ffecom_concat_list_gather_(), ffecom_const_expr(), ffecom_constantunion(), ffecom_convert_narrow_(), ffecom_convert_to_complex_(), ffecom_convert_widen_(), ffecom_debug_kludge_(), ffecom_do_entry_(), ffecom_expand_let_stmt(), ffecom_expr_(), ffecom_expr_intrinsic_(), ffecom_expr_power_integer_(), ffecom_expr_rw(), ffecom_expr_w(), ffecom_f2c_make_type_(), ffecom_f2c_set_lio_code_(), ffecom_finish_compile(), ffecom_finish_decl(), ffecom_finish_global_(), ffecom_gen_sfuncdef_(), ffecom_gfrt_basictype(), ffecom_gfrt_kindtype(), ffecom_init_0(), ffecom_init_2(), ffecom_intrinsic_ichar_(), ffecom_intrinsic_len_(), ffecom_let_char_(), ffecom_lookup_label(), ffecom_make_gfrt_(), ffecom_make_tempvar(), ffecom_notify_init_storage(), ffecom_prepare_end(), ffecom_prepare_expr_(), ffecom_prepare_expr_rw(), ffecom_prepare_expr_w(), ffecom_prepare_return_expr(), ffecom_ptr_to_const_expr(), ffecom_ptr_to_expr(), ffecom_push_dummy_decls_(), ffecom_return_expr(), ffecom_start_progunit_(), ffecom_sym_commit(), ffecom_sym_end_transition(), ffecom_sym_retract(), ffecom_sym_transform_(), ffecom_sym_transform_assign_(), ffecom_transform_common_(), ffecom_transform_equiv_(), ffecom_type_expr(), ffecom_type_localvar_(), ffecom_vardesc_(), ffecom_which_entrypoint_decl(), ffecom_widest_expr_type_(), ffedata_advance_(), ffedata_begin(), ffedata_end(), ffedata_eval_integer1_(), ffedata_eval_offset_(), ffedata_eval_substr_begin_(), ffedata_eval_substr_end_(), ffedata_gather(), ffedata_gather_(), ffedata_pop_(), ffedata_value(), ffedata_value_(), ffeequiv_add(), ffeequiv_kill(), ffeequiv_layout_cblock(), ffeequiv_layout_local_(), ffeequiv_merge(), ffeequiv_offset_(), ffeequiv_symbol(), ffeequiv_update_init(), ffeequiv_update_save(), ffeexpr_cb_close_paren_ambig_1_(), ffeexpr_cb_close_paren_ci_(), ffeexpr_cb_comma_i_1_(), ffeexpr_cb_comma_i_2_(), ffeexpr_cb_comma_i_3_(), ffeexpr_cb_comma_i_5_(), ffeexpr_cb_end_notloc_(), ffeexpr_cb_end_notloc_1_(), ffeexpr_check_impctrl_(), ffeexpr_collapse_add(), ffeexpr_collapse_and(), ffeexpr_collapse_concatenate(), ffeexpr_collapse_convert(), ffeexpr_collapse_divide(), ffeexpr_collapse_eq(), ffeexpr_collapse_eqv(), ffeexpr_collapse_ge(), ffeexpr_collapse_gt(), ffeexpr_collapse_le(), ffeexpr_collapse_lt(), ffeexpr_collapse_multiply(), ffeexpr_collapse_ne(), ffeexpr_collapse_neqv(), ffeexpr_collapse_not(), ffeexpr_collapse_or(), ffeexpr_collapse_power(), ffeexpr_collapse_substr(), ffeexpr_collapse_subtract(), ffeexpr_collapse_uminus(), ffeexpr_collapse_xor(), ffeexpr_context_outer_(), ffeexpr_convert(), ffeexpr_declare_parenthesized_(), ffeexpr_declare_unadorned_(), ffeexpr_exprstack_push_binary_(), ffeexpr_finished_(), ffeexpr_finished_ambig_(), ffeexpr_fulfill_call_(), ffeexpr_make_float_const_(), ffeexpr_nil_apostrophe_(), ffeexpr_nil_end_period_(), ffeexpr_paren_rhs_let_(), ffeexpr_reduce_(), ffeexpr_sym_impdoitem_(), ffeexpr_sym_lhs_call_(), ffeexpr_sym_lhs_data_(), ffeexpr_sym_lhs_extfunc_(), ffeexpr_sym_lhs_impdoctrl_(), ffeexpr_sym_rhs_actualarg_(), ffeexpr_sym_rhs_let_(), ffeexpr_terminate_2(), ffeexpr_token_apos_char_(), ffeexpr_token_apostrophe_(), ffeexpr_token_arguments_(), ffeexpr_token_binary_period_(), ffeexpr_token_elements_(), ffeexpr_token_end_period_(), ffeexpr_token_first_lhs_(), ffeexpr_token_first_rhs_(), ffeexpr_token_first_rhs_5_(), ffeexpr_token_first_rhs_6_(), ffeexpr_token_funsubstr_(), ffeexpr_token_name_apos_name_(), ffeexpr_token_name_arg_(), ffeexpr_token_name_lhs_(), ffeexpr_token_name_rhs_(), ffeexpr_token_substring_(), ffeexpr_token_substrp_(), ffeglobal_new_(), ffeglobal_new_common(), ffeglobal_proc_def_arg(), ffeglobal_proc_def_nargs(), ffeglobal_proc_ref_arg(), ffeglobal_proc_ref_nargs(), ffeglobal_promoted(), ffeimplic_establish_initial(), ffeinfo_basictype_combine(), ffeinfo_init_0(), ffeinfo_set_type(), ffeinfo_type(), ffeintrin_basictype(), ffeintrin_fulfill_generic(), ffeintrin_fulfill_specific(), ffeintrin_gfrt_direct(), ffeintrin_gfrt_indirect(), ffeintrin_init_0(), ffeintrin_kindtype(), ffeintrin_name_generic(), ffeintrin_name_implementation(), ffeintrin_name_specific(), ffeintrin_state_family(), ffelex_append_to_token_(), ffelex_backslash_(), ffelex_file_fixed(), ffelex_file_free(), ffelex_include_(), ffelex_send_token_(), ffelex_set_include(), ffelex_splice_tokens(), ffelex_swallow_tokens(), ffelex_swallow_tokens_(), ffelex_token_dollar_from_names(), ffelex_token_kill(), ffelex_token_name_from_names(), ffelex_token_names_from_names(), ffelex_token_new_name(), ffelex_token_new_names(), ffelex_token_new_number(), ffelex_token_number_from_names(), ffelex_token_uscore_from_names(), ffelex_token_use(), ffename_find(), ffename_kill(), ffename_lookup(), ffename_space_kill(), ffesrc_strcmp_1ns2i(), ffesrc_strcmp_2c(), ffesrc_strncmp_2c(), ffesta_add_possible_(), ffesta_confirmed(), ffesta_ffebad_1p(), ffesta_ffebad_1sp(), ffesta_ffebad_here_current_stmt(), ffesta_inhibited_exec_transition_(), ffesta_is_inhibited(), ffesta_save_(), ffesta_second_(), ffesta_two(), ffesta_zero(), ffestb_beru10_(), ffestb_beru1_(), ffestb_decl_entsp_3_(), ffestb_decl_entsp_5_(), ffestb_decl_R539maybe_(), ffestb_do6_(), ffestb_dummy2_(), ffestb_R100110_(), ffestb_R100113_(), ffestb_R10014_(), ffestb_R10016_(), ffestb_R10018_(), ffestb_varlist(), ffestb_varlist5_(), ffestb_varlist6_(), ffestc_establish_declinfo_(), ffestc_establish_declstmt_(), ffestc_ffebad_here_doiter(), ffestc_kindtype_kind_(), ffestc_kindtype_star_(), ffestc_labeldef_branch_begin_(), ffestc_labeldef_branch_end_(), ffestc_labeldef_endif_(), ffestc_labeldef_format_(), ffestc_labeldef_notloop_(), ffestc_labeldef_notloop_begin_(), ffestc_labeldef_useless_(), ffestc_labelref_is_assignable_(), ffestc_labelref_is_branch_(), ffestc_labelref_is_format_(), ffestc_labelref_is_loopend_(), ffestc_promote_dummy_(), ffestc_promote_execdummy_(), ffestc_promote_sfdummy_(), ffestc_R1102(), ffestc_R1207_item(), ffestc_R1208_item(), ffestc_R1219(), ffestc_R1223(), ffestc_R1226(), ffestc_R1227(), ffestc_R1229_start(), ffestc_R501_attrib(), ffestc_R501_item(), ffestc_R522(), ffestc_R522item_cblock(), ffestc_R522item_object(), ffestc_R522start(), ffestc_R524_item(), ffestc_R528_item_startvals(), ffestc_R537_item(), ffestc_R542_item_nitem(), ffestc_R542_item_nlist(), ffestc_R544_equiv_(), ffestc_R547_item_object(), ffestc_R819A(), ffestc_R820A(), ffestc_R837(), ffestc_R904(), ffestc_R909_start(), ffestc_R910_start(), ffestc_R923A(), ffestc_shriek_do_(), ffestc_subr_binsrch_(), ffestc_subr_format_(), ffestc_subr_is_branch_(), ffestc_subr_is_format_(), ffestc_subr_is_present_(), ffestc_subr_unit_(), ffestc_V014_item_cblock(), ffestc_V014_item_object(), ffestd_do(), ffestd_end_R807(), ffestd_R1001dump_(), ffestd_R1001dump_1005_1_(), ffestd_R1001dump_1005_2_(), ffestd_R1001dump_1005_3_(), ffestd_R1001dump_1005_4_(), ffestd_R1001dump_1005_5_(), ffestd_R1001dump_1010_1_(), ffestd_R1001dump_1010_3_(), ffestd_R1001dump_1010_4_(), ffestd_R1001dump_1010_5_(), ffestd_R1001rtexpr_(), ffestd_R1102(), ffestd_R1103(), ffestd_R1111(), ffestd_R1112(), ffestd_R1207_item(), ffestd_R1208_item(), ffestd_R1219(), ffestd_R1221(), ffestd_R1223(), ffestd_R1225(), ffestd_R803(), ffestd_R806(), ffestd_R807(), ffestd_R809(), ffestd_R811(), ffestd_R819A(), ffestd_R819B(), ffestd_R842(), ffestd_S3P4(), ffestd_stmt_pass_(), ffestd_subr_labels_(), ffeste_begin_iterdo_(), ffeste_io_cilist_(), ffeste_io_dofio_(), ffeste_io_dolio_(), ffeste_io_douio_(), ffeste_io_ialist_(), ffeste_io_icilist_(), ffeste_labeldef_branch(), ffeste_R1001(), ffeste_R1212(), ffeste_R809(), ffeste_R810(), ffeste_R837(), ffeste_R842(), ffeste_R843(), ffeste_R904(), ffeste_R907(), ffeste_R909_start(), ffeste_R910_finish(), ffeste_R910_start(), ffeste_R911_start(), ffeste_R923A(), ffeste_R923B_start(), ffeste_subr_beru_(), ffestorag_end_layout(), ffestorag_exec_layout(), ffestt_dimlist_as_expr(), ffestt_formatlist_kill(), ffestu_dummies_transition_(), ffestu_list_exec_transition_(), ffestu_sym_end_transition(), ffestu_sym_exec_transition(), ffestw_display_state(), ffestw_kill(), ffestw_pop(), ffestw_update(), ffestw_use(), ffesymbol_attrs_string(), ffesymbol_declare_blockdataunit(), ffesymbol_declare_cblock(), ffesymbol_declare_funcnotresunit(), ffesymbol_declare_funcresult(), ffesymbol_declare_funcunit(), ffesymbol_declare_local(), ffesymbol_declare_programunit(), ffesymbol_declare_sfdummy(), ffesymbol_declare_subrunit(), ffesymbol_drive(), ffesymbol_init_0(), ffesymbol_lookup_local(), ffesymbol_new_(), ffesymbol_reference(), ffesymbol_resolve_intrin(), ffesymbol_retract(), ffesymbol_set_retractable(), ffetarget_aggregate_info(), ffetarget_align(), ffetarget_convert_any_typeless_(), ffetarget_convert_character1_integer4(), ffetarget_convert_character1_logical4(), ffetarget_convert_character1_typeless(), ffetarget_eq_character1(), ffetarget_ge_character1(), ffetarget_gt_character1(), ffetarget_integer1(), ffetarget_integerbinary(), ffetarget_integerhex(), ffetarget_integeroctal(), ffetarget_layout(), ffetarget_le_character1(), ffetarget_lt_character1(), ffetarget_ne_character1(), ffetarget_num_digits_(), ffetarget_real1(), ffetarget_real2(), ffetype_set_kind(), ffetype_set_star(), ffewhere_line_content(), ffewhere_line_file(), ffewhere_line_filelinenum(), ffewhere_line_kill(), ffewhere_line_use(), ffewhere_ll_lookup_(), fIdenticalVarDecl(), Find_Do_Loop_With_Min(), Find_Topmost_Unseen_If_Containing_Node(), Find_Unseen_If_Outside_Do(), finish_decl(), Form_Statement_Refs(), Format_Operand(), gather_stmts_in_func(), RESOURCE::Get(), RES::Get(), get_parent(), get_parent_or_null(), QUEUE< ITEM_TYPE >::Get_Tail_Q(), GNAME::GNAME(), group_match_null_string_p(), Handle_Sink_General_Case(), Handle_Sink_Promotion_Case(), Handle_Sink_Symbolic_Non_Promotion_Case(), handle_structs_in_regs(), Host_Endian(), Identical_Array_Refbase(), idxped4pstn(), incomplete_type_error(), integer_cst_le(), integer_cst_remainder(), Interferes_With_Symbolic_Bound(), LINEAR_CLAUSE::Is_Consistent(), is_integral_constant_expression(), is_integral_type(), is_numeric_scalar_type(), is_promotion_case(), Is_Provably_In_Bounds(), is_vector_inconsistent(), is_vector_trivial(), ISA_Operands_End(), ISA_Pack_End(), ISA_Properties_End(), IPA_DATA_FLOW::iterative_solver(), Iterative_Solver_Core(), ity2pchname(), jcf_dependency_init(), jcf_dependency_set_dep_file(), jcf_dependency_write(), KAPI_attribute4index(), KAPI_bidName(), KAPI_BundleIssueWidth(), KAPI_CacheHierarcy(), KAPI_CoreLatency(), KAPI_cportCount4fu(), KAPI_cportCount4ut(), KAPI_cportInfo(), KAPI_cportMask4fu(), KAPI_cportMask4ut(), KAPI_cutportInfo(), KAPI_destOppName(), KAPI_DisperseCount4syl(), KAPI_fu2fuName(), KAPI_fuGetLatencyType(), KAPI_fuGetMiscInfo(), KAPI_fuName2fuIndex(), KAPI_GetOppIndex(), KAPI_iid2fu(), KAPI_iid2it(), KAPI_iid2mnemonic(), KAPI_iid2uniqueName(), kapi_InitNumberOfClrNutCportPort(), KAPI_isReserved_bid(), kapi_LookUpIdent_valhdr(), kapi_LookUpVariable_valhdr(), KAPI_MaxIntraClusterTotalLatency(), KAPI_MinIntraClusterTotalLatency(), KAPI_nCacheHierarchyLevels(), KAPI_portInfo(), kapi_ProcessArithmeticAssignment(), kapi_ProcessCacheData(), kapi_ProcessExpect(), kapi_ProcessInstructionData(), kapi_ProcessTypeDecl(), kapi_ProcessVarDecl(), kapi_pstnLookup(), kapi_pstnLookup_noadd(), kapi_ptfiLookup(), KAPI_save_as_header_MachineDescription_struct(), KAPI_SbitPlacement_bid(), KAPI_srcOppName(), KAPI_SylCount_bid(), KAPI_SylOrder_bid(), KAPI_utCount_syl(), KDebug_DumpFUTable(), KDebug_DumpIdent(), KDebug_DumpInstTable(), KDebug_DumpType(), KDebug_DumpTypeSpec(), KDebug_DumpVarValues(), KDebug_printval(), KDebug_printval2(), KDebug_PrintVarValueLimits(), KMAPI_ClearAllocationOptions(), KMAPI_DestroyResourceMap(), KMAPI_GetRawOptions(), KMAPI_ImplicitBreakType(), KMAPI_MapInstructionToPort(), KMAPI_nAllocationOptions4syl(), KMAPI_ResourceInfo(), KMAPI_ResourceStatus(), KMAPI_SetAllResources(), KMAPI_SetResource(), Largest_Empty_Subtree(), layout_mcore_frame(), main(), malloc_find_inpool_(), malloc_kill_area_(), malloc_kill_inpool_(), malloc_new_(), malloc_new_inpool_(), malloc_pool_kill(), malloc_resize_(), malloc_resize_inpool_(), malloc_verify_inpool_(), mark_addressable(), Maybe_Handle_Sink_Promotion_Case(), pbvBuild4valhdr(), pbvDup(), pbvMake(), pedGetIth(), pedLookup4pstn(), print_insn_avr(), Print_Name(), print_type_string(), PROC_Properties_End(), ProcessArrayAssign(), ProcessNewLimits(), pstnEnum2idx(), pushdecl(), pushlevel(), re_compile_fastmap(), re_match_2_internal(), RedefineVariable(), RedefineVariable_array_elt(), RedefineVariable_array_elt_bitmask(), RedefineVariable_array_idx(), RedefineVariable_scalar_bitmask(), regex_compile(), Remove_Consts_From_Conditionals(), Remove_Redundant_And_Inconsistent_If(), RestructureAttributes(), return_upper_bound(), LATENCY_INFO::Set_Time(), shackling_depth(), Simplify_Cond_With_Div_Floor(), Sink_If2do(), start_decl(), start_function(), QUEUE_WKLIST_ITER< ITEM_TYPE >::Step(), testname(), testnames(), TI_ASM_DisAsm_Inst(), TI_ASM_Get_Bundle_Reloc_Value(), TI_ASM_Set_Bundle_Reloc_Value(), TI_ASM_Unpack_Inst(), TI_BUNDLE_Reserve_Stop_Bit(), TI_BUNDLE_Unreserve_Stop_Bit(), translate_reloc32(), translate_reloc64(), Type_Name(), Type_Size(), Type_Suffix(), V3geLB_Implies_V3geUB(), V3leUB_Implies_V3leLB(), VARNAME::VARNAME(), verify_addr_expr(), verify_arithmetic_binary_op(), verify_array_ref(), verify_array_type(), verify_bind_expr(), verify_bit_not_expr(), verify_bitwise_binary_op(), verify_call_expr(), verify_case_label(), verify_class_type(), verify_cleanup_statement(), verify_comparison(), verify_complex_type(), verify_component_ref(), verify_compound_expr(), verify_compound_statement(), verify_cond_expr(), verify_const_decl(), verify_constructor_expr(), verify_controlling_expr(), verify_convert_expr(), verify_ctor_initializer(), verify_decl(), verify_decl_statement(), verify_do_statement(), verify_enumeral_type(), verify_expr(), verify_field_decl(), verify_float_expr(), verify_for_statement(), verify_function(), verify_function_arguments(), verify_function_type(), verify_global_namespace(), verify_goto_statement(), verify_identifier(), verify_if_statement(), verify_incr_or_decr(), verify_indirect_ref(), verify_init_expr(), verify_integer_cst(), verify_integer_type(), verify_label_decl(), verify_logical_binary_op(), verify_method_type(), verify_modify_expr(), verify_named_type(), verify_namespace(), verify_negate_expr(), verify_nop_expr(), verify_ordinary_identifier(), verify_overload(), verify_parentless(), verify_parm_decl(), verify_pointer_type(), verify_ptrmem_cst(), verify_real_type(), verify_reference_type(), verify_return_statement(), verify_save_expr(), verify_scope_statement(), verify_shift_expr(), verify_simple_string_cst(), verify_statement(), verify_string_cst(), verify_switch_statement(), verify_target_expr(), verify_template_decl(), verify_throw_expr(), verify_trunc_expr(), verify_truth_not_expr(), verify_try_block(), verify_type(), verify_type_name_is(), verify_var_decl(), verify_var_decl_statement(), verify_while_statement(), and Visit_State().
| #define BUF_PUSH | ( | c | ) |
Value:
do { \ GET_BUFFER_SPACE (1); \ *b++ = (unsigned char) (c); \ } while (0)
Definition at line 1495 of file gnu-regex.c.
Referenced by regex_compile().
| #define BUF_PUSH_2 | ( | c1, | |||
| c2 | ) |
Value:
do { \ GET_BUFFER_SPACE (2); \ *b++ = (unsigned char) (c1); \ *b++ = (unsigned char) (c2); \ } while (0)
Definition at line 1503 of file gnu-regex.c.
Referenced by regex_compile().
| #define BUF_PUSH_3 | ( | c1, | |||
| c2, | |||||
| c3 | ) |
Value:
do { \ GET_BUFFER_SPACE (3); \ *b++ = (unsigned char) (c1); \ *b++ = (unsigned char) (c2); \ *b++ = (unsigned char) (c3); \ } while (0)
Definition at line 1512 of file gnu-regex.c.
Referenced by regex_compile().
| #define BYTEWIDTH 8 |
Definition at line 301 of file gnu-regex.c.
| #define CHAR_CLASS_MAX_LENGTH 6 |
| #define CHAR_SET_SIZE 256 |
Definition at line 146 of file gnu-regex.c.
| #define COMPILE_STACK_EMPTY (compile_stack.avail == 0) |
| #define COMPILE_STACK_FULL (compile_stack.avail == compile_stack.size) |
| #define COMPILE_STACK_TOP (compile_stack.stack[compile_stack.avail]) |
| #define DEBUG_POP | ( | item_addr | ) |
Definition at line 1170 of file gnu-regex.c.
| #define DEBUG_PRINT1 | ( | x | ) |
Definition at line 901 of file gnu-regex.c.
Referenced by re_match_2_internal(), and regex_compile().
| #define DEBUG_PRINT_COMPILED_PATTERN | ( | p, | |||
| s, | |||||
| e | ) |
| #define DEBUG_PUSH | ( | item | ) |
Definition at line 1169 of file gnu-regex.c.
| #define DEBUG_STATEMENT | ( | e | ) |
Definition at line 900 of file gnu-regex.c.
| #define DOUBLE_FAIL_STACK | ( | fail_stack | ) |
Value:
((fail_stack).size > (unsigned) (re_max_failures * MAX_FAILURE_ITEMS) \ ? 0 \ : ((fail_stack).stack = (fail_stack_elt_t *) \ REGEX_REALLOCATE_STACK ((fail_stack).stack, \ (fail_stack).size * sizeof (fail_stack_elt_t), \ ((fail_stack).size << 1) * sizeof (fail_stack_elt_t)), \ \ (fail_stack).stack == NULL \ ? 0 \ : ((fail_stack).size <<= 1, \ 1)))
Definition at line 1116 of file gnu-regex.c.
| #define EXTEND_BUFFER | ( | ) |
Value:
do { \ unsigned char *old_buffer = bufp->buffer; \ if (bufp->allocated == MAX_BUF_SIZE) \ return REG_ESIZE; \ bufp->allocated <<= 1; \ if (bufp->allocated > MAX_BUF_SIZE) \ bufp->allocated = MAX_BUF_SIZE; \ bufp->buffer = (unsigned char *) REALLOC (bufp->buffer, bufp->allocated);\ if (bufp->buffer == NULL) \ return REG_ESPACE; \ /* If the buffer moved, move all the pointers into it. */ \ if (old_buffer != bufp->buffer) \ { \ b = (b - old_buffer) + bufp->buffer; \ begalt = (begalt - old_buffer) + bufp->buffer; \ if (fixup_alt_jump) \ fixup_alt_jump = (fixup_alt_jump - old_buffer) + bufp->buffer;\ if (laststart) \ laststart = (laststart - old_buffer) + bufp->buffer; \ if (pending_exact) \ pending_exact = (pending_exact - old_buffer) + bufp->buffer; \ } \ } while (0)
Definition at line 1562 of file gnu-regex.c.
| #define EXTRACT_NUMBER | ( | destination, | |||
| source | ) |
Value:
do { \ (destination) = *(source) & 0377; \ (destination) += SIGN_EXTEND_CHAR (*((source) + 1)) << 8; \ } while (0)
Definition at line 483 of file gnu-regex.c.
Referenced by group_match_null_string_p(), and re_match_2_internal().
| #define EXTRACT_NUMBER_AND_INCR | ( | destination, | |||
| source | ) |
Value:
do { \ EXTRACT_NUMBER (destination, source); \ (source) += 2; \ } while (0)
Definition at line 511 of file gnu-regex.c.
Referenced by alt_match_null_string_p(), common_op_match_null_string_p(), group_match_null_string_p(), re_compile_fastmap(), and re_match_2_internal().
| #define FAIL_STACK_EMPTY | ( | ) | (fail_stack.avail == 0) |
Definition at line 1077 of file gnu-regex.c.
Referenced by re_compile_fastmap(), and re_match_2_internal().
| #define FAIL_STACK_FULL | ( | ) | (fail_stack.avail == fail_stack.size) |
Definition at line 1079 of file gnu-regex.c.
| #define FAIL_STACK_PTR_EMPTY | ( | ) | (fail_stack_ptr->avail == 0) |
Definition at line 1078 of file gnu-regex.c.
| #define false 0 |
Definition at line 311 of file gnu-regex.c.
Definition at line 291 of file gnu-regex.c.
| #define FREE_STACK_RETURN | ( | value | ) | return (free (compile_stack.stack), value) |
| #define FREE_VAR | ( | var | ) | if (var) REGEX_FREE (var); var = NULL |
Definition at line 3625 of file gnu-regex.c.
| #define FREE_VARIABLES | ( | ) |
Value:
do { \ REGEX_FREE_STACK (fail_stack.stack); \ FREE_VAR (regstart); \ FREE_VAR (regend); \ FREE_VAR (old_regstart); \ FREE_VAR (old_regend); \ FREE_VAR (best_regstart); \ FREE_VAR (best_regend); \ FREE_VAR (reg_info); \ FREE_VAR (reg_dummy); \ FREE_VAR (reg_info_dummy); \ } while (0)
Definition at line 3626 of file gnu-regex.c.
Referenced by re_match_2_internal().
| #define GET_BUFFER_SPACE | ( | n | ) |
Value:
while ((unsigned long) (b - bufp->buffer + (n)) > bufp->allocated) \ EXTEND_BUFFER ()
Definition at line 1490 of file gnu-regex.c.
Referenced by regex_compile().
| #define GET_UNSIGNED_NUMBER | ( | num | ) |
Definition at line 72 of file gnu-regex.c.
| #define gettext_noop | ( | String | ) | String |
Definition at line 78 of file gnu-regex.c.
| #define INIT_BUF_SIZE 32 |
| #define INIT_COMPILE_STACK_SIZE 32 |
| #define INIT_FAIL_STACK | ( | ) |
Value:
do { \ fail_stack.stack = (fail_stack_elt_t *) \ REGEX_ALLOCATE_STACK (INIT_FAILURE_ALLOC * sizeof (fail_stack_elt_t)); \ \ if (fail_stack.stack == NULL) \ return -2; \ \ fail_stack.size = INIT_FAILURE_ALLOC; \ fail_stack.avail = 0; \ } while (0)
Definition at line 1086 of file gnu-regex.c.
Referenced by re_compile_fastmap(), and re_match_2_internal().
| #define INIT_FAILURE_ALLOC 5 |
Definition at line 1017 of file gnu-regex.c.
| #define IS_CHAR_CLASS | ( | string | ) |
Value:
(STREQ (string, "alpha") || STREQ (string, "upper") \ || STREQ (string, "lower") || STREQ (string, "digit") \ || STREQ (string, "alnum") || STREQ (string, "xdigit") \ || STREQ (string, "space") || STREQ (string, "print") \ || STREQ (string, "punct") || STREQ (string, "graph") \ || STREQ (string, "cntrl") || STREQ (string, "blank"))
Definition at line 1674 of file gnu-regex.c.
Referenced by regex_compile().
| #define MATCH_MAY_ALLOCATE |
Definition at line 990 of file gnu-regex.c.
| #define MATCH_NULL_UNSET_VALUE 3 |
Definition at line 1390 of file gnu-regex.c.
Referenced by common_op_match_null_string_p(), and re_match_2_internal().
| #define MATCHING_IN_FIRST_STRING (dend == end_match_1) |
| #define MAX_BUF_SIZE (1L << 16) |
Definition at line 1554 of file gnu-regex.c.
| #define MAX_FAILURE_ITEMS (5 * NUM_REG_ITEMS + NUM_NONREG_ITEMS) |
| #define MAX_REGNUM 255 |
Definition at line 1591 of file gnu-regex.c.
Referenced by common_op_match_null_string_p(), and regex_compile().
| #define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH) |
| #define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1) |
| #define NULL (void *)0 |
Definition at line 197 of file gnu-regex.c.
| #define NUM_FAILURE_ITEMS |
Value:
(((0 \
? 0 : highest_active_reg - lowest_active_reg + 1) \
* NUM_REG_ITEMS) \
+ NUM_NONREG_ITEMS)
Definition at line 1277 of file gnu-regex.c.
| #define NUM_NONREG_ITEMS 4 |
Definition at line 1267 of file gnu-regex.c.
| #define NUM_REG_ITEMS 3 |
Definition at line 1261 of file gnu-regex.c.
| #define PARAMS | ( | args | ) | () |
Definition at line 48 of file gnu-regex.c.
| #define PATFETCH | ( | c | ) |
| #define PATFETCH_RAW | ( | c | ) |
| #define PATUNFETCH p-- |
| #define POINTER_TO_OFFSET | ( | ptr | ) |
Value:
(FIRST_STRING_P (ptr) \ ? ((regoff_t) ((ptr) - string1)) \ : ((regoff_t) ((ptr) - string2 + size1)))
Definition at line 3576 of file gnu-regex.c.
Referenced by re_match_2_internal().
| #define POP_FAILURE_ELT | ( | ) | fail_stack.stack[--fail_stack.avail] |
Definition at line 1162 of file gnu-regex.c.
| #define POP_FAILURE_INT | ( | ) | fail_stack.stack[--fail_stack.avail].integer |
Definition at line 1161 of file gnu-regex.c.
| #define POP_FAILURE_POINTER | ( | ) | fail_stack.stack[--fail_stack.avail].pointer |
Definition at line 1160 of file gnu-regex.c.
| #define PREFETCH | ( | ) |
Value:
while (d == dend) \ { \ /* End of string2 => fail. */ \ if (dend == end_match_2) \ goto fail; \ /* End of string1 => advance to string2. */ \ d = string2; \ dend = end_match_2; \ }
Definition at line 3587 of file gnu-regex.c.
Referenced by find_inherently_necessary(), gt_ggc_mx_rtx_def(), instantiate_virtual_regs_1(), note_uses(), print_exp(), re_match_2_internal(), recog(), recog_11(), and reg_referenced_p().
| #define PUSH_FAILURE_ELT | ( | item | ) | fail_stack.stack[fail_stack.avail++] = (item) |
Definition at line 1155 of file gnu-regex.c.
| #define PUSH_FAILURE_INT | ( | item | ) | fail_stack.stack[fail_stack.avail++].integer = (item) |
Definition at line 1149 of file gnu-regex.c.
| #define PUSH_FAILURE_POINT | ( | pattern_place, | |||
| string_place, | |||||
| failure_code | ) |
| #define PUSH_FAILURE_POINTER | ( | item | ) | fail_stack.stack[fail_stack.avail++].pointer = (unsigned char *) (item) |
Definition at line 1143 of file gnu-regex.c.
| #define PUSH_PATTERN_OP | ( | POINTER, | |||
| FAIL_STACK | ) |
Value:
((FAIL_STACK_FULL () \ && !DOUBLE_FAIL_STACK (FAIL_STACK)) \ ? 0 \ : ((FAIL_STACK).stack[(FAIL_STACK).avail++].pointer = POINTER, \ 1))
Definition at line 1133 of file gnu-regex.c.
Referenced by re_compile_fastmap().
Definition at line 1555 of file gnu-regex.c.
Definition at line 1398 of file gnu-regex.c.
Referenced by common_op_match_null_string_p(), and re_match_2_internal().
| #define REG_UNSET | ( | e | ) | ((e) == REG_UNSET_VALUE) |
| #define REG_UNSET_VALUE (®_unset_dummy) |
| #define REGEX_ALLOCATE alloca |
Definition at line 244 of file gnu-regex.c.
| #define REGEX_ALLOCATE_STACK alloca |
Definition at line 277 of file gnu-regex.c.
Definition at line 252 of file gnu-regex.c.
| #define REGEX_FREE_STACK | ( | arg | ) |
Definition at line 282 of file gnu-regex.c.
| #define REGEX_REALLOCATE | ( | source, | |||
| osize, | |||||
| nsize | ) |
Value:
Definition at line 247 of file gnu-regex.c.
Definition at line 279 of file gnu-regex.c.
Definition at line 299 of file gnu-regex.c.
| #define REMAINING_AVAIL_SLOTS ((fail_stack).size - (fail_stack).avail) |
Definition at line 1284 of file gnu-regex.c.
| #define RESET_FAIL_STACK | ( | ) | REGEX_FREE_STACK (fail_stack.stack) |
Definition at line 296 of file gnu-regex.c.
| #define RETALLOC_IF | ( | addr, | |||
| n, | |||||
| t | ) | if (addr) RETALLOC((addr), (n), t); else (addr) = TALLOC ((n), t) |
Definition at line 297 of file gnu-regex.c.
| #define SET_LIST_BIT | ( | c | ) |
Value:
Definition at line 1633 of file gnu-regex.c.
Referenced by compile_range(), and regex_compile().
| #define SET_REGS_MATCHED | ( | ) |
Value:
do \ { \ if (!set_regs_matched_done) \ { \ active_reg_t r; \ set_regs_matched_done = 1; \ for (r = lowest_active_reg; r <= highest_active_reg; r++) \ { \ MATCHED_SOMETHING (reg_info[r]) \ = EVER_MATCHED_SOMETHING (reg_info[r]) \ = 1; \ } \ } \ } \ while (0)
Definition at line 1407 of file gnu-regex.c.
Referenced by re_match_2_internal().
Definition at line 209 of file gnu-regex.c.
| #define STORE_NUMBER | ( | destination, | |||
| number | ) |
Value:
do { \ (destination)[0] = (number) & 0377; \ (destination)[1] = (number) >> 8; \ } while (0)
Definition at line 464 of file gnu-regex.c.
Referenced by re_match_2_internal(), store_op1(), and store_op2().
| #define STORE_NUMBER_AND_INCR | ( | destination, | |||
| number | ) |
Value:
do { \ STORE_NUMBER (destination, number); \ (destination) += 2; \ } while (0)
Definition at line 474 of file gnu-regex.c.
Referenced by re_match_2_internal().
| #define SWITCH_ENUM_CAST | ( | x | ) | (x) |
Definition at line 142 of file gnu-regex.c.
| #define Sword 1 |
Definition at line 136 of file gnu-regex.c.
| #define SYNTAX | ( | c | ) | re_syntax_table[c] |
Definition at line 185 of file gnu-regex.c.
Definition at line 295 of file gnu-regex.c.
Definition at line 1479 of file gnu-regex.c.
Referenced by compile_range(), re_match_2_internal(), re_search_2(), and regex_compile().
| #define true 1 |
Definition at line 312 of file gnu-regex.c.
| #define volatile |
Definition at line 82 of file gnu-regex.c.
| #define WORDCHAR_P | ( | d | ) |
| typedef char boolean |
Definition at line 310 of file gnu-regex.c.
| typedef union fail_stack_elt fail_stack_elt_t |
Definition at line 1066 of file gnu-regex.c.
| typedef long pattern_offset_t |
Definition at line 1603 of file gnu-regex.c.
| typedef unsigned regnum_t |
Definition at line 1595 of file gnu-regex.c.
| enum re_opcode_t |
Definition at line 326 of file gnu-regex.c.
| static int bcmp_translate _RE_ARGS | ( | (const char *s1, const char *s2, int len, char *translate) | ) | [static] |
| static boolean alt_match_null_string_p _RE_ARGS | ( | (unsigned char *p, unsigned char *end, register_info_type *reg_info) | ) | [static] |
| static boolean common_op_match_null_string_p _RE_ARGS | ( | (unsigned char **p, unsigned char *end, register_info_type *reg_info) | ) | [static] |
| static boolean group_in_compile_stack _RE_ARGS | ( | (compile_stack_typecompile_stack, regnum_t regnum) | ) | [static] |
| static reg_errcode_t compile_range _RE_ARGS | ( | (const char **p_ptr, const char *pend, char *translate, reg_syntax_t syntax, unsigned char *b) | ) | [static] |
| static boolean at_endline_loc_p _RE_ARGS | ( | (const char *p, const char *pend, reg_syntax_t syntax) | ) | [static] |
| static boolean at_begline_loc_p _RE_ARGS | ( | (const char *pattern, const char *p, reg_syntax_t syntax) | ) | [static] |
| static void insert_op2 _RE_ARGS | ( | (re_opcode_t op, unsigned char *loc, int arg1, int arg2, unsigned char *end) | ) | [static] |
| static void insert_op1 _RE_ARGS | ( | (re_opcode_t op, unsigned char *loc, int arg, unsigned char *end) | ) | [static] |
| static void store_op2 _RE_ARGS | ( | (re_opcode_t op, unsigned char *loc, int arg1, int arg2) | ) | [static] |
| static void store_op1 _RE_ARGS | ( | (re_opcode_t op, unsigned char *loc, int arg) | ) | [static] |
| static reg_errcode_t regex_compile _RE_ARGS | ( | (const char *pattern, size_t size, reg_syntax_t syntax, struct re_pattern_buffer *bufp) | ) | [static] |
| static boolean alt_match_null_string_p | ( | unsigned char * | p, | |
| unsigned char * | end, | |||
| register_info_type * | reg_info | |||
| ) | [static] |
Definition at line 5241 of file gnu-regex.c.
References common_op_match_null_string_p(), EXTRACT_NUMBER_AND_INCR, and on_failure_jump.
Referenced by group_match_null_string_p().
| static boolean at_begline_loc_p | ( | char * | pattern, | |
| char * | p, | |||
| reg_syntax_t | syntax | |||
| ) | const [static] |
Definition at line 2938 of file gnu-regex.c.
References prev, RE_NO_BK_PARENS, and RE_NO_BK_VBAR.
Referenced by regex_compile().
| static boolean at_endline_loc_p | ( | char * | p, | |
| char * | pend, | |||
| reg_syntax_t | syntax | |||
| ) | const [static] |
Definition at line 2957 of file gnu-regex.c.
References next, RE_NO_BK_PARENS, and RE_NO_BK_VBAR.
Referenced by regex_compile().
| static int bcmp_translate | ( | char * | s1, | |
| char * | s2, | |||
| int | len, | |||
| RE_TRANSLATE_TYPE | translate | |||
| ) | const [static] |
| static boolean common_op_match_null_string_p | ( | unsigned char ** | p, | |
| unsigned char * | end, | |||
| register_info_type * | reg_info | |||
| ) | [static] |
Definition at line 5278 of file gnu-regex.c.
References assert, begbuf, begline, duplicate, endbuf, endline, EXTRACT_NUMBER_AND_INCR, group_match_null_string_p(), jump, MATCH_NULL_UNSET_VALUE, MAX_REGNUM, no_op, notwordbound, REG_MATCH_NULL_STRING_P, ret, set_number_at, start_memory, succeed_n, wordbeg, wordbound, and wordend.
Referenced by alt_match_null_string_p(), and group_match_null_string_p().
| static reg_errcode_t compile_range | ( | char ** | p_ptr, | |
| char * | pend, | |||
| RE_TRANSLATE_TYPE | translate, | |||
| reg_syntax_t | syntax, | |||
| unsigned char * | b | |||
| ) | const [static] |
Definition at line 3007 of file gnu-regex.c.
References RE_NO_EMPTY_RANGES, REG_ERANGE, REG_NOERROR, SET_LIST_BIT, and TRANSLATE.
Referenced by regex_compile().
| static boolean group_in_compile_stack | ( | compile_stack_type | compile_stack, | |
| regnum_t | regnum | |||
| ) | [static] |
Definition at line 2979 of file gnu-regex.c.
| static boolean group_match_null_string_p | ( | unsigned char ** | p, | |
| unsigned char * | end, | |||
| register_info_type * | reg_info | |||
| ) | [static] |
Definition at line 5132 of file gnu-regex.c.
References alt_match_null_string_p(), assert, common_op_match_null_string_p(), EXTRACT_NUMBER, EXTRACT_NUMBER_AND_INCR, jump_past_alt, on_failure_jump, and stop_memory.
Referenced by common_op_match_null_string_p(), and re_match_2_internal().
| static void insert_op1 | ( | re_opcode_t | op, | |
| unsigned char * | loc, | |||
| int | arg, | |||
| unsigned char * | end | |||
| ) | [static] |
| static void insert_op2 | ( | re_opcode_t | op, | |
| unsigned char * | loc, | |||
| int | arg1, | |||
| int | arg2, | |||
| unsigned char * | end | |||
| ) | [static] |
| char* malloc | ( | ) |
| static int re_match_2_internal PARAMS | ( | (struct re_pattern_buffer *bufp, const char *string1, int size1, const char *string2, int size2, int pos, struct re_registers *regs, int stop) | ) | [static] |
Definition at line 77 of file cplus-dem.c.
| int re_compile_fastmap | ( | struct re_pattern_buffer * | bufp | ) |
Definition at line 3066 of file gnu-regex.c.
References abort, anychar, assert, fail_stack_type::avail, begbuf, begline, BYTEWIDTH, bzero(), charset, charset_not, dummy_failure_jump, duplicate, endbuf, endline, exactn, EXTRACT_NUMBER_AND_INCR, FAIL_STACK_EMPTY, INIT_FAIL_STACK, jump, jump_n, jump_past_alt, maybe_pop_jump, no_op, notwordbound, notwordchar, NULL, on_failure_jump, on_failure_keep_string_jump, pattern, fail_stack_elt::pointer, pop_failure_jump, push_dummy_failure, PUSH_PATTERN_OP, RE_DOT_NEWLINE, RESET_FAIL_STACK, set_number_at, fail_stack_type::stack, start_memory, stop_memory, succeed, succeed_n, SWITCH_ENUM_CAST, Sword, SYNTAX, wordbeg, wordbound, wordchar, and wordend.
| const char* re_compile_pattern | ( | char * | pattern, | |
| size_t | length, | |||
| struct re_pattern_buffer * | bufp | |||
| ) | const |
Definition at line 5393 of file gnu-regex.c.
References gettext, re_pattern_buffer::newline_anchor, re_pattern_buffer::no_sub, NULL, regex_compile(), re_pattern_buffer::regs_allocated, REGS_UNALLOCATED, and ret.
| int re_match | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string, | |||
| int | size, | |||
| int | pos, | |||
| struct re_registers * | regs | |||
| ) |
Definition at line 3659 of file gnu-regex.c.
References alloca, NULL, re_match_2_internal(), and result.
| int re_match_2 | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string1, | |||
| int | size1, | |||
| const char * | string2, | |||
| int | size2, | |||
| int | pos, | |||
| struct re_registers * | regs, | |||
| int | stop | |||
| ) |
| static int re_match_2_internal | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string1, | |||
| int | size1, | |||
| const char * | string2, | |||
| int | size2, | |||
| int | pos, | |||
| struct re_registers * | regs, | |||
| int | stop | |||
| ) | [static] |
Definition at line 3729 of file gnu-regex.c.
References abort, anychar, assert, AT_STRINGS_BEG, AT_STRINGS_END, bcmp_translate(), begbuf, begline, BYTEWIDTH, char, charset, charset_not, d, d2, DEBUG_PRINT1, DEBUG_PRINT2, DEBUG_PRINT3, DEBUG_PRINT4, DEBUG_PRINT_COMPILED_PATTERN, DEBUG_PRINT_DOUBLE_STRING, dummy_failure_jump, duplicate, re_registers::end, endbuf, endline, EVER_MATCHED_SOMETHING, exactn, EXTRACT_NUMBER, EXTRACT_NUMBER_AND_INCR, fail, FAIL_STACK_EMPTY, FIRST_STRING_P, FREE_VARIABLES, group_match_null_string_p(), idx, INIT_FAIL_STACK, int, IS_ACTIVE, jump, jump_n, jump_past_alt, MATCH_NULL_UNSET_VALUE, MATCHED_SOMETHING, MATCHING_IN_FIRST_STRING, MAX, maybe_pop_jump, memcmp, MIN, NO_HIGHEST_ACTIVE_REG, NO_LOWEST_ACTIVE_REG, no_op, not, notwordbound, notwordchar, NULL, re_registers::num_regs, on_failure_jump, on_failure_keep_string_jump, p2, POINTER_TO_OFFSET, pop_failure_jump, POP_FAILURE_POINT, PREFETCH, push_dummy_failure, PUSH_FAILURE_POINT, r, RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_NREGS, RE_TRANSLATE_TYPE, REG_MATCH_NULL_STRING_P, REG_UNSET, REG_UNSET_VALUE, REGEX_TALLOC, REGS_FIXED, REGS_REALLOCATE, REGS_UNALLOCATED, RETALLOC, set_number_at, SET_REGS_MATCHED, re_registers::start, start_memory, stop_memory, STORE_NUMBER, STORE_NUMBER_AND_INCR, succeed, succeed_n, SWITCH_ENUM_CAST, Sword, SYNTAX, TALLOC, translate(), TRANSLATE, unsigned, wordbeg, wordbound, wordchar, WORDCHAR_P, and wordend.
Referenced by re_match(), re_match_2(), and re_search_2().
| int re_search | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string, | |||
| int | size, | |||
| int | startpos, | |||
| int | range, | |||
| struct re_registers * | regs | |||
| ) |
| int re_search_2 | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string1, | |||
| int | size1, | |||
| const char * | string2, | |||
| int | size2, | |||
| int | startpos, | |||
| int | range, | |||
| struct re_registers * | regs, | |||
| int | stop | |||
| ) |
Definition at line 3438 of file gnu-regex.c.
References advance(), alloca, begbuf, d, re_compile_fastmap, re_match_2_internal(), RE_TRANSLATE_TYPE, translate(), TRANSLATE, and val.
| void re_set_registers | ( | struct re_pattern_buffer * | bufp, | |
| struct re_registers * | regs, | |||
| unsigned | num_regs, | |||
| regoff_t * | starts, | |||
| regoff_t * | ends | |||
| ) |
Definition at line 3372 of file gnu-regex.c.
References re_registers::end, re_registers::num_regs, REGS_REALLOCATE, REGS_UNALLOCATED, and re_registers::start.
| reg_syntax_t re_set_syntax | ( | reg_syntax_t | syntax | ) |
| char* realloc | ( | ) |
| int regcomp | ( | regex_t * | preg, | |
| const char * | pattern, | |||
| int | cflags | |||
| ) |
Definition at line 5531 of file gnu-regex.c.
References BYTEWIDTH, CHAR_SET_SIZE, free(), malloc, NULL, re_compile_fastmap, RE_DOT_NEWLINE, RE_HAT_LISTS_NOT_NEWLINE, RE_SYNTAX_POSIX_BASIC, RE_SYNTAX_POSIX_EXTENDED, RE_TRANSLATE_TYPE, REG_EPAREN, REG_ERPAREN, REG_ESPACE, REG_EXTENDED, REG_ICASE, REG_NEWLINE, REG_NOERROR, REG_NOSUB, regex_compile(), strlen(), re_pattern_buffer::syntax, and TOLOWER.
Definition at line 5690 of file gnu-regex.c.
| static reg_errcode_t regex_compile | ( | char * | pattern, | |
| size_t | size, | |||
| reg_syntax_t | syntax, | |||
| struct re_pattern_buffer * | bufp | |||
| ) | const [static] |
Definition at line 1758 of file gnu-regex.c.
References re_pattern_buffer::allocated, anychar, assert, at_begline_loc_p(), at_endline_loc_p(), compile_stack_type::avail, b, begbuf, begline, BUF_PUSH, BUF_PUSH_2, BUF_PUSH_3, re_pattern_buffer::buffer, BYTEWIDTH, bzero(), CHAR_CLASS_MAX_LENGTH, charset, charset_not, compile_range(), COMPILE_STACK_EMPTY, COMPILE_STACK_FULL, COMPILE_STACK_TOP, DEBUG_PRINT1, dummy_failure_jump, duplicate, endbuf, endline, exactn, re_pattern_buffer::fastmap_accurate, free(), FREE_STACK_RETURN, GET_BUFFER_SPACE, GET_UNSIGNED_NUMBER, group_in_compile_stack(), INIT_BUF_SIZE, INIT_COMPILE_STACK_SIZE, init_syntax_once(), INSERT_JUMP, INSERT_JUMP2, insert_op2(), IS_CHAR_CLASS, is_space, ISALNUM, ISALPHA, ISBLANK, ISCNTRL, ISDIGIT, ISGRAPH, ISLOWER, ISPRINT, ISPUNCT, ISSPACE, ISUPPER, ISXDIGIT, jump, jump_n, jump_past_alt, malloc, MAX_FAILURE_ITEMS, MAX_REGNUM, maybe_pop_jump, re_pattern_buffer::not_bol, re_pattern_buffer::not_eol, notwordbound, notwordchar, NULL, on_failure_jump, on_failure_keep_string_jump, PATFETCH, PATFETCH_RAW, PATUNFETCH, push_dummy_failure, putchar(), RE_BACKSLASH_ESCAPE_IN_LISTS, RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS, RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS, RE_DOT_NEWLINE, RE_DUP_MAX, RE_HAT_LISTS_NOT_NEWLINE, RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT, RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS, RE_NO_BK_VBAR, RE_NO_GNU_OPS, RE_NO_POSIX_BACKTRACKING, re_pattern_buffer::re_nsub, RE_TRANSLATE_TYPE, RE_UNMATCHED_RIGHT_PAREN_ORD, realloc, REG_BADBR, REG_BADRPT, REG_EBRACE, REG_EBRACK, REG_ECTYPE, REG_EESCAPE, REG_EPAREN, REG_ERANGE, REG_ERPAREN, REG_ESPACE, REG_ESUBREG, REG_NOERROR, ret, RETALLOC, SET_LIST_BIT, set_number_at, compile_stack_type::size, fail_stack_type::size, fail_stack_type::stack, compile_stack_type::stack, start_memory, stop_memory, STORE_JUMP, STORE_JUMP2, str, STREQ, succeed, succeed_n, re_pattern_buffer::syntax, TALLOC, translate(), TRANSLATE, re_pattern_buffer::translate, re_pattern_buffer::used, wordbeg, wordbound, wordchar, wordend, xmalloc(), and xrealloc().
Referenced by re_compile_pattern(), and regcomp().
Definition at line 5622 of file gnu-regex.c.
References re_registers::end, free(), int, NULL, re_registers::num_regs, r, re_search, REG_NOERROR, REG_NOMATCH, REG_NOTBOL, REG_NOTEOL, REGS_FIXED, regmatch_t::rm_eo, regmatch_t::rm_so, re_registers::start, strlen(), and TALLOC.
| static void store_op1 | ( | re_opcode_t | op, | |
| unsigned char * | loc, | |||
| int | arg | |||
| ) | [static] |
Definition at line 2870 of file gnu-regex.c.
References char, and STORE_NUMBER.
Referenced by insert_op1().
| static void store_op2 | ( | re_opcode_t | op, | |
| unsigned char * | loc, | |||
| int | arg1, | |||
| int | arg2 | |||
| ) | [static] |
Definition at line 2883 of file gnu-regex.c.
References char, and STORE_NUMBER.
Referenced by insert_op2().
const char* const re_error_msgid[] [static] |
Initial value:
{
gettext_noop ("Success"),
gettext_noop ("No match"),
gettext_noop ("Invalid regular expression"),
gettext_noop ("Invalid collation character"),
gettext_noop ("Invalid character class name"),
gettext_noop ("Trailing backslash"),
gettext_noop ("Invalid back reference"),
gettext_noop ("Unmatched [ or [^"),
gettext_noop ("Unmatched ( or \\("),
gettext_noop ("Unmatched \\{"),
gettext_noop ("Invalid content of \\{\\}"),
gettext_noop ("Invalid range end"),
gettext_noop ("Memory exhausted"),
gettext_noop ("Invalid preceding regular expression"),
gettext_noop ("Premature end of regular expression"),
gettext_noop ("Regular expression too big"),
gettext_noop ("Unmatched ) or \\)"),
}
Definition at line 949 of file gnu-regex.c.
| int re_max_failures = 20000 |
Definition at line 1055 of file gnu-regex.c.
Definition at line 915 of file gnu-regex.c.
char re_syntax_table[CHAR_SET_SIZE] [static] |
Definition at line 154 of file gnu-regex.c.
char reg_unset_dummy [static] |
Definition at line 1425 of file gnu-regex.c.
1.5.6