Skip to content

Commit

Permalink
internal names
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-ieru committed Aug 5, 2002
1 parent 4e23699 commit 0b3d380
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lundump.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: lundump.c,v 1.41 2002/06/06 13:22:56 lhf Exp lhf $
** $Id: lundump.c,v 1.50 2002/06/17 13:51:01 roberto Exp roberto $
** load pre-compiled Lua chunks
** See Copyright Notice in lua.h
*/
Expand Down Expand Up @@ -41,7 +41,7 @@ static int ezgetc (lua_State* L, ZIO* Z)

static void ezread (lua_State* L, ZIO* Z, void* b, int n)
{
int r=zread(Z,b,n);
int r=luaZ_read(Z,b,n);
if (r!=0) unexpectedEOZ(L,Z);
}

Expand Down
4 changes: 2 additions & 2 deletions lzio.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: lzio.c,v 1.18 2002/06/03 20:11:07 roberto Exp roberto $
** $Id: lzio.c,v 1.19 2002/06/06 12:40:22 roberto Exp roberto $
** a generic input stream interface
** See Copyright Notice in lua.h
*/
Expand Down Expand Up @@ -45,7 +45,7 @@ void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name) {


/* --------------------------------------------------------------- read --- */
size_t luaZ_zread (ZIO *z, void *b, size_t n) {
size_t luaZ_read (ZIO *z, void *b, size_t n) {
while (n) {
size_t m;
if (z->n == 0) {
Expand Down
7 changes: 2 additions & 5 deletions lzio.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** $Id: lzio.h,v 1.11 2002/06/03 20:11:07 roberto Exp roberto $
** $Id: lzio.h,v 1.12 2002/06/06 12:40:22 roberto Exp roberto $
** Buffered streams
** See Copyright Notice in lua.h
*/
Expand All @@ -11,9 +11,6 @@
#include "lua.h"


/* For Lua only */
#define zread luaZ_zread

#define EOZ (-1) /* end of stream */

typedef struct zio ZIO;
Expand All @@ -25,7 +22,7 @@ typedef struct zio ZIO;
#define zname(z) ((z)->name)

void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name);
size_t luaZ_zread (ZIO* z, void* b, size_t n); /* read next n bytes */
size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */
int luaZ_lookahead (ZIO *z);


Expand Down

0 comments on commit 0b3d380

Please sign in to comment.