summaryrefslogtreecommitdiff
path: root/external/mit/lua/dist/src/lundump.h
diff options
context:
space:
mode:
Diffstat (limited to 'external/mit/lua/dist/src/lundump.h')
-rw-r--r--external/mit/lua/dist/src/lundump.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/external/mit/lua/dist/src/lundump.h b/external/mit/lua/dist/src/lundump.h
index 204fadb64b2..dc9b6b3d178 100644
--- a/external/mit/lua/dist/src/lundump.h
+++ b/external/mit/lua/dist/src/lundump.h
@@ -1,7 +1,7 @@
-/* $NetBSD: lundump.h,v 1.7 2018/08/04 17:30:01 alnsn Exp $ */
+/* $NetBSD: lundump.h,v 1.8 2023/04/16 20:46:17 nikita Exp $ */
/*
-** Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp
+** Id: lundump.h
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -20,8 +20,12 @@
#define LUAC_INT 0x5678
#define LUAC_NUM cast_num(370.5)
-#define MYINT(s) (s[0]-'0')
+/*
+** Encode major-minor version in one byte, one nibble for each
+*/
+#define MYINT(s) (s[0]-'0') /* assume one-digit numerals */
#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
+
#define LUAC_FORMAT 0 /* this is the official format */
/* load one chunk; from lundump.c */