diff options
Diffstat (limited to 'auxlib.c')
-rw-r--r-- | auxlib.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,13 +1,25 @@ | |||
1 | char *rcs_auxlib="$Id: auxlib.c,v 1.2 1997/03/18 15:30:50 roberto Exp roberto $"; | 1 | char *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 | |||
13 | int 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 | |||
11 | void luaL_arg_check(int cond, int numarg, char *extramsg) | 23 | void luaL_arg_check(int cond, int numarg, char *extramsg) |
12 | { | 24 | { |
13 | char *funcname; | 25 | char *funcname; |