mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
re_dfa_t to avoid breaking alignment invariants. * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ... * grub-core/gnulib/regex.h (re_dfa_t): ... here.
This commit is contained in:
1 parent
44c6828db4
commit
a67b2a046c
4 files changed
+12
-6
No files matched your search
@@ -776,7 +776,7 @@ re_compile_internal (regex_t *preg, const char * pattern, size_t length,
|
||||
if (dfa == NULL)
|
||||
return REG_ESPACE;
|
||||
preg->allocated = sizeof (re_dfa_t);
|
||||
preg->buffer = (unsigned char *) dfa;
|
||||
preg->buffer = dfa;
|
||||
}
|
||||
preg->used = sizeof (re_dfa_t);
|
||||
|
||||
|
||||
@@ -448,12 +448,15 @@ typedef enum
|
||||
compiled, the `re_nsub' field is available. All other fields are
|
||||
private to the regex routines. */
|
||||
|
||||
struct re_dfa_t;
|
||||
typedef struct re_dfa_t re_dfa_t;
|
||||
|
||||
struct re_pattern_buffer
|
||||
{
|
||||
/* Space that holds the compiled pattern. It is declared as
|
||||
`unsigned char *' because its elements are sometimes used as
|
||||
array indexes. */
|
||||
unsigned char *_REG_RE_NAME (buffer);
|
||||
re_dfa_t *_REG_RE_NAME (buffer);
|
||||
|
||||
/* Number of bytes to which `buffer' points. */
|
||||
__re_long_size_t _REG_RE_NAME (allocated);
|
||||
|
||||
@@ -413,10 +413,6 @@ struct re_string_t
|
||||
};
|
||||
typedef struct re_string_t re_string_t;
|
||||
|
||||
|
||||
struct re_dfa_t;
|
||||
typedef struct re_dfa_t re_dfa_t;
|
||||
|
||||
#ifndef _LIBC
|
||||
# if defined __i386__ && !defined __EMX__
|
||||
# define internal_function __attribute ((regparm (3), stdcall))
|
||||
|
||||
Reference in new issue
Block a user