diff options
| -rw-r--r-- | liolib.c | 4 | ||||
| -rw-r--r-- | llex.c | 4 | ||||
| -rw-r--r-- | lua.c | 3 | ||||
| -rw-r--r-- | lzio.c | 3 |
4 files changed, 8 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: liolib.c,v 1.48 1999/10/19 13:33:22 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.49 1999/10/26 11:00:12 roberto Exp roberto $ |
| 3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -608,7 +608,7 @@ static const struct luaL_reg iolibtag[] = { | |||
| 608 | 608 | ||
| 609 | 609 | ||
| 610 | static void openwithtags (void) { | 610 | static void openwithtags (void) { |
| 611 | int i; | 611 | unsigned int i; |
| 612 | int iotag = lua_newtag(); | 612 | int iotag = lua_newtag(); |
| 613 | lua_newtag(); /* alloc CLOSEDTAG: assume that CLOSEDTAG = iotag-1 */ | 613 | lua_newtag(); /* alloc CLOSEDTAG: assume that CLOSEDTAG = iotag-1 */ |
| 614 | for (i=0; i<sizeof(iolibtag)/sizeof(iolibtag[0]); i++) { | 614 | for (i=0; i<sizeof(iolibtag)/sizeof(iolibtag[0]); i++) { |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llex.c,v 1.41 1999/10/11 16:13:42 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.42 1999/10/19 13:33:22 roberto Exp roberto $ |
| 3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -34,7 +34,7 @@ static const char *const reserved [] = {"and", "do", "else", "elseif", "end", | |||
| 34 | 34 | ||
| 35 | 35 | ||
| 36 | void luaX_init (void) { | 36 | void luaX_init (void) { |
| 37 | int i; | 37 | unsigned int i; |
| 38 | for (i=0; i<(sizeof(reserved)/sizeof(reserved[0])); i++) { | 38 | for (i=0; i<(sizeof(reserved)/sizeof(reserved[0])); i++) { |
| 39 | TaggedString *ts = luaS_new(reserved[i]); | 39 | TaggedString *ts = luaS_new(reserved[i]); |
| 40 | ts->marked = (unsigned char)(RESERVEDMARK+i); /* reserved word */ | 40 | ts->marked = (unsigned char)(RESERVEDMARK+i); /* reserved word */ |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.c,v 1.22 1999/08/16 20:52:00 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.23 1999/08/18 17:40:54 roberto Exp roberto $ |
| 3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -45,6 +45,7 @@ static void lstop (void) { | |||
| 45 | 45 | ||
| 46 | 46 | ||
| 47 | static void laction (int i) { | 47 | static void laction (int i) { |
| 48 | (void)i; /* to avoid warnings */ | ||
| 48 | signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop, | 49 | signal(SIGINT, SIG_DFL); /* if another SIGINT happens before lstop, |
| 49 | terminate process (default action) */ | 50 | terminate process (default action) */ |
| 50 | old_linehook = lua_setlinehook((lua_LHFunction)lstop); | 51 | old_linehook = lua_setlinehook((lua_LHFunction)lstop); |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lzio.c,v 1.7 1999/03/05 13:15:50 roberto Exp roberto $ | 2 | ** $Id: lzio.c,v 1.8 1999/08/16 20:52:00 roberto Exp roberto $ |
| 3 | ** a generic input stream interface | 3 | ** a generic input stream interface |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -16,6 +16,7 @@ | |||
| 16 | /* ----------------------------------------------------- memory buffers --- */ | 16 | /* ----------------------------------------------------- memory buffers --- */ |
| 17 | 17 | ||
| 18 | static int zmfilbuf (ZIO* z) { | 18 | static int zmfilbuf (ZIO* z) { |
| 19 | (void)z; /* to avoid warnings */ | ||
| 19 | return EOZ; | 20 | return EOZ; |
| 20 | } | 21 | } |
| 21 | 22 | ||
