Imported Upstream version 1.4.12
This commit is contained in:
parent
1d1585cd09
commit
4ab9f0d24c
291 changed files with 27277 additions and 11364 deletions
17
gl/regexec.c
17
gl/regexec.c
|
@ -1,11 +1,12 @@
|
|||
/* Extended regular expression matching and search library.
|
||||
Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation,
|
||||
Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
the Free Software Foundation; either version 3, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
|
@ -221,10 +222,10 @@ static reg_errcode_t extend_buffers (re_match_context_t *mctx)
|
|||
|
||||
int
|
||||
regexec (preg, string, nmatch, pmatch, eflags)
|
||||
const regex_t *__restrict preg;
|
||||
const char *__restrict string;
|
||||
const regex_t *_Restrict_ preg;
|
||||
const char *_Restrict_ string;
|
||||
size_t nmatch;
|
||||
regmatch_t pmatch[];
|
||||
regmatch_t pmatch[_Restrict_arr_];
|
||||
int eflags;
|
||||
{
|
||||
reg_errcode_t err;
|
||||
|
@ -267,8 +268,8 @@ __typeof__ (__regexec) __compat_regexec;
|
|||
|
||||
int
|
||||
attribute_compat_text_section
|
||||
__compat_regexec (const regex_t *__restrict preg,
|
||||
const char *__restrict string, size_t nmatch,
|
||||
__compat_regexec (const regex_t *_Restrict_ preg,
|
||||
const char *_Restrict_ string, size_t nmatch,
|
||||
regmatch_t pmatch[], int eflags)
|
||||
{
|
||||
return regexec (preg, string, nmatch, pmatch,
|
||||
|
@ -2338,7 +2339,7 @@ transit_state (reg_errcode_t *err, re_match_context_t *mctx,
|
|||
}
|
||||
|
||||
/* Update the state_log if we need */
|
||||
re_dfastate_t *
|
||||
static re_dfastate_t *
|
||||
internal_function
|
||||
merge_state_with_log (reg_errcode_t *err, re_match_context_t *mctx,
|
||||
re_dfastate_t *next_state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue