modifications by lhf

This commit is contained in:
Roberto Ierusalimschy
1999-12-02 17:11:51 -02:00
parent b097076678
commit 72afb6debb
2 changed files with 104 additions and 100 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lundump.h,v 1.10 1999/08/16 20:52:00 roberto Exp roberto $
** $Id: lundump.h,v 1.17 1999/12/02 18:51:09 lhf Exp $
** load pre-compiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -10,20 +10,24 @@
#include "lobject.h"
#include "lzio.h"
TProtoFunc* luaU_undump1 (lua_State *L, ZIO* Z); /* load one chunk */
void luaU_badconstant (lua_State *L, const char* s, int i, const TObject* o, TProtoFunc* tf);
/* handle cases that cannot happen */
double luaU_str2d (lua_State *L, const char* b, const char* where);
/* convert number from text */
/* load one chunk */
TProtoFunc* luaU_undump1 (lua_State* L, ZIO* Z);
/* handle cases that cannot happen */
void luaU_badconstant (lua_State* L, const char* s, int i,
const TObject* o, const TProtoFunc* tf);
/* convert number from text */
double luaU_str2d (lua_State* L, const char* b, const char* where);
/* definitions for headers of binary files */
#define VERSION 0x32 /* last format change was in 3.2 */
#define VERSION0 0x32 /* last major change was in 3.2 */
#define VERSION 0x33 /* last format change was in 3.3 */
#define VERSION0 0x33 /* last major change was in 3.3 */
#define ID_CHUNK 27 /* binary files start with ESC... */
#define SIGNATURE "Lua" /* ...followed by this signature */
/* formats for error messages */
#define SOURCE "<%s:%d>"
#define SOURCE "<%.255s:%d>"
#define IN " in %p " SOURCE
#define INLOC tf,tf->source->str,tf->lineDefined