Ardour
9.0-pre0-386-g96ef4d20f2
lundump.h
Go to the documentation of this file.
1
/*
2
** $Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $
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
#define MYINT(s) (s[0]-'0')
22
#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
23
#define LUAC_FORMAT 0
/* this is the official format */
24
25
/* load one chunk; from lundump.c */
26
LUAI_FUNC
LClosure
*
luaU_undump
(
lua_State
* L,
ZIO
* Z,
const
char
*
name
);
27
28
/* dump one chunk; from ldump.c */
29
LUAI_FUNC
int
luaU_dump
(
lua_State
* L,
const
Proto
* f,
lua_Writer
w,
30
void
* data,
int
strip);
31
32
#endif
name
GtkImageIconNameData name
Definition:
gtkimage.h:6
llimits.h
lobject.h
lua_Writer
int(* lua_Writer)(lua_State *L, const void *p, size_t sz, void *ud)
Definition:
lua-5.3.5/lua.h:118
LUAI_FUNC
#define LUAI_FUNC
Definition:
luaconf.h:282
luaU_undump
LClosure * luaU_undump(lua_State *L, ZIO *Z, const char *name)
luaU_dump
int luaU_dump(lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
lzio.h
LClosure
Definition:
lobject.h:453
Proto
Definition:
lobject.h:407
Zio
Definition:
lzio.h:55
lua_State
Definition:
lstate.h:178
libs
lua
lua-5.3.5
lundump.h
Generated on Sun Nov 10 2024 05:34:28 for Ardour by
1.9.1