warnings/details

This commit is contained in:
Roberto Ierusalimschy
2001-07-21 21:59:36 -03:00
parent a94cba4b88
commit 45b173cbf8
5 changed files with 10 additions and 18 deletions

View File

@@ -1,11 +1,10 @@
/*
** $Id: liolib.c,v 1.119 2001/07/12 18:11:58 roberto Exp roberto $
** $Id: liolib.c,v 1.120 2001/07/16 18:48:31 roberto Exp roberto $
** Standard I/O (and system) library
** See Copyright Notice in lua.h
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -25,13 +24,6 @@
#endif
#ifndef l_realloc
#define l_malloc(s) malloc(s)
#define l_realloc(b,os,s) realloc(b, s)
#define l_free(b, os) free(b)
#endif
#ifdef POPEN
/* FILE *popen();
@@ -330,7 +322,7 @@ static int io_read (lua_State *L) {
success = 1; /* always success */
break;
case l_c('w'): /* word */
lua_error(L, "option `*w' is deprecated");
lua_error(L, l_s("option `*w' is deprecated"));
break;
case l_c('u'): { /* read until */
size_t pl = lua_strlen(L, n) - 2;