diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-21 15:29:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-21 15:29:53 -0300 |
commit | 9f7183c280f310c0d0b49b7b9c3b8eac297fafa7 (patch) | |
tree | 503392ee1a94f6446151a0b90babe8235efdb573 /lptypes.h | |
parent | 7b42a7b13f9c6655dfa7c5951de46dcf0642b0a6 (diff) | |
download | lpeg-9f7183c280f310c0d0b49b7b9c3b8eac297fafa7.tar.gz lpeg-9f7183c280f310c0d0b49b7b9c3b8eac297fafa7.tar.bz2 lpeg-9f7183c280f310c0d0b49b7b9c3b8eac297fafa7.zip |
Field Instruction.key put inside a union
So that we can get its space for other uses, if needed.
Diffstat (limited to 'lptypes.h')
-rw-r--r-- | lptypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -111,8 +111,8 @@ typedef struct Charset { | |||
111 | ** in capture instructions, 'kind' of capture and its offset are | 111 | ** in capture instructions, 'kind' of capture and its offset are |
112 | ** packed in field 'aux', 4 bits for each | 112 | ** packed in field 'aux', 4 bits for each |
113 | */ | 113 | */ |
114 | #define getkind(op) ((op)->i.aux & 0xF) | 114 | #define getkind(op) ((op)->i.aux1 & 0xF) |
115 | #define getoff(op) (((op)->i.aux >> 4) & 0xF) | 115 | #define getoff(op) (((op)->i.aux1 >> 4) & 0xF) |
116 | #define joinkindoff(k,o) ((k) | ((o) << 4)) | 116 | #define joinkindoff(k,o) ((k) | ((o) << 4)) |
117 | 117 | ||
118 | #define MAXOFF 0xF | 118 | #define MAXOFF 0xF |