cc -O2 -Wall -Wextra -Wpedantic -DCOMPAT53_PREFIX=moonglmath_compat_ -std=gnu99 -DLUAVER=5.4 -fpic -DLINUX -I/usr/include -I/usr/include/lua5.4 -c -o box.o box.c In file included from moonglmath.h:34, from moonglmath_local.h:36, from internal.h:41, from box.c:26: /usr/local/include/lua.h: In function ‘lua_istrue’: /usr/local/include/lua.h:184:62: error: expected declaration specifiers before ‘noexcept’ 184 | LUA_API int (lua_istrue) (lua_State *L, int idx) noexcept; | ^~~~~~~~ /usr/local/include/lua.h:185:26: error: storage class specified for parameter ‘lua_isuserdata’ 185 | LUA_API int (lua_isuserdata) (lua_State *L, int idx); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:186:26: error: storage class specified for parameter ‘lua_type’ 186 | LUA_API int (lua_type) (lua_State *L, int idx); | ^~~~~~~~ /usr/local/include/lua.h:187:26: error: storage class specified for parameter ‘lua_typename’ 187 | LUA_API const char *(lua_typename) (lua_State *L, int tp); | ^~~~~~~~~~~~ /usr/local/include/lua.h:189:26: error: storage class specified for parameter ‘lua_tonumberx’ 189 | LUA_API lua_Number (lua_tonumberx) (lua_State *L, int idx, int *isnum); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:190:26: error: storage class specified for parameter ‘lua_tointegerx’ 190 | LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:191:26: error: storage class specified for parameter ‘lua_toboolean’ 191 | LUA_API int (lua_toboolean) (lua_State *L, int idx); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:192:26: error: storage class specified for parameter ‘lua_tolstring’ 192 | LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:193:26: error: storage class specified for parameter ‘lua_rawlen’ 193 | LUA_API lua_Unsigned (lua_rawlen) (lua_State *L, int idx); | ^~~~~~~~~~ /usr/local/include/lua.h:194:26: error: storage class specified for parameter ‘lua_tocfunction’ 194 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:195:26: error: storage class specified for parameter ‘lua_touserdata’ 195 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:196:26: error: storage class specified for parameter ‘lua_tothread’ 196 | LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); | ^~~~~~~~~~~~ /usr/local/include/lua.h:197:26: error: storage class specified for parameter ‘lua_topointer’ 197 | LUA_API const void *(lua_topointer) (lua_State *L, int idx); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:219:16: error: storage class specified for parameter ‘lua_arith’ 219 | LUA_API void (lua_arith) (lua_State *L, int op); | ^~~~~~~~~ /usr/local/include/lua.h:225:16: error: storage class specified for parameter ‘lua_rawequal’ 225 | LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); | ^~~~~~~~~~~~ /usr/local/include/lua.h:226:16: error: storage class specified for parameter ‘lua_compare’ 226 | LUA_API int (lua_compare) (lua_State *L, int idx1, int idx2, int op); | ^~~~~~~~~~~ /usr/local/include/lua.h:232:22: error: storage class specified for parameter ‘lua_pushnil’ 232 | LUA_API void (lua_pushnil) (lua_State *L); | ^~~~~~~~~~~ /usr/local/include/lua.h:233:22: error: storage class specified for parameter ‘lua_pushnumber’ 233 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:234:22: error: storage class specified for parameter ‘lua_pushinteger’ 234 | LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:235:22: error: storage class specified for parameter ‘lua_pushlstring’ 235 | LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:236:22: error: storage class specified for parameter ‘lua_pushstring’ 236 | LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:237:22: error: storage class specified for parameter ‘lua_pushvfstring’ 237 | LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, | ^~~~~~~~~~~~~~~~ /usr/local/include/lua.h:239:22: error: storage class specified for parameter ‘lua_pushfstring’ 239 | LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:240:16: error: storage class specified for parameter ‘lua_pushcclosure’ 240 | LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n); | ^~~~~~~~~~~~~~~~ /usr/local/include/lua.h:241:16: error: storage class specified for parameter ‘lua_pushboolean’ 241 | LUA_API void (lua_pushboolean) (lua_State *L, int b); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:242:16: error: storage class specified for parameter ‘lua_pushlightuserdata’ 242 | LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p); | ^~~~~~~~~~~~~~~~~~~~~ /usr/local/include/lua.h:243:16: error: storage class specified for parameter ‘lua_pushthread’ 243 | LUA_API int (lua_pushthread) (lua_State *L); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:249:14: error: storage class specified for parameter ‘lua_getglobal’ 249 | LUA_API int (lua_getglobal) (lua_State *L, const char *name); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:250:14: error: storage class specified for parameter ‘lua_gettable’ 250 | LUA_API int (lua_gettable) (lua_State *L, int idx); | ^~~~~~~~~~~~ /usr/local/include/lua.h:251:14: error: storage class specified for parameter ‘lua_getfield’ 251 | LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k); | ^~~~~~~~~~~~ /usr/local/include/lua.h:252:14: error: storage class specified for parameter ‘lua_geti’ 252 | LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); | ^~~~~~~~ /usr/local/include/lua.h:253:14: error: storage class specified for parameter ‘lua_rawget’ 253 | LUA_API int (lua_rawget) (lua_State *L, int idx); | ^~~~~~~~~~ /usr/local/include/lua.h:254:14: error: storage class specified for parameter ‘lua_rawgeti’ 254 | LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); | ^~~~~~~~~~~ /usr/local/include/lua.h:255:14: error: storage class specified for parameter ‘lua_rawgetp’ 255 | LUA_API int (lua_rawgetp) (lua_State *L, int idx, const void *p); | ^~~~~~~~~~~ /usr/local/include/lua.h:257:16: error: storage class specified for parameter ‘lua_createtable’ 257 | LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:258:16: error: storage class specified for parameter ‘lua_newuserdatauv’ 258 | LUA_API void *(lua_newuserdatauv) (lua_State *L, size_t sz, int nuvalue); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lua.h:259:16: error: storage class specified for parameter ‘lua_getmetatable’ 259 | LUA_API int (lua_getmetatable) (lua_State *L, int objindex); | ^~~~~~~~~~~~~~~~ /usr/local/include/lua.h:260:15: error: storage class specified for parameter ‘lua_getiuservalue’ 260 | LUA_API int (lua_getiuservalue) (lua_State *L, int idx, int n); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lua.h:266:16: error: storage class specified for parameter ‘lua_setglobal’ 266 | LUA_API void (lua_setglobal) (lua_State *L, const char *name); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:267:16: error: storage class specified for parameter ‘lua_settable’ 267 | LUA_API void (lua_settable) (lua_State *L, int idx); | ^~~~~~~~~~~~ /usr/local/include/lua.h:268:16: error: storage class specified for parameter ‘lua_setfield’ 268 | LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); | ^~~~~~~~~~~~ /usr/local/include/lua.h:269:16: error: storage class specified for parameter ‘lua_seti’ 269 | LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); | ^~~~~~~~ /usr/local/include/lua.h:270:16: error: storage class specified for parameter ‘lua_rawset’ 270 | LUA_API void (lua_rawset) (lua_State *L, int idx); | ^~~~~~~~~~ /usr/local/include/lua.h:271:16: error: storage class specified for parameter ‘lua_rawseti’ 271 | LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n); | ^~~~~~~~~~~ /usr/local/include/lua.h:272:16: error: storage class specified for parameter ‘lua_rawsetp’ 272 | LUA_API void (lua_rawsetp) (lua_State *L, int idx, const void *p); | ^~~~~~~~~~~ /usr/local/include/lua.h:273:16: error: storage class specified for parameter ‘lua_setmetatable’ 273 | LUA_API int (lua_setmetatable) (lua_State *L, int objindex); | ^~~~~~~~~~~~~~~~ /usr/local/include/lua.h:274:16: error: storage class specified for parameter ‘lua_setiuservalue’ 274 | LUA_API int (lua_setiuservalue) (lua_State *L, int idx, int n); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lua.h:275:16: error: storage class specified for parameter ‘lua_setcachelen’ 275 | LUA_API void (lua_setcachelen) (lua_State *L, lua_Unsigned len, int idx); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:276:16: error: storage class specified for parameter ‘lua_freezetable’ 276 | LUA_API void (lua_freezetable) (lua_State *L, int idx); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:277:16: error: storage class specified for parameter ‘lua_istablefrozen’ 277 | LUA_API int (lua_istablefrozen) (lua_State *L, int idx); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lua.h:278:16: error: storage class specified for parameter ‘lua_erriffrozen’ 278 | LUA_API void (lua_erriffrozen) (lua_State *L, int idx); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:284:16: error: storage class specified for parameter ‘lua_callk’ 284 | LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, | ^~~~~~~~~ /usr/local/include/lua.h:288:16: error: storage class specified for parameter ‘lua_pcallk’ 288 | LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc, | ^~~~~~~~~~ /usr/local/include/lua.h:292:16: error: storage class specified for parameter ‘lua_load’ 292 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, | ^~~~~~~~ /usr/local/include/lua.h:295:14: error: storage class specified for parameter ‘lua_dump’ 295 | LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip); | ^~~~~~~~ /usr/local/include/lua.h:301:15: error: storage class specified for parameter ‘lua_yieldk’ 301 | LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx, | ^~~~~~~~~~ /usr/local/include/lua.h:303:15: error: storage class specified for parameter ‘lua_resume’ 303 | LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg, | ^~~~~~~~~~ /usr/local/include/lua.h:305:15: error: storage class specified for parameter ‘lua_status’ 305 | LUA_API int (lua_status) (lua_State *L); | ^~~~~~~~~~ /usr/local/include/lua.h:306:14: error: storage class specified for parameter ‘lua_isyieldable’ 306 | LUA_API int (lua_isyieldable) (lua_State *L); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:314:15: error: storage class specified for parameter ‘lua_setwarnf’ 314 | LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud); | ^~~~~~~~~~~~ /usr/local/include/lua.h:315:15: error: storage class specified for parameter ‘lua_warning’ 315 | LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont); | ^~~~~~~~~~~ /usr/local/include/lua.h:334:14: error: storage class specified for parameter ‘lua_gc’ 334 | LUA_API int (lua_gc) (lua_State *L, int what, ...); | ^~~~~~ In file included from /usr/local/include/lua.h:13: /usr/local/include/lua.h:341:14: error: expected declaration specifiers before ‘extern’ 341 | [[noreturn]] LUA_API void (lua_error) (lua_State *L); | ^~~~~~~ /usr/local/include/lua.h:343:16: error: storage class specified for parameter ‘lua_next’ 343 | LUA_API int (lua_next) (lua_State *L, int idx); | ^~~~~~~~ /usr/local/include/lua.h:345:16: error: storage class specified for parameter ‘lua_concat’ 345 | LUA_API void (lua_concat) (lua_State *L, int n); | ^~~~~~~~~~ /usr/local/include/lua.h:346:16: error: storage class specified for parameter ‘lua_len’ 346 | LUA_API void (lua_len) (lua_State *L, int idx); | ^~~~~~~ /usr/local/include/lua.h:348:19: error: storage class specified for parameter ‘lua_stringtonumbe ’ 348 | LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s); | ^~~~~~~~~~~~~~~~~~ /usr/local/include/lua.h:350:20: error: storage class specified for parameter ‘lua_getallocf’ 350 | LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:351:20: error: storage class specified for parameter ‘lua_setallocf’ 351 | LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:353:15: error: storage class specified for parameter ‘lua_toclose’ 353 | LUA_API void (lua_toclose) (lua_State *L, int idx); | ^~~~~~~~~~~ /usr/local/include/lua.h:354:15: error: storage class specified for parameter ‘lua_closeslot’ 354 | LUA_API void (lua_closeslot) (lua_State *L, int idx); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:448:26: error: storage class specified for parameter ‘lua_Debug’ 448 | typedef struct lua_Debug lua_Debug; /* activation record */ | ^~~~~~~~~ /usr/local/include/lua.h:452:41: error: expected declaration specifiers or ‘...’ before ‘lua_Debug’ 452 | typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); | ^~~~~~~~~ /usr/local/include/lua.h:455:54: error: expected declaration specifiers or ‘...’ before ‘lua_Debug’ 455 | LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); | ^~~~~~~~~ /usr/local/include/lua.h:456:60: error: expected declaration specifiers or ‘...’ before ‘lua_Debug’ 456 | LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); | ^~~~~~~~~ /usr/local/include/lua.h:457:67: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token 457 | LUA_API const char *(lua_getlocal) (lua_State *L, const lua_Debug *ar, int n); | ^ /usr/local/include/lua.h:458:67: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token 458 | LUA_API const char *(lua_setlocal) (lua_State *L, const lua_Debug *ar, int n); | ^ /usr/local/include/lua.h:459:22: error: storage class specified for parameter ‘lua_getupvalue’ 459 | LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:460:22: error: storage class specified for parameter ‘lua_setupvalue’ 460 | LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n); | ^~~~~~~~~~~~~~ /usr/local/include/lua.h:462:16: error: storage class specified for parameter ‘lua_upvalueid’ 462 | LUA_API void *(lua_upvalueid) (lua_State *L, int fidx, int n); | ^~~~~~~~~~~~~ /usr/local/include/lua.h:463:16: error: storage class specified for parameter ‘lua_upvaluejoin’ 463 | LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1, | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:466:43: error: unknown type name ‘lua_Hook’ 466 | LUA_API void (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); | ^~~~~~~~ /usr/local/include/lua.h:467:9: error: storage class specified for parameter ‘lua_Hook’ 467 | LUA_API lua_Hook (lua_gethook) (lua_State *L); | ^~~~~~~~ /usr/local/include/lua.h:467:9: error: ‘lua_Hook’ declared as function returning a function /usr/local/include/lua.h:468:14: error: storage class specified for parameter ‘lua_gethookmask’ 468 | LUA_API int (lua_gethookmask) (lua_State *L); | ^~~~~~~~~~~~~~~ /usr/local/include/lua.h:469:14: error: storage class specified for parameter ‘lua_gethookcount’ 469 | LUA_API int (lua_gethookcount) (lua_State *L); | ^~~~~~~~~~~~~~~~ /usr/local/include/lua.h:471:14: error: storage class specified for parameter ‘lua_setcstacklimi ’ 471 | LUA_API int (lua_setcstacklimit) (lua_State *L, unsigned int limit); | ^~~~~~~~~~~~~~~~~~ In file included from moonglmath.h:35: /usr/local/include/lualib.h:15:17: error: storage class specified for parameter ‘luaopen_base’ 15 | LUAMOD_API int (luaopen_base) (lua_State *L); | ^~~~~~~~~~~~ /usr/local/include/lualib.h:18:17: error: storage class specified for parameter ‘luaopen_coroutine’ 18 | LUAMOD_API int (luaopen_coroutine) (lua_State *L); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lualib.h:21:17: error: storage class specified for parameter ‘luaopen_table’ 21 | LUAMOD_API int (luaopen_table) (lua_State *L); | ^~~~~~~~~~~~~ /usr/local/include/lualib.h:24:17: error: storage class specified for parameter ‘luaopen_io’ 24 | LUAMOD_API int (luaopen_io) (lua_State *L); | ^~~~~~~~~~ /usr/local/include/lualib.h:27:17: error: storage class specified for parameter ‘luaopen_os’ 27 | LUAMOD_API int (luaopen_os) (lua_State *L); | ^~~~~~~~~~ /usr/local/include/lualib.h:30:17: error: storage class specified for parameter ‘luaopen_string’ 30 | LUAMOD_API int (luaopen_string) (lua_State *L); | ^~~~~~~~~~~~~~ /usr/local/include/lualib.h:33:17: error: storage class specified for parameter ‘luaopen_utf8’ 33 | LUAMOD_API int (luaopen_utf8) (lua_State *L); | ^~~~~~~~~~~~ /usr/local/include/lualib.h:36:17: error: storage class specified for parameter ‘luaopen_math’ 36 | LUAMOD_API int (luaopen_math) (lua_State *L); | ^~~~~~~~~~~~ /usr/local/include/lualib.h:39:17: error: storage class specified for parameter ‘luaopen_debug’ 39 | LUAMOD_API int (luaopen_debug) (lua_State *L); | ^~~~~~~~~~~~~ /usr/local/include/lualib.h:42:17: error: storage class specified for parameter ‘luaopen_package’ 42 | LUAMOD_API int (luaopen_package) (lua_State *L); | ^~~~~~~~~~~~~~~ /usr/local/include/lualib.h:45:17: error: storage class specified for parameter ‘luaopen_crypto’ 45 | LUAMOD_API int (luaopen_crypto) (lua_State *L); | ^~~~~~~~~~~~~~ /usr/local/include/lualib.h:49:18: error: storage class specified for parameter ‘luaL_openlibs’ 49 | LUALIB_API void (luaL_openlibs) (lua_State *L); | ^~~~~~~~~~~~~ In file included from /usr/include/bits/types/__fpos_t.h:5, from /usr/include/stdio.h:39, from /usr/local/include/lauxlib.h:9, from moonglmath.h:36: /usr/include/bits/types/__mbstate_t.h:21:3: error: storage class specified for parameter ‘__mbstate_t’ 21 | } __mbstate_t; | ^~~~~~~~~~~ /usr/include/bits/types/__fpos_t.h:13:3: error: expected specifier-qualifier-list before ‘__mbstate_t’ 13 | __mbstate_t __state; | ^~~~~~~~~~~ /usr/include/bits/types/__fpos_t.h:14:3: error: storage class specified for parameter ‘__fpos_t’ 14 | } __fpos_t; | ^~~~~~~~ In file included from /usr/include/stdio.h:40: /usr/include/bits/types/__fpos64_t.h:13:3: error: expected specifier-qualifier-list before ‘__mbstate_t’ 13 | __mbstate_t __state; | ^~~~~~~~~~~ /usr/include/bits/types/__fpos64_t.h:14:3: error: storage class specified for parameter ‘__fpos64_t’ 14 | } __fpos64_t; | ^~~~~~~~~~ In file included from /usr/include/stdio.h:41: /usr/include/bits/types/__FILE.h:5:25: error: storage class specified for parameter ‘__FILE’ 5 | typedef struct _IO_FILE __FILE; | ^~~~~~ In file included from /usr/include/stdio.h:42: /usr/include/bits/types/FILE.h:7:25: error: storage class specified for parameter ‘FILE’ 7 | typedef struct _IO_FILE FILE; | ^~~~ In file included from /usr/include/stdio.h:43: /usr/include/bits/types/struct_FILE.h:43:14: error: storage class specified for parameter ‘_IO_lock_t’ 43 | typedef void _IO_lock_t; | ^~~~~~~~~~ /usr/include/bits/types/struct_FILE.h:81:3: error: expected specifier-qualifier-list before ‘_IO_lock_t’ 81 | _IO_lock_t *_lock; | ^~~~~~~~~~ /usr/include/stdio.h:63:17: error: storage class specified for parameter ‘off_t’ 63 | typedef __off_t off_t; | ^~~~~ /usr/include/stdio.h:77:19: error: storage class specified for parameter ‘ssize_t’ 77 | typedef __ssize_t ssize_t; | ^~~~~~~ /usr/include/stdio.h:84:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fpos_t’ 84 | typedef __fpos_t fpos_t; | ^~~~~~ /usr/include/stdio.h:143:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 143 | extern FILE *stdin; /* Standard input stream. */ | ^ /usr/include/stdio.h:144:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 144 | extern FILE *stdout; /* Standard output stream. */ | ^ /usr/include/stdio.h:145:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 145 | extern FILE *stderr; /* Standard error output stream. */ | ^ /usr/include/stdio.h:152:12: error: storage class specified for parameter ‘remove’ 152 | extern int remove (const char *__filename) __THROW; | ^~~~~~ /usr/include/stdio.h:154:12: error: storage class specified for parameter ‘rename’ 154 | extern int rename (const char *__old, const char *__new) __THROW; | ^~~~~~ /usr/include/stdio.h:158:12: error: storage class specified for parameter ‘renameat’ 158 | extern int renameat (int __oldfd, const char *__old, int __newfd, | ^~~~~~~~ /usr/include/stdio.h:178:20: error: expected declaration specifiers or ‘...’ before ‘FILE’ 178 | extern int fclose (FILE *__stream); | ^~~~ /usr/include/stdio.h:188:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 188 | extern FILE *tmpfile (void) | ^ /usr/include/stdio.h:205:14: error: storage class specified for parameter ‘tmpnam’ 205 | extern char *tmpnam (char[L_tmpnam]) __THROW __wur; | ^~~~~~ /usr/include/stdio.h:230:20: error: expected declaration specifiers or ‘...’ before ‘FILE’ 230 | extern int fflush (FILE *__stream); | ^~~~ /usr/include/stdio.h:258:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 258 | extern FILE *fopen (const char *__restrict __filename, | ^ /usr/include/stdio.h:265:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 265 | extern FILE *freopen (const char *__restrict __filename, | ^ /usr/include/stdio.h:293:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 293 | extern FILE *fdopen (int __fd, const char *__modes) __THROW | ^ /usr/include/stdio.h:308:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 308 | extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) | ^ /usr/include/stdio.h:314:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 314 | extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW | ^ /usr/include/stdio.h:328:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 328 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW; | ^~~~ /usr/include/stdio.h:332:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 332 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, | ^~~~ /usr/include/stdio.h:350:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 350 | extern int fprintf (FILE *__restrict __stream, | ^~~~ /usr/include/stdio.h:356:12: error: storage class specified for parameter ‘printf’ 356 | extern int printf (const char *__restrict __format, ...); | ^~~~~~ /usr/include/stdio.h:358:12: error: storage class specified for parameter ‘sprintf’ 358 | extern int sprintf (char *__restrict __s, | ^~~~~~~ /usr/include/stdio.h:365:22: error: expected declaration specifiers or ‘...’ before ‘FILE’ 365 | extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, | ^~~~ /usr/include/stdio.h:371:12: error: storage class specified for parameter ‘vprintf’ 371 | extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); | ^~~~~~~ /usr/include/stdio.h:373:12: error: storage class specified for parameter ‘vsprintf’ 373 | extern int vsprintf (char *__restrict __s, const char *__restrict __format, | ^~~~~~~~ /usr/include/stdio.h:378:12: error: storage class specified for parameter ‘snprintf’ 378 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~~~ /usr/include/stdio.h:382:12: error: storage class specified for parameter ‘vsnprintf’ 382 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | ^~~~~~~~~ /usr/include/stdio.h:403:12: error: storage class specified for parameter ‘vdprintf’ 403 | extern int vdprintf (int __fd, const char *__restrict __fmt, | ^~~~~~~~ /usr/include/stdio.h:406:12: error: storage class specified for parameter ‘dprintf’ 406 | extern int dprintf (int __fd, const char *__restrict __fmt, ...) | ^~~~~~~ /usr/include/stdio.h:415:20: error: expected declaration specifiers or ‘...’ before ‘FILE’ 415 | extern int fscanf (FILE *__restrict __stream, | ^~~~ /usr/include/stdio.h:421:12: error: storage class specified for parameter ‘scanf’ 421 | extern int scanf (const char *__restrict __format, ...) __wur; | ^~~~~ /usr/include/stdio.h:423:12: error: storage class specified for parameter ‘sscanf’ 423 | extern int sscanf (const char *__restrict __s, | ^~~~~~ In file included from /usr/include/features.h:490, from /usr/include/bits/libc-header-start.h:33, from /usr/include/string.h:26, from internal.h:36: /usr/include/stdio.h:434:12: error: expected declaration specifiers or ‘...’ before ‘FILE’ 434 | extern int __REDIRECT (fscanf, (FILE *__restrict __stream, | ^~~~~~~~~~ /usr/include/stdio.h:437:12: error: storage class specified for parameter ‘scanf’ 437 | extern int __REDIRECT (scanf, (const char *__restrict __format, ...), | ^~~~~~~~~~ /usr/include/stdio.h:437:12: error: redefinition of parameter ‘scanf’ /usr/include/stdio.h:421:12: note: previous definition of ‘scanf’ with type ‘int (*)(const char * restrict, ...)’ 421 | extern int scanf (const char *__restrict __format, ...) __wur; | ^~~~~ /usr/include/stdio.h:439:12: error: storage class specified for parameter ‘sscanf’ 439 | extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, | ^~~~~~~~~~~~~~ /usr/include/stdio.h:439:12: error: redefinition of parameter ‘sscanf’ /usr/include/stdio.h:423:12: note: previous definition of ‘sscanf’ with type ‘int (*)(const char * restrict, const char * restrict, ...)’ 423 | extern int sscanf (const char *__restrict __s, | ^~~~~~ /usr/include/stdio.h:459:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 459 | extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, | ^~~~ /usr/include/stdio.h:467:12: error: storage class specified for parameter ‘vscanf’ 467 | extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) | ^~~~~~ /usr/include/stdio.h:471:12: error: storage class specified for parameter ‘vsscanf’ 471 | extern int vsscanf (const char *__restrict __s, | ^~~~~~~ /usr/include/stdio.h:479:12: error: expected declaration specifiers or ‘...’ before ‘FILE’ 479 | extern int __REDIRECT (vfscanf, | ^~~~~~~~~~ /usr/include/stdio.h:484:12: error: storage class specified for parameter ‘vscanf’ 484 | extern int __REDIRECT (vscanf, (const char *__restrict __format, | ^~~~~~~~~~ /usr/include/stdio.h:484:12: error: redefinition of parameter ‘vscanf’ /usr/include/stdio.h:467:12: note: previous definition of ‘vscanf’ with type ‘int (*)(const char * restrict, __va_list_tag *)’ 467 | extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) | ^~~~~~ /usr/include/stdio.h:487:12: error: storage class specified for parameter ‘vsscanf’ 487 | extern int __REDIRECT_NTH (vsscanf, | ^~~~~~~~~~~~~~ /usr/include/stdio.h:487:12: error: redefinition of parameter ‘vsscanf’ /usr/include/stdio.h:471:12: note: previous definition of ‘vsscanf’ with type ‘int (*)(const char * restrict, const char * restrict, __va_list_tag *)’ 471 | extern int vsscanf (const char *__restrict __s, | ^~~~~~~ /usr/include/stdio.h:513:19: error: expected declaration specifiers or ‘...’ before ‘FILE’ 513 | extern int fgetc (FILE *__stream); | ^~~~ /usr/include/stdio.h:514:18: error: expected declaration specifiers or ‘...’ before ‘FILE’ 514 | extern int getc (FILE *__stream); | ^~~~ /usr/include/stdio.h:520:12: error: storage class specified for parameter ‘getchar’ 520 | extern int getchar (void); | ^~~~~~~ /usr/include/stdio.h:527:27: error: expected declaration specifiers or ‘...’ before ‘FILE’ 527 | extern int getc_unlocked (FILE *__stream); | ^~~~ /usr/include/stdio.h:528:12: error: storage class specified for parameter ‘getchar_unlocked’ 528 | extern int getchar_unlocked (void); | ^~~~~~~~~~~~~~~~ /usr/include/stdio.h:549:28: error: expected declaration specifiers or ‘...’ before ‘FILE’ 549 | extern int fputc (int __c, FILE *__stream); | ^~~~ /usr/include/stdio.h:550:27: error: expected declaration specifiers or ‘...’ before ‘FILE’ 550 | extern int putc (int __c, FILE *__stream); | ^~~~ /usr/include/stdio.h:556:12: error: storage class specified for parameter ‘putchar’ 556 | extern int putchar (int __c); | ^~~~~~~ /usr/include/stdio.h:573:36: error: expected declaration specifiers or ‘...’ before ‘FILE’ 573 | extern int putc_unlocked (int __c, FILE *__stream); | ^~~~ /usr/include/stdio.h:574:12: error: storage class specified for parameter ‘putchar_unlocked’ 574 | extern int putchar_unlocked (int __c); | ^~~~~~~~~~~~~~~~ /usr/include/stdio.h:592:52: error: expected declaration specifiers or ‘...’ before ‘FILE’ 592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | ^~~~ /usr/include/stdio.h:634:30: error: expected declaration specifiers or ‘...’ before ‘FILE’ 634 | FILE *__restrict __stream) __wur; | ^~~~ /usr/include/stdio.h:637:28: error: expected declaration specifiers or ‘...’ before ‘FILE’ 637 | FILE *__restrict __stream) __wur; | ^~~~ /usr/include/stdio.h:647:27: error: expected declaration specifiers or ‘...’ before ‘FILE’ 647 | FILE *__restrict __stream) __wur; | ^~~~ /usr/include/stdio.h:655:47: error: expected declaration specifiers or ‘...’ before ‘FILE’ 655 | extern int fputs (const char *__restrict __s, FILE *__restrict __stream); | ^~~~ /usr/include/stdio.h:661:12: error: storage class specified for parameter ‘puts’ 661 | extern int puts (const char *__s); | ^~~~ /usr/include/stdio.h:668:29: error: expected declaration specifiers or ‘...’ before ‘FILE’ 668 | extern int ungetc (int __c, FILE *__stream); | ^~~~ /usr/include/stdio.h:676:34: error: expected declaration specifiers or ‘...’ before ‘FILE’ 676 | size_t __n, FILE *__restrict __stream) __wur; | ^~~~ /usr/include/stdio.h:682:35: error: expected declaration specifiers or ‘...’ before ‘FILE’ 682 | size_t __n, FILE *__restrict __s); | ^~~~ /usr/include/stdio.h:713:19: error: expected declaration specifiers or ‘...’ before ‘FILE’ 713 | extern int fseek (FILE *__stream, long int __off, int __whence); | ^~~~ /usr/include/stdio.h:718:24: error: expected declaration specifiers or ‘...’ before ‘FILE’ 718 | extern long int ftell (FILE *__stream) __wur; | ^~~~ /usr/include/stdio.h:723:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 723 | extern void rewind (FILE *__stream); | ^~~~ /usr/include/stdio.h:736:20: error: expected declaration specifiers or ‘...’ before ‘FILE’ 736 | extern int fseeko (FILE *__stream, __off_t __off, int __whence); | ^~~~ /usr/include/stdio.h:741:24: error: expected declaration specifiers or ‘...’ before ‘FILE’ 741 | extern __off_t ftello (FILE *__stream) __wur; | ^~~~ /usr/include/stdio.h:760:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 760 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); | ^~~~ /usr/include/stdio.h:760:48: error: unknown type name ‘fpos_t’ 760 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); | ^~~~~~ /usr/include/stdio.h:134:1: note: ‘fpos_t’ is defined in header ‘’; did you forget to ‘#include ’? 133 | #include +++ |+#include 134 | /usr/include/stdio.h:765:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 765 | extern int fsetpos (FILE *__stream, const fpos_t *__pos); | ^~~~ /usr/include/stdio.h:765:43: error: unknown type name ‘fpos_t’ 765 | extern int fsetpos (FILE *__stream, const fpos_t *__pos); | ^~~~~~ /usr/include/stdio.h:786:23: error: expected declaration specifiers or ‘...’ before ‘FILE’ 786 | extern void clearerr (FILE *__stream) __THROW; | ^~~~ /usr/include/stdio.h:788:18: error: expected declaration specifiers or ‘...’ before ‘FILE’ 788 | extern int feof (FILE *__stream) __THROW __wur; | ^~~~ /usr/include/stdio.h:790:20: error: expected declaration specifiers or ‘...’ before ‘FILE’ 790 | extern int ferror (FILE *__stream) __THROW __wur; | ^~~~ /usr/include/stdio.h:804:13: error: storage class specified for parameter ‘perror’ 804 | extern void perror (const char *__s); | ^~~~~~ /usr/include/stdio.h:809:20: error: expected declaration specifiers or ‘...’ before ‘FILE’ 809 | extern int fileno (FILE *__stream) __THROW __wur; | ^~~~ /usr/include/stdio.h:823:20: error: expected declaration specifiers or ‘...’ before ‘FILE’ 823 | extern int pclose (FILE *__stream); | ^~~~ /usr/include/stdio.h:829:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token 829 | extern FILE *popen (const char *__command, const char *__modes) | ^ /usr/include/stdio.h:837:14: error: storage class specified for parameter ‘ctermid’ 837 | extern char *ctermid (char *__s) __THROW | ^~~~~~~ /usr/include/stdio.h:867:24: error: expected declaration specifiers or ‘...’ before ‘FILE’ 867 | extern void flockfile (FILE *__stream) __THROW; | ^~~~ /usr/include/stdio.h:871:26: error: expected declaration specifiers or ‘...’ before ‘FILE’ 871 | extern int ftrylockfile (FILE *__stream) __THROW __wur; | ^~~~ /usr/include/stdio.h:874:26: error: expected declaration specifiers or ‘...’ before ‘FILE’ 874 | extern void funlockfile (FILE *__stream) __THROW; | ^~~~ /usr/include/stdio.h:885:21: error: expected declaration specifiers or ‘...’ before ‘FILE’ 885 | extern int __uflow (FILE *); | ^~~~ /usr/include/stdio.h:886:24: error: expected declaration specifiers or ‘...’ before ‘FILE’ 886 | extern int __overflow (FILE *, int); | ^~~~ In file included from /usr/include/stdio.h:902: /usr/include/bits/stdio.h:40:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ ’ token 40 | { | ^ /usr/include/bits/stdio.h:48:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ ’ token 48 | { | ^ /usr/include/bits/stdio.h:66:16: error: expected declaration specifiers or ‘...’ before ‘FILE’ 66 | getc_unlocked (FILE *__fp) | ^~~~ /usr/include/bits/stdio.h:74:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ ’ token 74 | { | ^ /usr/include/bits/stdio.h:83:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ ’ token 83 | { | ^ /usr/include/bits/stdio.h:101:25: error: expected declaration specifiers or ‘...’ before ‘FILE’ 101 | putc_unlocked (int __c, FILE *__stream) | ^~~~ /usr/include/bits/stdio.h:109:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before {’ token 109 | { | ^ /usr/local/include/lauxlib.h:19:28: error: storage class specified for parameter ‘luaL_Buffer’ 19 | typedef struct luaL_Buffer luaL_Buffer; | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:37:3: error: storage class specified for parameter ‘luaL_Reg’ 37 | } luaL_Reg; | ^~~~~~~~ /usr/local/include/lauxlib.h:42:18: error: storage class specified for parameter ‘luaL_checkversion_’ 42 | LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz); | ^~~~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:46:17: error: storage class specified for parameter ‘luaL_getmetafield’ 46 | LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:47:17: error: storage class specified for parameter ‘luaL_callmeta’ 47 | LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); | ^~~~~~~~~~~~~ /usr/local/include/lauxlib.h:48:25: error: storage class specified for parameter ‘luaL_tolstring’ 48 | LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); | ^~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:49:14: error: expected declaration specifiers before ‘extern’ 49 | [[noreturn]] LUALIB_API void (luaL_argerror) (lua_State *L, int arg, const char *extramsg); | ^~~~~~~~~~ /usr/local/include/lauxlib.h:50:14: error: expected declaration specifiers before ‘extern’ 50 | [[noreturn]] LUALIB_API void (luaL_typeerror) (lua_State *L, int arg, const char *tname); | ^~~~~~~~~~ /usr/local/include/lauxlib.h:51:25: error: storage class specified for parameter ‘luaL_checklstring’ 51 | LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg, | ^~~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:53:25: error: storage class specified for parameter ‘luaL_optlstrin ’ 53 | LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg, | ^~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:55:24: error: storage class specified for parameter ‘luaL_checknumber’ 55 | LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg); | ^~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:56:24: error: storage class specified for parameter ‘luaL_optnumber’ 56 | LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def); | ^~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:58:25: error: storage class specified for parameter ‘luaL_checkinteger’ 58 | LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:59:25: error: storage class specified for parameter ‘luaL_optintege ’ 59 | LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, | ^~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:62:18: error: storage class specified for parameter ‘luaL_checkstac ’ 62 | LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); | ^~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:63:18: error: storage class specified for parameter ‘luaL_checktype’ 63 | LUALIB_API void (luaL_checktype) (lua_State *L, int arg, int t); | ^~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:64:18: error: storage class specified for parameter ‘luaL_checkany’ 64 | LUALIB_API void (luaL_checkany) (lua_State *L, int arg); | ^~~~~~~~~~~~~ /usr/local/include/lauxlib.h:66:19: error: storage class specified for parameter ‘luaL_newmetatable’ 66 | LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:67:19: error: storage class specified for parameter ‘luaL_setmetatable’ 67 | LUALIB_API void (luaL_setmetatable) (lua_State *L, const char *tname); | ^~~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:68:19: error: storage class specified for parameter ‘luaL_testudata’ 68 | LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname); | ^~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:69:19: error: storage class specified for parameter ‘luaL_checkudat ’ 69 | LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname); | ^~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:71:18: error: storage class specified for parameter ‘luaL_where’ 71 | LUALIB_API void (luaL_where) (lua_State *L, int lvl); | ^~~~~~~~~~ /usr/local/include/lauxlib.h:72:14: error: expected declaration specifiers before ‘extern’ 72 | [[noreturn]] LUALIB_API void (luaL_error) (lua_State *L, const char *fmt, ...); | ^~~~~~~~~~ /usr/local/include/lauxlib.h:74:17: error: storage class specified for parameter ‘luaL_checkoption’ 74 | LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def, | ^~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:77:17: error: storage class specified for parameter ‘luaL_fileresul ’ 77 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); | ^~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:78:17: error: storage class specified for parameter ‘luaL_execresul ’ 78 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); | ^~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:85:17: error: storage class specified for parameter ‘luaL_ref’ 85 | LUALIB_API int (luaL_ref) (lua_State *L, int t); | ^~~~~~~~ /usr/local/include/lauxlib.h:86:18: error: storage class specified for parameter ‘luaL_unref’ 86 | LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); | ^~~~~~~~~~ /usr/local/include/lauxlib.h:88:17: error: storage class specified for parameter ‘luaL_loadfilex’ 88 | LUALIB_API int (luaL_loadfilex) (lua_State *L, const char *filename, | ^~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:93:17: error: storage class specified for parameter ‘luaL_loadbufferx’ 93 | LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz, | ^~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:95:17: error: storage class specified for parameter ‘luaL_loadstrin ’ 95 | LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s); | ^~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:97:24: error: storage class specified for parameter ‘luaL_newstate’ 97 | LUALIB_API lua_State *(luaL_newstate) (void); | ^~~~~~~~~~~~~ /usr/local/include/lauxlib.h:99:25: error: storage class specified for parameter ‘luaL_len’ 99 | LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx); | ^~~~~~~~ /usr/local/include/lauxlib.h:101:33: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 101 | LUALIB_API void (luaL_addgsub) (luaL_Buffer *b, const char *s, | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:103:25: error: storage class specified for parameter ‘luaL_gsub’ 103 | LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, | ^~~~~~~~~ /usr/local/include/lauxlib.h:106:63: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token 106 | LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup); | ^ /usr/local/include/lauxlib.h:108:17: error: storage class specified for parameter ‘luaL_getsubtable’ 108 | LUALIB_API int (luaL_getsubtable) (lua_State *L, int idx, const char *fname); | ^~~~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:110:18: error: storage class specified for parameter ‘luaL_tracebac ’ 110 | LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1, | ^~~~~~~~~~~~~~ /usr/local/include/lauxlib.h:113:18: error: storage class specified for parameter ‘luaL_requiref’ 113 | LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, | ^~~~~~~~~~~~~ /usr/local/include/lauxlib.h:209:48: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 209 | LUALIB_API void (luaL_buffinit) (lua_State *L, luaL_Buffer *B); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:210:39: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 210 | LUALIB_API char *(luaL_prepbuffsize) (luaL_Buffer *B, size_t sz); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:211:36: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 211 | LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:212:35: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 212 | LUALIB_API void (luaL_addstring) (luaL_Buffer *B, const char *s); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:213:34: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 213 | LUALIB_API void (luaL_addvalue) (luaL_Buffer *B); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:214:36: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 214 | LUALIB_API void (luaL_pushresult) (luaL_Buffer *B); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:215:40: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 215 | LUALIB_API void (luaL_pushresultsize) (luaL_Buffer *B, size_t sz); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:216:53: error: expected declaration specifiers or ‘...’ before ‘luaL_Buffer’ 216 | LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz); | ^~~~~~~~~~~ /usr/local/include/lauxlib.h:240:3: error: expected specifier-qualifier-list before ‘FILE’ 240 | FILE *f; /* stream (NULL for incompletely created streams) */ | ^~~~ /usr/local/include/lauxlib.h:242:3: error: storage class specified for parameter ‘luaL_Stream’ 242 | } luaL_Stream; | ^~~~~~~~~~~ moonglmath.h:46:16: error: storage class specified for parameter ‘moonglmath_vec_t’ 46 | typedef double moonglmath_vec_t[4]; | ^~~~~~~~~~~~~~~~ moonglmath.h:47:16: error: storage class specified for parameter ‘moonglmath_box_t’ 47 | typedef double moonglmath_box_t[8]; | ^~~~~~~~~~~~~~~~ moonglmath.h:48:16: error: storage class specified for parameter ‘moonglmath_mat_t’ 48 | typedef double moonglmath_mat_t[4][4]; | ^~~~~~~~~~~~~~~~ moonglmath.h:49:16: error: storage class specified for parameter ‘moonglmath_quat_t’ 49 | typedef double moonglmath_quat_t[4]; | ^~~~~~~~~~~~~~~~~ moonglmath.h:50:24: error: storage class specified for parameter ‘moonglmath_complex_t’ 50 | typedef double complex moonglmath_complex_t; | ^~~~~~~~~~~~~~~~~~~~ moonglmath.h:68:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 68 | int moonglmath_testvec(lua_State *L, int arg, moonglmath_vec_t v, size_t *size, unsigned int *isrow); | ^~~~~~~~~~~~~~~~ moonglmath.h:69:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 69 | int moonglmath_checkvec(lua_State *L, int arg, moonglmath_vec_t v, size_t *size, unsigned int *isrow); | ^~~~~~~~~~~~~~~~ moonglmath.h:70:38: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 70 | int moonglmath_pushvec(lua_State *L, moonglmath_vec_t v, size_t vsize, size_t size, unsigned int isrow); | ^~~~~~~~~~~~~~~~ moonglmath.h:72:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_box_t’ 72 | int moonglmath_testbox(lua_State *L, int arg, moonglmath_box_t b, size_t *dim); | ^~~~~~~~~~~~~~~~ moonglmath.h:73:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_box_t’ 73 | int moonglmath_checkbox(lua_State *L, int arg, moonglmath_box_t b, size_t *dim); | ^~~~~~~~~~~~~~~~ moonglmath.h:74:38: error: expected declaration specifiers or ‘...’ before ‘moonglmath_box_t’ 74 | int moonglmath_pushbox(lua_State *L, moonglmath_box_t b, size_t dim); | ^~~~~~~~~~~~~~~~ moonglmath.h:76:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 76 | int moonglmath_testmat(lua_State *L, int arg, moonglmath_mat_t m, size_t *nr, size_t *nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:77:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 77 | int moonglmath_checkmat(lua_State *L, int arg, moonglmath_mat_t m, size_t *nr, size_t *nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:78:38: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 78 | int moonglmath_pushmat(lua_State *L, moonglmath_mat_t m, size_t mr, size_t mc, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:80:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 80 | int moonglmath_testquat(lua_State *L, int arg, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:81:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 81 | int moonglmath_checkquat(lua_State *L, int arg, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:82:39: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 82 | int moonglmath_pushquat(lua_State *L, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:84:51: error: expected declaration specifiers or ‘...’ before ‘moonglmath_complex_t’ 84 | int moonglmath_testcomplex(lua_State *L, int arg, moonglmath_complex_t *z); | ^~~~~~~~~~~~~~~~~~~~ moonglmath.h:85:52: error: expected declaration specifiers or ‘...’ before ‘moonglmath_complex_t’ 85 | int moonglmath_checkcomplex(lua_State *L, int arg, moonglmath_complex_t *z); | ^~~~~~~~~~~~~~~~~~~~ moonglmath.h:86:42: error: expected declaration specifiers or ‘...’ before ‘moonglmath_complex_t’ 86 | int moonglmath_pushcomplex(lua_State *L, moonglmath_complex_t z); | ^~~~~~~~~~~~~~~~~~~~ moonglmath.h:94:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 94 | void moonglmath_vec_unm(moonglmath_vec_t dst, moonglmath_vec_t v, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:94:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 94 | void moonglmath_vec_unm(moonglmath_vec_t dst, moonglmath_vec_t v, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:95:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 95 | void moonglmath_vec_add(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:95:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 95 | void moonglmath_vec_add(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:95:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 95 | void moonglmath_vec_add(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:96:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 96 | void moonglmath_vec_sub(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:96:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 96 | void moonglmath_vec_sub(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:96:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 96 | void moonglmath_vec_sub(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:97:28: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 97 | double moonglmath_vec_norm(moonglmath_vec_t v, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:98:29: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 98 | double moonglmath_vec_norm2(moonglmath_vec_t v, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:99:31: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 99 | void moonglmath_vec_normalize(moonglmath_vec_t v, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:100:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 100 | void moonglmath_vec_div(moonglmath_vec_t dst, moonglmath_vec_t v, double s, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:100:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 100 | void moonglmath_vec_div(moonglmath_vec_t dst, moonglmath_vec_t v, double s, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:101:27: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 101 | double moonglmath_vec_dot(moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:101:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 101 | double moonglmath_vec_dot(moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:102:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 102 | void moonglmath_vec_vxs(moonglmath_vec_t dst, moonglmath_vec_t v, double s, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:102:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 102 | void moonglmath_vec_vxs(moonglmath_vec_t dst, moonglmath_vec_t v, double s, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:103:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 103 | void moonglmath_vec_vxv(moonglmath_mat_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:103:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 103 | void moonglmath_vec_vxv(moonglmath_mat_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:103:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 103 | void moonglmath_vec_vxv(moonglmath_mat_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:104:27: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 104 | void moonglmath_vec_cross(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2); | ^~~~~~~~~~~~~~~~ moonglmath.h:104:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 104 | void moonglmath_vec_cross(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2); | ^~~~~~~~~~~~~~~~ moonglmath.h:104:70: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 104 | void moonglmath_vec_cross(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2); | ^~~~~~~~~~~~~~~~ moonglmath.h:105:27: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 105 | void moonglmath_vec_clamp(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t minv, moonglmath_vec_t maxv, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:105:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 105 | void moonglmath_vec_clamp(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t minv, moonglmath_vec_t maxv, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:105:69: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 105 | void moonglmath_vec_clamp(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t minv, moonglmath_vec_t maxv, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:105:92: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 105 | h_vec_clamp(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t minv, moonglmath_vec_t maxv, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:106:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 106 | void moonglmath_vec_mix(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n, double k); | ^~~~~~~~~~~~~~~~ moonglmath.h:106:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 106 | void moonglmath_vec_mix(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n, double k); | ^~~~~~~~~~~~~~~~ moonglmath.h:106:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 106 | void moonglmath_vec_mix(moonglmath_vec_t dst, moonglmath_vec_t v1, moonglmath_vec_t v2, size_t n, double k); | ^~~~~~~~~~~~~~~~ moonglmath.h:107:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 107 | void moonglmath_vec_step(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:107:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 107 | void moonglmath_vec_step(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:107:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 107 | void moonglmath_vec_step(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:108:32: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 108 | void moonglmath_vec_smoothstep(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:108:54: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 108 | void moonglmath_vec_smoothstep(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:108:74: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 108 | void moonglmath_vec_smoothstep(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_ edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~ moonglmath.h:108:98: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 108 | smoothstep(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:109:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 109 | void moonglmath_vec_fade(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:109:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 109 | void moonglmath_vec_fade(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:109:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 109 | void moonglmath_vec_fade(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:109:92: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 109 | h_vec_fade(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_vec_t edge0, moonglmath_vec_t edge1, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:124:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 124 | void moonglmath_mat_unm(moonglmath_mat_t dst, moonglmath_mat_t m, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:124:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 124 | void moonglmath_mat_unm(moonglmath_mat_t dst, moonglmath_mat_t m, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:125:31: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 125 | void moonglmath_mat_transpose(moonglmath_mat_t dst, moonglmath_mat_t m, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:125:53: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 125 | void moonglmath_mat_transpose(moonglmath_mat_t dst, moonglmath_mat_t m, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:126:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 126 | void moonglmath_mat_add(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:126:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 126 | void moonglmath_mat_add(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:126:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 126 | void moonglmath_mat_add(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:127:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 127 | void moonglmath_mat_sub(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:127:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 127 | void moonglmath_mat_sub(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:127:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 127 | void moonglmath_mat_sub(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:128:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 128 | void moonglmath_mat_div(moonglmath_mat_t dst, moonglmath_mat_t m, double s, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:128:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 128 | void moonglmath_mat_div(moonglmath_mat_t dst, moonglmath_mat_t m, double s, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:129:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 129 | void moonglmath_mat_mul(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr1, size_t nc1, size_t nc2); | ^~~~~~~~~~~~~~~~ moonglmath.h:129:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 129 | void moonglmath_mat_mul(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr1, size_t nc1, size_t nc2); | ^~~~~~~~~~~~~~~~ moonglmath.h:129:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 129 | void moonglmath_mat_mul(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr1, size_t nc1, size_t nc2); | ^~~~~~~~~~~~~~~~ moonglmath.h:130:27: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 130 | void moonglmath_mat_mulby(moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr1, size_t nc1, size_t nc2); | ^~~~~~~~~~~~~~~~ moonglmath.h:130:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 130 | void moonglmath_mat_mulby(moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr1, size_t nc1, size_t nc2); | ^~~~~~~~~~~~~~~~ moonglmath.h:131:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 131 | void moonglmath_mat_mxs(moonglmath_mat_t dst, moonglmath_mat_t m, double s, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:131:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 131 | void moonglmath_mat_mxs(moonglmath_mat_t dst, moonglmath_mat_t m, double s, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:132:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 132 | void moonglmath_mat_mxv(moonglmath_vec_t dst, moonglmath_mat_t m, moonglmath_vec_t v, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:132:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 132 | void moonglmath_mat_mxv(moonglmath_vec_t dst, moonglmath_mat_t m, moonglmath_vec_t v, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:132:67: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 132 | void moonglmath_mat_mxv(moonglmath_vec_t dst, moonglmath_mat_t m, moonglmath_vec_t v, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:133:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 133 | void moonglmath_mat_vxm(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_mat_t m, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:133:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 133 | void moonglmath_mat_vxm(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_mat_t m, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:133:67: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 133 | void moonglmath_mat_vxm(moonglmath_vec_t dst, moonglmath_vec_t v, moonglmath_mat_t m, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:134:28: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 134 | double moonglmath_mat_det2(moonglmath_mat_t m); | ^~~~~~~~~~~~~~~~ moonglmath.h:135:28: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 135 | double moonglmath_mat_det3(moonglmath_mat_t m); | ^~~~~~~~~~~~~~~~ moonglmath.h:136:28: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 136 | double moonglmath_mat_det4(moonglmath_mat_t m); | ^~~~~~~~~~~~~~~~ moonglmath.h:137:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 137 | void moonglmath_mat_adj(moonglmath_mat_t dst, moonglmath_mat_t m, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:137:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 137 | void moonglmath_mat_adj(moonglmath_mat_t dst, moonglmath_mat_t m, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:138:24: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 138 | int moonglmath_mat_inv(moonglmath_mat_t dst, moonglmath_mat_t m, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:138:46: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 138 | int moonglmath_mat_inv(moonglmath_mat_t dst, moonglmath_mat_t m, size_t n); | ^~~~~~~~~~~~~~~~ moonglmath.h:139:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 139 | int moonglmath_mat_clamp(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t minm, moonglmath_mat_t maxm, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:139:48: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 139 | int moonglmath_mat_clamp(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t minm, moonglmath_mat_t maxm, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:139:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 139 | int moonglmath_mat_clamp(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t minm, moonglmath_mat_t maxm, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:139:91: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 139 | h_mat_clamp(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t minm, moonglmath_mat_t maxm, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:140:24: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 140 | int moonglmath_mat_mix(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc, double k); | ^~~~~~~~~~~~~~~~ moonglmath.h:140:46: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 140 | int moonglmath_mat_mix(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc, double k); | ^~~~~~~~~~~~~~~~ moonglmath.h:140:67: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 140 | int moonglmath_mat_mix(moonglmath_mat_t dst, moonglmath_mat_t m1, moonglmath_mat_t m2, size_t nr, size_t nc, double k); | ^~~~~~~~~~~~~~~~ moonglmath.h:141:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 141 | int moonglmath_mat_step(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:141:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 141 | int moonglmath_mat_step(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:141:67: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 141 | int moonglmath_mat_step(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:142:31: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 142 | int moonglmath_mat_smoothstep(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:142:53: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 142 | int moonglmath_mat_smoothstep(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:142:73: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 142 | int moonglmath_mat_smoothstep(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:142:97: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 142 | smoothstep(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:143:25: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 143 | int moonglmath_mat_fade(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:143:47: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 143 | int moonglmath_mat_fade(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:143:67: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 143 | int moonglmath_mat_fade(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:143:91: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 143 | h_mat_fade(moonglmath_mat_t dst, moonglmath_mat_t m, moonglmath_mat_t edge0, moonglmath_mat_t edge1, size_t nr, size_t nc); | ^~~~~~~~~~~~~~~~ moonglmath.h:151:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 151 | void moonglmath_quat_unm(moonglmath_quat_t dst, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:151:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 151 | void moonglmath_quat_unm(moonglmath_quat_t dst, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:152:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 152 | void moonglmath_quat_add(moonglmath_quat_t dst, moonglmath_quat_t q1, moonglmath_quat_t q2); | ^~~~~~~~~~~~~~~~~ moonglmath.h:152:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 152 | void moonglmath_quat_add(moonglmath_quat_t dst, moonglmath_quat_t q1, moonglmath_quat_t q2); | ^~~~~~~~~~~~~~~~~ moonglmath.h:152:71: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 152 | void moonglmath_quat_add(moonglmath_quat_t dst, moonglmath_quat_t q1, moonglmath_quat_t q2); | ^~~~~~~~~~~~~~~~~ moonglmath.h:153:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 153 | void moonglmath_quat_sub(moonglmath_quat_t dst, moonglmath_quat_t q1, moonglmath_quat_t q2); | ^~~~~~~~~~~~~~~~~ moonglmath.h:153:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 153 | void moonglmath_quat_sub(moonglmath_quat_t dst, moonglmath_quat_t q1, moonglmath_quat_t q2); | ^~~~~~~~~~~~~~~~~ moonglmath.h:153:71: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 153 | void moonglmath_quat_sub(moonglmath_quat_t dst, moonglmath_quat_t q1, moonglmath_quat_t q2); | ^~~~~~~~~~~~~~~~~ moonglmath.h:154:29: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 154 | double moonglmath_quat_norm(moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:155:30: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 155 | double moonglmath_quat_norm2(moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:156:32: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 156 | void moonglmath_quat_normalize(moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:157:27: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 157 | void moonglmath_quat_conj(moonglmath_quat_t dst, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:157:50: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 157 | void moonglmath_quat_conj(moonglmath_quat_t dst, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:158:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 158 | void moonglmath_quat_inv(moonglmath_quat_t dst, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:158:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 158 | void moonglmath_quat_inv(moonglmath_quat_t dst, moonglmath_quat_t q); | ^~~~~~~~~~~~~~~~~ moonglmath.h:159:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 159 | void moonglmath_quat_div(moonglmath_quat_t dst, moonglmath_quat_t q, double s); | ^~~~~~~~~~~~~~~~~ moonglmath.h:159:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 159 | void moonglmath_quat_div(moonglmath_quat_t dst, moonglmath_quat_t q, double s); | ^~~~~~~~~~~~~~~~~ moonglmath.h:160:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 160 | void moonglmath_quat_mul(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p); | ^~~~~~~~~~~~~~~~~ moonglmath.h:160:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 160 | void moonglmath_quat_mul(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p); | ^~~~~~~~~~~~~~~~~ moonglmath.h:160:70: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 160 | void moonglmath_quat_mul(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p); | ^~~~~~~~~~~~~~~~~ moonglmath.h:161:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 161 | void moonglmath_quat_qxs(moonglmath_quat_t dst, moonglmath_quat_t q, double s); | ^~~~~~~~~~~~~~~~~ moonglmath.h:161:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 161 | void moonglmath_quat_qxs(moonglmath_quat_t dst, moonglmath_quat_t q, double s); | ^~~~~~~~~~~~~~~~~ moonglmath.h:162:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 162 | void moonglmath_quat_mix(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p, double t); | ^~~~~~~~~~~~~~~~~ moonglmath.h:162:49: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 162 | void moonglmath_quat_mix(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p, double t); | ^~~~~~~~~~~~~~~~~ moonglmath.h:162:70: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 162 | void moonglmath_quat_mix(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p, double t); | ^~~~~~~~~~~~~~~~~ moonglmath.h:163:28: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 163 | void moonglmath_quat_slerp(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p, double t); | ^~~~~~~~~~~~~~~~~ moonglmath.h:163:51: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 163 | void moonglmath_quat_slerp(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p, double t); | ^~~~~~~~~~~~~~~~~ moonglmath.h:163:72: error: expected declaration specifiers or ‘...’ before ‘moonglmath_quat_t’ 163 | void moonglmath_quat_slerp(moonglmath_quat_t dst, moonglmath_quat_t q, moonglmath_quat_t p, double t); | ^~~~~~~~~~~~~~~~~ moonglmath.h:183:27: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 183 | void moonglmath_translate(moonglmath_mat_t m, double x, double y, double z); | ^~~~~~~~~~~~~~~~ moonglmath.h:184:23: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 184 | void moonglmath_scale(moonglmath_mat_t m, double x, double y, double z); | ^~~~~~~~~~~~~~~~ moonglmath.h:185:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 185 | void moonglmath_rotate_x(moonglmath_mat_t m, double rad); | ^~~~~~~~~~~~~~~~ moonglmath.h:186:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 186 | void moonglmath_rotate_y(moonglmath_mat_t m, double rad); | ^~~~~~~~~~~~~~~~ moonglmath.h:187:26: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 187 | void moonglmath_rotate_z(moonglmath_mat_t m, double rad); | ^~~~~~~~~~~~~~~~ moonglmath.h:190:24: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 190 | int moonglmath_look_at(moonglmath_mat_t dst, moonglmath_vec_t eye, moonglmath_vec_t at, moonglmath_vec_t up); | ^~~~~~~~~~~~~~~~ moonglmath.h:190:46: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 190 | int moonglmath_look_at(moonglmath_mat_t dst, moonglmath_vec_t eye, moonglmath_vec_t at, moonglmath_vec_t up); | ^~~~~~~~~~~~~~~~ moonglmath.h:190:68: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 190 | int moonglmath_look_at(moonglmath_mat_t dst, moonglmath_vec_t eye, moonglmath_vec_t at, moonglmath_vec_t up); | ^~~~~~~~~~~~~~~~ moonglmath.h:190:89: error: expected declaration specifiers or ‘...’ before ‘moonglmath_vec_t’ 190 | ath_look_at(moonglmath_mat_t dst, moonglmath_vec_t eye, moonglmath_vec_t at, moonglmath_vec_t up); | ^~~~~~~~~~~~~~~~ moonglmath.h:191:22: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 191 | int moonglmath_ortho(moonglmath_mat_t dst, double l, double r, double b, double t, double n, double f); | ^~~~~~~~~~~~~~~~ moonglmath.h:192:24: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 192 | int moonglmath_frustum(moonglmath_mat_t dst, double l, double r, double b, double t, double n, double f); | ^~~~~~~~~~~~~~~~ moonglmath.h:193:28: error: expected declaration specifiers or ‘...’ before ‘moonglmath_mat_t’ 193 | int moonglmath_perspective(moonglmath_mat_t dst, double fovy, double aspect, double n, double f); | ^~~~~~~~~~~~~~~~ In file included from objects.h:30, from internal.h:53: udata.h:62:49: warning: type defaults to ‘int’ in declaration of ‘luaL_Reg’ [-Wimplicit-int] 62 | int udata_define(lua_State*, const char*, const luaL_Reg*, const luaL_Reg*); | ^~~~~~~~ udata.h:62:57: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token 62 | int udata_define(lua_State*, const char*, const luaL_Reg*, const luaL_Reg*); | ^ udata.h:68:53: warning: type defaults to ‘int’ in declaration of ‘luaL_Reg’ [-Wimplicit-int] 68 | int udata_addmethods(lua_State*, const char*, const luaL_Reg*); | ^~~~~~~~ udata.h:68:61: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token 68 | int udata_addmethods(lua_State*, const char*, const luaL_Reg*); | ^ objects.h:36:3: error: storage class specified for parameter ‘hostmem_t’ 36 | } hostmem_t; | ^~~~~~~~~ objects.h:44:14: error: storage class specified for parameter ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:45:32: note: in expansion of macro ‘ud_t’ 45 | typedef struct moonglmath_ud_s ud_t; | ^~~~ objects.h:44:14: error: expected declaration specifiers or ‘...’ before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:49:37: note: in expansion of macro ‘ud_t’ 49 | int (*destructor)(lua_State *L, ud_t *ud); /* self destructor */ | ^~~~ objects.h:44:14: error: expected ‘;’ before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:50:5: note: in expansion of macro ‘ud_t’ 50 | ud_t *parent_ud; /* the ud of the parent object */ | ^~~~ objects.h:47:1: warning: empty declaration 47 | struct moonglmath_ud_s { | ^~~~~~ objects.h:44:14: error: expected declaration specifiers before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:74:1: note: in expansion of macro ‘ud_t’ 74 | ud_t *newuserdata(lua_State *L, void *handle, const char *mt, const char *tracename); | ^~~~ objects.h:44:14: error: expected declaration specifiers or ‘...’ before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:76:32: note: in expansion of macro ‘ud_t’ 76 | int freeuserdata(lua_State *L, ud_t *ud, const char *tracename); | ^~~~ objects.h:44:14: error: expected declaration specifiers or ‘...’ before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:78:32: note: in expansion of macro ‘ud_t’ 78 | int pushuserdata(lua_State *L, ud_t *ud); | ^~~~ objects.h:44:14: error: expected declaration specifiers before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:84:1: note: in expansion of macro ‘ud_t’ 84 | ud_t *userdata(void *handle); | ^~~~ objects.h:44:14: error: expected declaration specifiers or ‘...’ before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:86:38: note: in expansion of macro ‘ud_t’ 86 | void *testxxx(lua_State *L, int arg, ud_t **udp, const char *mt); | ^~~~ objects.h:44:14: error: expected declaration specifiers or ‘...’ before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:88:39: note: in expansion of macro ‘ud_t’ 88 | void *checkxxx(lua_State *L, int arg, ud_t **udp, const char *mt); | ^~~~ objects.h:44:14: error: expected declaration specifiers or ‘...’ before ‘moonglmath_ud_t’ 44 | #define ud_t moonglmath_ud_t | ^~~~~~~~~~~~~~~ objects.h:95:49: note: in expansion of macro ‘ud_t’ 95 | int freechildren(lua_State *L, const char *mt, ud_t *parent_ud); | ^~~~ internal.h:93:16: error: redefinition of parameter ‘moonglmath_Malloc’ 93 | #define Malloc moonglmath_Malloc | ^~~~~~~~~~~~~~~~~ internal.h:94:7: note: in expansion of macro ‘Malloc’ 94 | void *Malloc(lua_State *L, size_t size); | ^~~~~~ udata.h:36:16: note: previous definition of ‘moonglmath_Malloc’ with type ‘void * (*)(lua_State *, size_t)’ {aka ‘void * (*)(lua_State *, long unsigned int)’} 36 | #define Malloc moonglmath_Malloc | ^~~~~~~~~~~~~~~~~ udata.h:37:7: note: in expansion of macro ‘Malloc’ 37 | void *Malloc(lua_State *L, size_t size); | ^~~~~~ internal.h:99:14: error: redefinition of parameter ‘moonglmath_Free’ 99 | #define Free moonglmath_Free | ^~~~~~~~~~~~~~~ internal.h:100:6: note: in expansion of macro ‘Free’ 100 | void Free(lua_State *L, void *ptr); | ^~~~ udata.h:38:14: note: previous definition of ‘moonglmath_Free’ with type ‘void (*)(lua_State *, void *)’ 38 | #define Free moonglmath_Free | ^~~~~~~~~~~~~~~ udata.h:39:6: note: in expansion of macro ‘Free’ 39 | void Free(lua_State *L, void *ptr); | ^~~~ internal.h:101:13: error: redefinition of parameter ‘moonglmath_now’ 101 | #define now moonglmath_now | ^~~~~~~~~~~~~~ internal.h:102:8: note: in expansion of macro ‘now’ 102 | double now(void); | ^~~ moonglmath.h:180:8: note: previous definition of ‘moonglmath_now’ with type ‘double (*)(void)’ 180 | double moonglmath_now(void); | ^~~~~~~~~~~~~~ internal.h:121:67: warning: type defaults to ‘int’ in declaration of ‘luaL_Reg’ [-Wimplicit-int] 121 | int metatable_setfuncs(lua_State *L, const char *metatable, const luaL_Reg *metamethods, | ^~~~~~~~ internal.h:121:76: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token 121 | int metatable_setfuncs(lua_State *L, const char *metatable, const luaL_Reg *metamethods, | ^ internal.h:295:23: error: storage class specified for parameter ‘moonglmath_trace_objects’ 295 | #define trace_objects moonglmath_trace_objects | ^~~~~~~~~~~~~~~~~~~~~~~~ internal.h:296:12: note: in expansion of macro ‘trace_objects’ 296 | extern int trace_objects; | ^~~~~~~~~~~~~ moonglmath_local.h:39:15: error: expected declaration specifiers or ‘...’ before ‘moonglmath_box_t’ 39 | #define box_t moonglmath_box_t | ^~~~~~~~~~~~~~~~ box.c:32:36: note: in expansion of macro ‘box_t’ 32 | int testbox(lua_State *L, int arg, box_t b, size_t *dim) | ^~~~~ moonglmath_local.h:39:15: error: expected declaration specifiers or ‘...’ before ‘moonglmath_box_t’ 39 | #define box_t moonglmath_box_t | ^~~~~~~~~~~~~~~~ box.c:60:37: note: in expansion of macro ‘box_t’ 60 | int checkbox(lua_State *L, int arg, box_t b, size_t *dim) | ^~~~~ moonglmath_local.h:39:15: error: expected declaration specifiers or ‘...’ before ‘moonglmath_box_t’ 39 | #define box_t moonglmath_box_t | ^~~~~~~~~~~~~~~~ box.c:70:27: note: in expansion of macro ‘box_t’ 70 | int pushbox(lua_State *L, box_t b, size_t dim) | ^~~~~ box.c:99:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 99 | { | ^ box.c:111:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 111 | static int Box2(lua_State *L) { return Box(L, 2); } | ^ box.c:112:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 112 | static int Box3(lua_State *L) { return Box(L, 3); } | ^ box.c:115:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 115 | { | ^ box.c:124:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 124 | static int IsBox2(lua_State *L) { return IsBox(L, 2); } | ^ box.c:125:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 125 | static int IsBox3(lua_State *L) { return IsBox(L, 3); } | ^ moonglmath_local.h:39:15: error: expected declaration specifiers or ‘...’ before ‘moonglmath_box_t’ 39 | #define box_t moonglmath_box_t | ^~~~~~~~~~~~~~~~ box.c:131:36: note: in expansion of macro ‘box_t’ 131 | static int ToString_(lua_State *L, box_t b, size_t dim) | ^~~~~ box.c:162:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 162 | { | ^ box.c:171:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 171 | { | ^ box.c:201:30: error: storage class specified for parameter ‘Metamethods’ 201 | static const struct luaL_Reg Metamethods[] = | ^~~~~~~~~~~ box.c:201:21: error: parameter ‘Metamethods’ is initialized 201 | static const struct luaL_Reg Metamethods[] = | ^~~~~~~~ box.c:203:9: warning: braces around scalar initializer 203 | { "__tostring", ToString }, | ^ box.c:203:9: note: (near initialization for ‘Metamethods’) box.c:203:11: warning: initialization of ‘const struct luaL_Reg *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 203 | { "__tostring", ToString }, | ^~~~~~~~~~~~ box.c:203:11: note: (near initialization for ‘Metamethods’) box.c:203:25: error: ‘ToString’ undeclared (first use in this function) 203 | { "__tostring", ToString }, | ^~~~~~~~ box.c:203:25: note: each undeclared identifier is reported only once for each function it appears in box.c:203:25: warning: excess elements in scalar initializer box.c:203:25: note: (near initialization for ‘Metamethods’) box.c:204:9: warning: braces around scalar initializer 204 | { "__concat", Concat }, | ^ box.c:204:9: note: (near initialization for ‘Metamethods’) box.c:204:11: warning: initialization of ‘const struct luaL_Reg *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 204 | { "__concat", Concat }, | ^~~~~~~~~~ box.c:204:11: note: (near initialization for ‘Metamethods’) box.c:204:23: error: ‘Concat’ undeclared (first use in this function) 204 | { "__concat", Concat }, | ^~~~~~ box.c:204:23: warning: excess elements in scalar initializer box.c:204:23: note: (near initialization for ‘Metamethods’) box.c:204:9: warning: excess elements in scalar initializer 204 | { "__concat", Concat }, | ^ box.c:204:9: note: (near initialization for ‘Metamethods’) box.c:205:9: warning: braces around scalar initializer 205 | { NULL, NULL } /* sentinel */ | ^ box.c:205:9: note: (near initialization for ‘Metamethods’) box.c:205:17: warning: excess elements in scalar initializer 205 | { NULL, NULL } /* sentinel */ | ^~~~ box.c:205:17: note: (near initialization for ‘Metamethods’) box.c:205:9: warning: excess elements in scalar initializer 205 | { NULL, NULL } /* sentinel */ | ^ box.c:205:9: note: (near initialization for ‘Metamethods’) box.c:208:30: error: storage class specified for parameter ‘Methods’ 208 | static const struct luaL_Reg Methods[] = | ^~~~~~~ box.c:208:21: error: parameter ‘Methods’ is initialized 208 | static const struct luaL_Reg Methods[] = | ^~~~~~~~ box.c:210:9: warning: braces around scalar initializer 210 | { NULL, NULL } /* sentinel */ | ^ box.c:210:9: note: (near initialization for ‘Methods’) box.c:210:17: warning: excess elements in scalar initializer 210 | { NULL, NULL } /* sentinel */ | ^~~~ box.c:210:17: note: (near initialization for ‘Methods’) box.c:218:30: error: storage class specified for parameter ‘Functions’ 218 | static const struct luaL_Reg Functions[] = | ^~~~~~~~~ box.c:218:21: error: parameter ‘Functions’ is initialized 218 | static const struct luaL_Reg Functions[] = | ^~~~~~~~ box.c:220:9: warning: braces around scalar initializer 220 | { "box2", Box2 }, | ^ box.c:220:9: note: (near initialization for ‘Functions’) box.c:220:11: warning: initialization of ‘const struct luaL_Reg *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 220 | { "box2", Box2 }, | ^~~~~~ box.c:220:11: note: (near initialization for ‘Functions’) box.c:220:19: error: ‘Box2’ undeclared (first use in this function) 220 | { "box2", Box2 }, | ^~~~ box.c:220:19: warning: excess elements in scalar initializer box.c:220:19: note: (near initialization for ‘Functions’) box.c:221:9: warning: braces around scalar initializer 221 | { "box3", Box3 }, | ^ box.c:221:9: note: (near initialization for ‘Functions’) box.c:221:11: warning: initialization of ‘const struct luaL_Reg *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 221 | { "box3", Box3 }, | ^~~~~~ box.c:221:11: note: (near initialization for ‘Functions’) box.c:221:19: error: ‘Box3’ undeclared (first use in this function) 221 | { "box3", Box3 }, | ^~~~ box.c:221:19: warning: excess elements in scalar initializer box.c:221:19: note: (near initialization for ‘Functions’) box.c:221:9: warning: excess elements in scalar initializer 221 | { "box3", Box3 }, | ^ box.c:221:9: note: (near initialization for ‘Functions’) box.c:222:9: warning: braces around scalar initializer 222 | { "isbox2", IsBox2 }, | ^ box.c:222:9: note: (near initialization for ‘Functions’) box.c:222:11: warning: initialization of ‘const struct luaL_Reg *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 222 | { "isbox2", IsBox2 }, | ^~~~~~~~ box.c:222:11: note: (near initialization for ‘Functions’) box.c:222:21: error: ‘IsBox2’ undeclared (first use in this function); did you mean ‘isbox’? 222 | { "isbox2", IsBox2 }, | ^~~~~~ | isbox box.c:222:21: warning: excess elements in scalar initializer box.c:222:21: note: (near initialization for ‘Functions’) box.c:222:9: warning: excess elements in scalar initializer 222 | { "isbox2", IsBox2 }, | ^ box.c:222:9: note: (near initialization for ‘Functions’) box.c:223:9: warning: braces around scalar initializer 223 | { "isbox3", IsBox3 }, | ^ box.c:223:9: note: (near initialization for ‘Functions’) box.c:223:11: warning: initialization of ‘const struct luaL_Reg *’ from incompatible pointer type ‘char *’ [-Wincompatible-pointer-types] 223 | { "isbox3", IsBox3 }, | ^~~~~~~~ box.c:223:11: note: (near initialization for ‘Functions’) box.c:223:21: error: ‘IsBox3’ undeclared (first use in this function); did you mean ‘isbox’? 223 | { "isbox3", IsBox3 }, | ^~~~~~ | isbox box.c:223:21: warning: excess elements in scalar initializer box.c:223:21: note: (near initialization for ‘Functions’) box.c:223:9: warning: excess elements in scalar initializer 223 | { "isbox3", IsBox3 }, | ^ box.c:223:9: note: (near initialization for ‘Functions’) box.c:224:9: warning: braces around scalar initializer 224 | { NULL, NULL } /* sentinel */ | ^ box.c:224:9: note: (near initialization for ‘Functions’) box.c:224:17: warning: excess elements in scalar initializer 224 | { NULL, NULL } /* sentinel */ | ^~~~ box.c:224:17: note: (near initialization for ‘Functions’) box.c:224:9: warning: excess elements in scalar initializer 224 | { NULL, NULL } /* sentinel */ | ^ box.c:224:9: note: (near initialization for ‘Functions’) box.c:228:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 228 | { | ^ /usr/local/include/lua.h:184:26: error: old-style parameter declarations in prototyped function definition 184 | LUA_API int (lua_istrue) (lua_State *L, int idx) noexcept; | ^~~~~~~~~~ box.c:234: error: expected ‘{’ at end of input box.c:234: warning: control reaches end of non-void function [-Wreturn-type] make[1]: *** [: box.o] Error 1