aboutsummaryrefslogtreecommitdiff
path: root/inout.c
diff options
context:
space:
mode:
Diffstat (limited to 'inout.c')
-rw-r--r--inout.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/inout.c b/inout.c
index 7587da56..7548e05e 100644
--- a/inout.c
+++ b/inout.c
@@ -4,7 +4,7 @@
4** facilities. 4** facilities.
5*/ 5*/
6 6
7char *rcs_inout="$Id: inout.c,v 1.1 1993/12/17 18:41:19 celes Exp roberto $"; 7char *rcs_inout="$Id: inout.c,v 1.2 1993/12/22 21:15:16 roberto Exp celes $";
8 8
9#include <stdio.h> 9#include <stdio.h>
10#include <string.h> 10#include <string.h>
@@ -13,6 +13,7 @@ char *rcs_inout="$Id: inout.c,v 1.1 1993/12/17 18:41:19 celes Exp roberto $";
13#include "hash.h" 13#include "hash.h"
14#include "inout.h" 14#include "inout.h"
15#include "table.h" 15#include "table.h"
16#include "tree.h"
16 17
17/* Exported variables */ 18/* Exported variables */
18int lua_linenumber; 19int lua_linenumber;
@@ -157,12 +158,12 @@ void lua_reportbug (char *s)
157 { 158 {
158 sprintf (strchr(msg,0), 159 sprintf (strchr(msg,0),
159 "\n\tin statement begining at line %d in function \"%s\" of file \"%s\"", 160 "\n\tin statement begining at line %d in function \"%s\" of file \"%s\"",
160 lua_debugline, s_name(funcstack[nfuncstack-1].function), 161 lua_debugline, lua_varname(funcstack[nfuncstack-1].function),
161 lua_file[funcstack[nfuncstack-1].file]); 162 lua_file[funcstack[nfuncstack-1].file]);
162 sprintf (strchr(msg,0), "\n\tactive stack\n"); 163 sprintf (strchr(msg,0), "\n\tactive stack\n");
163 for (i=nfuncstack-1; i>=0; i--) 164 for (i=nfuncstack-1; i>=0; i--)
164 sprintf (strchr(msg,0), "\t-> function \"%s\" of file \"%s\"\n", 165 sprintf (strchr(msg,0), "\t-> function \"%s\" of file \"%s\"\n",
165 s_name(funcstack[i].function), 166 lua_varname(funcstack[i].function),
166 lua_file[funcstack[i].file]); 167 lua_file[funcstack[i].file]);
167 } 168 }
168 else 169 else