* 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:
Vladimir 'phcoder' Serbinenko 2012-02-09 23:40:17 +01:00
parent 44c6828db4
commit a67b2a046c
4 changed files with 12 additions and 6 deletions

View file

@ -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);