aboutsummaryrefslogtreecommitdiff
path: root/auxlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'auxlib.c')
-rw-r--r--auxlib.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/auxlib.c b/auxlib.c
index 83087572..1c967c71 100644
--- a/auxlib.c
+++ b/auxlib.c
@@ -1,13 +1,25 @@
1char *rcs_auxlib="$Id: auxlib.c,v 1.2 1997/03/18 15:30:50 roberto Exp roberto $"; 1char *rcs_auxlib="$Id: auxlib.c,v 1.3 1997/04/06 14:08:08 roberto Exp roberto $";
2 2
3#include <stdio.h> 3#include <stdio.h>
4#include <stdarg.h> 4#include <stdarg.h>
5#include <string.h>
5 6
6#include "lua.h" 7#include "lua.h"
7#include "auxlib.h" 8#include "auxlib.h"
8#include "luadebug.h" 9#include "luadebug.h"
9 10
10 11
12
13int luaI_findstring (char *name, char *list[])
14{
15 int i;
16 for (i=0; list[i]; i++)
17 if (strcmp(list[i], name) == 0)
18 return i;
19 return -1; /* name not found */
20}
21
22
11void luaL_arg_check(int cond, int numarg, char *extramsg) 23void luaL_arg_check(int cond, int numarg, char *extramsg)
12{ 24{
13 char *funcname; 25 char *funcname;