summaryrefslogtreecommitdiff
path: root/src/lj_lex.h
diff options
context:
space:
mode:
authorMike Pall <mike>2010-03-15 23:29:10 +0100
committerMike Pall <mike>2010-03-15 23:29:10 +0100
commit37a3ca330fca12a9f939f923c5d590410e5d9f11 (patch)
tree0fac600c9cc04c6c50ce10224e29a15b358a82fc /src/lj_lex.h
parent1fea5cb822a4da746005e0cec35fc2fe2ed5880f (diff)
downloadluajit-37a3ca330fca12a9f939f923c5d590410e5d9f11.tar.gz
luajit-37a3ca330fca12a9f939f923c5d590410e5d9f11.tar.bz2
luajit-37a3ca330fca12a9f939f923c5d590410e5d9f11.zip
Reorder various structs to reduce padding (thanks to /usr/bin/pahole).
Diffstat (limited to 'src/lj_lex.h')
-rw-r--r--src/lj_lex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_lex.h b/src/lj_lex.h
index 9bcd3cdb..0718f5a6 100644
--- a/src/lj_lex.h
+++ b/src/lj_lex.h
@@ -47,9 +47,9 @@ typedef struct LexState {
47 int current; /* Current character (charint). */ 47 int current; /* Current character (charint). */
48 LexToken token; /* Current token. */ 48 LexToken token; /* Current token. */
49 LexToken lookahead; /* Lookahead token. */ 49 LexToken lookahead; /* Lookahead token. */
50 SBuf sb; /* String buffer for tokens. */
51 const char *p; /* Current position in input buffer. */
52 MSize n; /* Bytes left in input buffer. */ 50 MSize n; /* Bytes left in input buffer. */
51 const char *p; /* Current position in input buffer. */
52 SBuf sb; /* String buffer for tokens. */
53 lua_Reader rfunc; /* Reader callback. */ 53 lua_Reader rfunc; /* Reader callback. */
54 void *rdata; /* Reader callback data. */ 54 void *rdata; /* Reader callback data. */
55 BCLine linenumber; /* Input line counter. */ 55 BCLine linenumber; /* Input line counter. */