aboutsummaryrefslogtreecommitdiff
path: root/src/lua/lundump.h
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-04-21 09:36:25 +0800
committerLi Jin <dragon-fly@qq.com>2021-04-21 09:36:25 +0800
commitb7bdf7d5d36825a1a750a74641f6d374dec5d67a (patch)
tree6b27eb6590e07c07f378305c51d0f5e0779faa83 /src/lua/lundump.h
parentb86e5af605a170a3559df0165eac3cb6b665dc49 (diff)
downloadyuescript-b7bdf7d5d36825a1a750a74641f6d374dec5d67a.tar.gz
yuescript-b7bdf7d5d36825a1a750a74641f6d374dec5d67a.tar.bz2
yuescript-b7bdf7d5d36825a1a750a74641f6d374dec5d67a.zip
adjust some folder levels.
Diffstat (limited to 'src/lua/lundump.h')
-rw-r--r--src/lua/lundump.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/lua/lundump.h b/src/lua/lundump.h
deleted file mode 100644
index f3748a9..0000000
--- a/src/lua/lundump.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/*
2** $Id: lundump.h $
3** load precompiled Lua chunks
4** See Copyright Notice in lua.h
5*/
6
7#ifndef lundump_h
8#define lundump_h
9
10#include "llimits.h"
11#include "lobject.h"
12#include "lzio.h"
13
14
15/* data to catch conversion errors */
16#define LUAC_DATA "\x19\x93\r\n\x1a\n"
17
18#define LUAC_INT 0x5678
19#define LUAC_NUM cast_num(370.5)
20
21/*
22** Encode major-minor version in one byte, one nibble for each
23*/
24#define MYINT(s) (s[0]-'0') /* assume one-digit numerals */
25#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
26
27#define LUAC_FORMAT 0 /* this is the official format */
28
29/* load one chunk; from lundump.c */
30LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name);
31
32/* dump one chunk; from ldump.c */
33LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
34 void* data, int strip);
35
36#endif