1
1
mirror of https://github.com/wader/fq.git synced 2024-09-11 20:07:11 +03:00

luajit: lowercase flags

This commit is contained in:
Babz 2023-06-20 23:11:17 +02:00
parent db2e621468
commit 29ab66b3eb
3 changed files with 12 additions and 12 deletions

View File

@ -72,10 +72,10 @@ func LuaJITDecodeHeader(di *DumpInfo, d *decode.D) {
d.FieldStruct("flags", func(d *decode.D) {
flags = d.FieldULEB128("raw")
d.FieldValueBool("BE", flags&0x01 > 0)
d.FieldValueBool("STRIP", flags&0x02 > 0)
d.FieldValueBool("FFI", flags&0x04 > 0)
d.FieldValueBool("FR2", flags&0x08 > 0)
d.FieldValueBool("be", flags&0x01 > 0)
d.FieldValueBool("strip", flags&0x02 > 0)
d.FieldValueBool("ffi", flags&0x04 > 0)
d.FieldValueBool("fr2", flags&0x08 > 0)
})
di.Strip = flags&0x2 > 0

View File

@ -5,10 +5,10 @@ $ fq dv -d luajit simple.luac
0x000| 02 | . | version: 2 0x3-0x3.7 (1)
| | | flags{}: 0x4-0x4.7 (1)
0x000| 0c | . | raw: 12 0x4-0x4.7 (1)
| | | BE: false 0x5-NA (0)
| | | STRIP: false 0x5-NA (0)
| | | FFI: true 0x5-NA (0)
| | | FR2: true 0x5-NA (0)
| | | be: false 0x5-NA (0)
| | | strip: false 0x5-NA (0)
| | | ffi: true 0x5-NA (0)
| | | fr2: true 0x5-NA (0)
0x000| 12 | . | namelen: 18 0x5-0x5.7 (1)
0x000| 40 2e 2e 2f 2e 2e 2f 65 78 61| @../../exa| name: "@../../example.lua" 0x6-0x17.7 (18)
0x010|6d 70 6c 65 2e 6c 75 61 |mple.lua |

View File

@ -5,10 +5,10 @@ $ fq dv -d luajit simple_stripped.luac
0x00| 02 | . | version: 2 0x3-0x3.7 (1)
| | | flags{}: 0x4-0x4.7 (1)
0x00| 0e | . | raw: 14 0x4-0x4.7 (1)
| | | BE: false 0x5-NA (0)
| | | STRIP: true 0x5-NA (0)
| | | FFI: true 0x5-NA (0)
| | | FR2: true 0x5-NA (0)
| | | be: false 0x5-NA (0)
| | | strip: true 0x5-NA (0)
| | | ffi: true 0x5-NA (0)
| | | fr2: true 0x5-NA (0)
| | | proto[0:2]: 0x5-0xf8.7 (244)
| | | [0]{}: proto 0x5-0x3a.7 (54)
0x00| 35 | 5 | length: 53 0x5-0x5.7 (1)