]> git.wincent.com - wikitext.git/commitdiff
Reorder parser struct members for better word alignment
authorWincent Colaiuta <win@wincent.com>
Fri, 8 May 2009 13:42:19 +0000 (15:42 +0200)
committerWincent Colaiuta <win@wincent.com>
Fri, 8 May 2009 13:42:19 +0000 (15:42 +0200)
Keep long and pointer members together to guarantee alignment
on word boundaries.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c

index 0915a0716a5fff757e27fb460905046b61b76f99..93f03ff7895fbc537ca10093028b640e2de66bc2 100644 (file)
@@ -44,17 +44,17 @@ typedef struct
     VALUE   external_link_class;    // CSS class applied to external links
     VALUE   mailto_class;           // CSS class applied to email (mailto) links
     VALUE   img_prefix;             // path prepended when emitting img tags
+    str_t   *line_ending;
+    str_t   *tabulation;            // caching buffer for emitting indentation
     ary_t   *scope;                 // stack for tracking scope
     ary_t   *line;                  // stack for tracking scope as implied by current line
     ary_t   *line_buffer;           // stack for tracking raw tokens (not scope) on current line
-    bool    pending_crlf;
-    bool    autolink;
-    bool    space_to_underscore;
-    str_t   *line_ending;
     int     base_indent;            // controlled by the :indent option to Wikitext::Parser#parse
     int     current_indent;         // fluctuates according to currently nested structures
-    str_t   *tabulation;            // caching buffer for emitting indentation
     int     base_heading_level;
+    bool    pending_crlf;
+    bool    autolink;
+    bool    space_to_underscore;
 } parser_t;
 
 const char escaped_no_wiki_start[]      = "&lt;nowiki&gt;";