aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-09-25 09:57:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-09-25 09:57:22 -0300
commit2a506ea9d2ed9531352c91a4930bf80549e2e495 (patch)
tree88e3eaae9e9cc5d77615b568964ea07afedaff52
parente5ec547eb36090bb884378a23743a60e4f9f8bb7 (diff)
downloadlua-2a506ea9d2ed9531352c91a4930bf80549e2e495.tar.gz
lua-2a506ea9d2ed9531352c91a4930bf80549e2e495.tar.bz2
lua-2a506ea9d2ed9531352c91a4930bf80549e2e495.zip
lua_linenumber is initialized in lex.c
-rw-r--r--inout.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/inout.c b/inout.c
index 978e3579..0f79b9c7 100644
--- a/inout.c
+++ b/inout.c
@@ -5,7 +5,7 @@
5** Also provides some predefined lua functions. 5** Also provides some predefined lua functions.
6*/ 6*/
7 7
8char *rcs_inout="$Id: inout.c,v 2.41 1996/09/24 17:30:28 roberto Exp roberto $"; 8char *rcs_inout="$Id: inout.c,v 2.42 1996/09/24 21:46:44 roberto Exp roberto $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <string.h> 11#include <string.h>
@@ -60,7 +60,6 @@ FILE *lua_openfile (char *fn)
60 fp = fopen (fn, "r"); 60 fp = fopen (fn, "r");
61 if (fp == NULL) 61 if (fp == NULL)
62 return NULL; 62 return NULL;
63 lua_linenumber = 1;
64 lua_parsedfile = luaI_createfixedstring(fn)->str; 63 lua_parsedfile = luaI_createfixedstring(fn)->str;
65 return fp; 64 return fp;
66} 65}
@@ -86,7 +85,6 @@ void lua_openstring (char *s)
86 char buff[SIZE_PREF+25]; 85 char buff[SIZE_PREF+25];
87 lua_setinput(stringinput); 86 lua_setinput(stringinput);
88 st = s; 87 st = s;
89 lua_linenumber = 1;
90 strcpy(buff, "(dostring) >> "); 88 strcpy(buff, "(dostring) >> ");
91 strncat(buff, s, SIZE_PREF); 89 strncat(buff, s, SIZE_PREF);
92 if (strlen(s) > SIZE_PREF) strcat(buff, "..."); 90 if (strlen(s) > SIZE_PREF) strcat(buff, "...");