瀏覽代碼

last changes by lhf.

Roberto Ierusalimschy 25 年之前
父節點
當前提交
523c5d8e1c
共有 3 個文件被更改,包括 224 次插入193 次删除
  1. 2 2
      lundump.c
  2. 5 5
      lundump.h
  3. 217 186
      manual.tex

+ 2 - 2
lundump.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lundump.c,v 1.32 2000/09/21 03:15:36 lhf Exp lhf $
+** $Id: lundump.c,v 1.33 2000/10/31 16:57:23 lhf Exp $
 ** load bytecodes from files
 ** See Copyright Notice in lua.h
 */
@@ -178,7 +178,7 @@ static void TestSize (lua_State* L, int s, const char* what, ZIO* Z)
  int r=ezgetc(L,Z);
  if (r!=s)
   luaO_verror(L,"virtual machine mismatch in `%.99s':\n"
-	"  %s is %d but read %d",ZNAME(Z),what,s,r);
+	"  %.20s is %d but read %d",ZNAME(Z),what,s,r);
 }
 
 #define TESTSIZE(s)	TestSize(L,s,#s,Z)

+ 5 - 5
lundump.h

@@ -1,5 +1,5 @@
 /*
-** $Id: lundump.h,v 1.20 2000/09/18 20:03:46 lhf Exp lhf $
+** $Id: lundump.h,v 1.21 2000/10/31 16:57:23 lhf Exp $
 ** load pre-compiled Lua chunks
 ** See Copyright Notice in lua.h
 */
@@ -23,10 +23,10 @@ int luaU_endianess (void);
 #define	SIGNATURE	"Lua"		/* ...followed by this signature */
 
 /* formats for error messages */
-#define xSOURCE		"<%d:%.255s>"
-#define SOURCE		"<%.255s:%d>"
-#define IN		" in %p " SOURCE
-#define INLOC		tf,tf->source->str,tf->lineDefined
+#define SOURCE_FMT	"<%d:%.99s>"
+#define SOURCE		tf->lineDefined,tf->source->str
+#define IN_FMT		" in %p " SOURCE_FMT
+#define IN		tf,SOURCE
 
 /* a multiple of PI for testing native format */
 /* multiplying by 1E8 gives non-trivial integer values */

File diff suppressed because it is too large
+ 217 - 186
manual.tex


Some files were not shown because too many files changed in this diff