From 55bc3db67c6a691bf40036394cd8ed4ab0a31c08 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Fri, 15 Jun 2018 23:48:26 -0700 Subject: [PATCH] Tweak field ordering in re_pattern_buffer * src/regex.h (struct re_pattern_buffer): Reorder charset_unibyte field to keep bitfields together. --- src/regex.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/regex.h b/src/regex.h index 6974951f575..082f7e010d8 100644 --- a/src/regex.h +++ b/src/regex.h @@ -367,7 +367,10 @@ struct re_pattern_buffer /* Number of bytes actually used in `buffer'. */ size_t used; -#ifndef emacs +#ifdef emacs + /* Charset of unibyte characters at compiling time. */ + int charset_unibyte; +#else /* Syntax setting with which the pattern was compiled. */ reg_syntax_t syntax; #endif @@ -427,9 +430,6 @@ struct re_pattern_buffer /* If true, multi-byte form in the target of match should be recognized as a multibyte character. */ unsigned target_multibyte : 1; - - /* Charset of unibyte characters at compiling time. */ - int charset_unibyte; #endif /* [[[end pattern_buffer]]] */ -- 2.39.2