aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-07-21 21:59:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-07-21 21:59:36 -0300
commit45b173cbf89597123267a69bace778cf498d6c98 (patch)
tree561573acd810544ba8c743df0335e5fbe64f302c
parenta94cba4b88a940cba7a35244b8a1b393f33a905c (diff)
downloadlua-45b173cbf89597123267a69bace778cf498d6c98.tar.gz
lua-45b173cbf89597123267a69bace778cf498d6c98.tar.bz2
lua-45b173cbf89597123267a69bace778cf498d6c98.zip
warnings/details
-rw-r--r--lapi.c4
-rw-r--r--lauxlib.h4
-rw-r--r--liolib.c12
-rw-r--r--llex.c4
-rw-r--r--llex.h4
5 files changed, 10 insertions, 18 deletions
diff --git a/lapi.c b/lapi.c
index 0d23b4c3..60877553 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.147 2001/06/26 13:20:45 roberto Exp roberto $ 2** $Id: lapi.c,v 1.148 2001/07/12 18:11:58 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -489,7 +489,7 @@ LUA_API int lua_ref (lua_State *L, int lock) {
489 lua_rawseti(L, -2, ref); 489 lua_rawseti(L, -2, ref);
490 lua_pop(L, 1); /* remove registry */ 490 lua_pop(L, 1); /* remove registry */
491 } 491 }
492 lua_pushliteral(L, "n"); 492 lua_pushliteral(L, l_s("n"));
493 lua_pushnumber(L, ref); 493 lua_pushnumber(L, ref);
494 lua_settable(L, -3); 494 lua_settable(L, -3);
495 lua_pop(L, 2); 495 lua_pop(L, 2);
diff --git a/lauxlib.h b/lauxlib.h
index 9f75f741..eef34860 100644
--- a/lauxlib.h
+++ b/lauxlib.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.h,v 1.34 2001/02/23 17:17:25 roberto Exp roberto $ 2** $Id: lauxlib.h,v 1.35 2001/04/06 21:17:37 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -85,7 +85,7 @@ typedef struct luaL_Buffer {
85} luaL_Buffer; 85} luaL_Buffer;
86 86
87#define luaL_putchar(B,c) \ 87#define luaL_putchar(B,c) \
88 ((void)((B)->p < &(B)->buffer[LUAL_BUFFERSIZE] || luaL_prepbuffer(B)), \ 88 ((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \
89 (*(B)->p++ = (lua_char)(c))) 89 (*(B)->p++ = (lua_char)(c)))
90 90
91#define luaL_addsize(B,n) ((B)->p += (n)) 91#define luaL_addsize(B,n) ((B)->p += (n))
diff --git a/liolib.c b/liolib.c
index 942e9388..0d9c6b3e 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,11 +1,10 @@
1/* 1/*
2** $Id: liolib.c,v 1.119 2001/07/12 18:11:58 roberto Exp roberto $ 2** $Id: liolib.c,v 1.120 2001/07/16 18:48:31 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*/
6 6
7 7
8#include <ctype.h>
9#include <stdio.h> 8#include <stdio.h>
10#include <stdlib.h> 9#include <stdlib.h>
11#include <string.h> 10#include <string.h>
@@ -25,13 +24,6 @@
25#endif 24#endif
26 25
27 26
28#ifndef l_realloc
29#define l_malloc(s) malloc(s)
30#define l_realloc(b,os,s) realloc(b, s)
31#define l_free(b, os) free(b)
32#endif
33
34
35 27
36#ifdef POPEN 28#ifdef POPEN
37/* FILE *popen(); 29/* FILE *popen();
@@ -330,7 +322,7 @@ static int io_read (lua_State *L) {
330 success = 1; /* always success */ 322 success = 1; /* always success */
331 break; 323 break;
332 case l_c('w'): /* word */ 324 case l_c('w'): /* word */
333 lua_error(L, "option `*w' is deprecated"); 325 lua_error(L, l_s("option `*w' is deprecated"));
334 break; 326 break;
335 case l_c('u'): { /* read until */ 327 case l_c('u'): { /* read until */
336 size_t pl = lua_strlen(L, n) - 2; 328 size_t pl = lua_strlen(L, n) - 2;
diff --git a/llex.c b/llex.c
index 6ca4ef75..68627f13 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.87 2001/06/15 20:36:57 roberto Exp roberto $ 2** $Id: llex.c,v 1.88 2001/06/20 21:07:57 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*/
@@ -377,7 +377,7 @@ int luaX_lex (LexState *LS, SemInfo *seminfo) {
377 return TK_NAME; 377 return TK_NAME;
378 } 378 }
379 else { 379 else {
380 int c = LS->current; 380 l_charint c = LS->current;
381 if (iscntrl(c)) 381 if (iscntrl(c))
382 luaX_invalidchar(LS, c); 382 luaX_invalidchar(LS, c);
383 next(LS); 383 next(LS);
diff --git a/llex.h b/llex.h
index 6d0cba47..f4577551 100644
--- a/llex.h
+++ b/llex.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.h,v 1.35 2001/03/06 14:46:54 roberto Exp roberto $ 2** $Id: llex.h,v 1.36 2001/06/20 21:07:57 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*/
@@ -49,7 +49,7 @@ typedef struct Token {
49 49
50 50
51typedef struct LexState { 51typedef struct LexState {
52 int current; /* current character */ 52 l_charint current; /* current character */
53 Token t; /* current token */ 53 Token t; /* current token */
54 Token lookahead; /* look ahead token */ 54 Token lookahead; /* look ahead token */
55 struct FuncState *fs; /* `FuncState' is private to the parser */ 55 struct FuncState *fs; /* `FuncState' is private to the parser */