diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-07 11:51:10 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-06-07 11:51:10 -0300 |
| commit | c5069528e1da3d4651f167011404bcf388ba1c71 (patch) | |
| tree | de0df5cad9b45a58fed1c60e7c31cc3eb5ded461 | |
| parent | 6fb0b1135090b1e4543438c56ae3e444abb5477d (diff) | |
| download | lua-c5069528e1da3d4651f167011404bcf388ba1c71.tar.gz lua-c5069528e1da3d4651f167011404bcf388ba1c71.tar.bz2 lua-c5069528e1da3d4651f167011404bcf388ba1c71.zip | |
details ('Type* id' -> 'Type *id')
| -rw-r--r-- | lstrlib.c | 6 | ||||
| -rw-r--r-- | lua.h | 4 | ||||
| -rw-r--r-- | lzio.h | 6 |
3 files changed, 8 insertions, 8 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.178 2012/08/14 18:12:34 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.179 2013/04/25 13:52:13 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -164,9 +164,9 @@ static int str_char (lua_State *L) { | |||
| 164 | } | 164 | } |
| 165 | 165 | ||
| 166 | 166 | ||
| 167 | static int writer (lua_State *L, const void* b, size_t size, void* B) { | 167 | static int writer (lua_State *L, const void *b, size_t size, void *B) { |
| 168 | (void)L; | 168 | (void)L; |
| 169 | luaL_addlstring((luaL_Buffer*) B, (const char *)b, size); | 169 | luaL_addlstring((luaL_Buffer *) B, (const char *)b, size); |
| 170 | return 0; | 170 | return 0; |
| 171 | } | 171 | } |
| 172 | 172 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.288 2013/04/26 15:39:25 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.289 2013/05/14 16:00:11 roberto Exp roberto $ |
| 3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
| 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
| 5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
| @@ -61,7 +61,7 @@ typedef int (*lua_CFunction) (lua_State *L); | |||
| 61 | */ | 61 | */ |
| 62 | typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); | 62 | typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); |
| 63 | 63 | ||
| 64 | typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); | 64 | typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud); |
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | /* | 67 | /* |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lzio.h,v 1.25 2011/07/15 12:35:32 roberto Exp roberto $ | 2 | ** $Id: lzio.h,v 1.26 2011/07/15 12:48:03 roberto Exp roberto $ |
| 3 | ** Buffered streams | 3 | ** Buffered streams |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -45,7 +45,7 @@ typedef struct Mbuffer { | |||
| 45 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); | 45 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); |
| 46 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, | 46 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, |
| 47 | void *data); | 47 | void *data); |
| 48 | LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ | 48 | LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */ |
| 49 | 49 | ||
| 50 | 50 | ||
| 51 | 51 | ||
| @@ -55,7 +55,7 @@ struct Zio { | |||
| 55 | size_t n; /* bytes still unread */ | 55 | size_t n; /* bytes still unread */ |
| 56 | const char *p; /* current position in buffer */ | 56 | const char *p; /* current position in buffer */ |
| 57 | lua_Reader reader; /* reader function */ | 57 | lua_Reader reader; /* reader function */ |
| 58 | void* data; /* additional data */ | 58 | void *data; /* additional data */ |
| 59 | lua_State *L; /* Lua state (for reader) */ | 59 | lua_State *L; /* Lua state (for reader) */ |
| 60 | }; | 60 | }; |
| 61 | 61 | ||
