gcc -O2 -Wall -DSRCVERSION=\"895d923\" -I../lua-5.3/src -c -o luaopswap.o luaopswap.c
luaopswap.c: In function ‘doargs’:
luaopswap.c:117:50: error: ‘allopcodes_lua_len’ undeclared (first use in this function); did you mean ‘allopcodes_luac_len’?
fwrite(allopcodes_lua, sizeof(unsigned char), allopcodes_lua_len, stdout);
^~~~~~
allopcodes_luac_len
luaopswap.c:117:50: note: each undeclared identifier is reported only once for each function it appears in
luaopswap.c: In function ‘main’:
luaopswap.c:323:22: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
const char* buff = cmp_gen_lua ? allopcodes_lua : allopcodes_luac;
^~~
luaopswap.c:324:31: error: ‘allopcodes_lua_len’ undeclared (first use in this function); did you mean ‘allopcodes_luac_len’?
int bufflen = cmp_gen_lua ? allopcodes_lua_len : allopcodes_luac_len;
^~~~~~
allopcodes_luac_len
luaopswap.c: At top level:
luaopswap.c:47:15: warning: array ‘allopcodes_lua’ assumed to have one element
unsigned char allopcodes_lua[];
^~~~~~
make LUAVER=5.3
gcc -O2 -Wall -DSRCVERSION=\"895d923\" -I../lua-5.3/src -c -o luaopswap.o luaopswap.c luaopswap.c: In function ‘doargs’: luaopswap.c:117:50: error: ‘allopcodes_lua_len’ undeclared (first use in this function); did you mean ‘allopcodes_luac_len’? fwrite(allopcodes_lua, sizeof(unsigned char), allopcodes_lua_len, stdout); ^
~~~~~ allopcodes_luac_len luaopswap.c:117:50: note: each undeclared identifier is reported only once for each function it appears in luaopswap.c: In function ‘main’: luaopswap.c:323:22: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] const char* buff = cmp_gen_lua ? allopcodes_lua : allopcodes_luac; ^~~luaopswap.c:324:31: error: ‘allopcodes_lua_len’ undeclared (first use in this function); did you mean ‘allopcodes_luac_len’? int bufflen = cmp_gen_lua ? allopcodes_lua_len : allopcodes_luac_len; ^~~~~~ allopcodes_luac_len luaopswap.c: At top level: luaopswap.c:47:15: warning: array ‘allopcodes_lua’ assumed to have one element unsigned char allopcodes_lua[]; ^~~~~~