emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 55bc3db 1/4: Tweak field ordering in re_pattern_buf


From: Daniel Colascione
Subject: [Emacs-diffs] master 55bc3db 1/4: Tweak field ordering in re_pattern_buffer
Date: Sat, 16 Jun 2018 16:46:52 -0400 (EDT)

branch: master
commit 55bc3db67c6a691bf40036394cd8ed4ab0a31c08
Author: Daniel Colascione <address@hidden>
Commit: Daniel Colascione <address@hidden>

    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 6974951..082f7e0 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]]] */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]