details ('Type* id' -> 'Type *id')

This commit is contained in:
Roberto Ierusalimschy 2013-06-07 11:51:10 -03:00
parent 6fb0b11350
commit c5069528e1
3 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
** $Id: lstrlib.c,v 1.178 2012/08/14 18:12:34 roberto Exp roberto $
** $Id: lstrlib.c,v 1.179 2013/04/25 13:52:13 roberto Exp roberto $
** Standard library for string operations and pattern-matching
** See Copyright Notice in lua.h
*/
@ -164,9 +164,9 @@ static int str_char (lua_State *L) {
}
static int writer (lua_State *L, const void* b, size_t size, void* B) {
static int writer (lua_State *L, const void *b, size_t size, void *B) {
(void)L;
luaL_addlstring((luaL_Buffer*) B, (const char *)b, size);
luaL_addlstring((luaL_Buffer *) B, (const char *)b, size);
return 0;
}

4
lua.h
View File

@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.288 2013/04/26 15:39:25 roberto Exp roberto $
** $Id: lua.h,v 1.289 2013/05/14 16:00:11 roberto Exp roberto $
** Lua - A Scripting Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
@ -61,7 +61,7 @@ typedef int (*lua_CFunction) (lua_State *L);
*/
typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz);
typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud);
typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud);
/*

6
lzio.h
View File

@ -1,5 +1,5 @@
/*
** $Id: lzio.h,v 1.25 2011/07/15 12:35:32 roberto Exp roberto $
** $Id: lzio.h,v 1.26 2011/07/15 12:48:03 roberto Exp roberto $
** Buffered streams
** See Copyright Notice in lua.h
*/
@ -45,7 +45,7 @@ typedef struct Mbuffer {
LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader,
void *data);
LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */
LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */
@ -55,7 +55,7 @@ struct Zio {
size_t n; /* bytes still unread */
const char *p; /* current position in buffer */
lua_Reader reader; /* reader function */
void* data; /* additional data */
void *data; /* additional data */
lua_State *L; /* Lua state (for reader) */
};