function `zsopen' is not used
This commit is contained in:
8
lzio.c
8
lzio.c
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lzio.c,v 1.14 2001/03/26 14:31:49 roberto Exp $
|
** $Id: lzio.c,v 1.15 2001/11/28 20:13:13 roberto Exp roberto $
|
||||||
** a generic input stream interface
|
** a generic input stream interface
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -33,12 +33,6 @@ ZIO* zmopen (ZIO* z, const char* b, size_t size, const char *name) {
|
|||||||
return z;
|
return z;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ strings --- */
|
|
||||||
|
|
||||||
ZIO* zsopen (ZIO* z, const char* s, const char *name) {
|
|
||||||
if (s==NULL) return NULL;
|
|
||||||
return zmopen(z, s, strlen(s), name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -------------------------------------------------------------- FILEs --- */
|
/* -------------------------------------------------------------- FILEs --- */
|
||||||
|
|
||||||
|
|||||||
4
lzio.h
4
lzio.h
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lzio.h,v 1.7 2000/10/20 16:36:32 roberto Exp roberto $
|
** $Id: lzio.h,v 1.8 2001/03/26 14:31:49 roberto Exp roberto $
|
||||||
** Buffered streams
|
** Buffered streams
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
/* For Lua only */
|
/* For Lua only */
|
||||||
#define zFopen luaZ_Fopen
|
#define zFopen luaZ_Fopen
|
||||||
#define zsopen luaZ_sopen
|
|
||||||
#define zmopen luaZ_mopen
|
#define zmopen luaZ_mopen
|
||||||
#define zread luaZ_read
|
#define zread luaZ_read
|
||||||
|
|
||||||
@@ -23,7 +22,6 @@
|
|||||||
typedef struct zio ZIO;
|
typedef struct zio ZIO;
|
||||||
|
|
||||||
ZIO* zFopen (ZIO* z, FILE* f, const char *name); /* open FILEs */
|
ZIO* zFopen (ZIO* z, FILE* f, const char *name); /* open FILEs */
|
||||||
ZIO* zsopen (ZIO* z, const char* s, const char *name); /* string */
|
|
||||||
ZIO* zmopen (ZIO* z, const char* b, size_t size, const char *name); /* memory */
|
ZIO* zmopen (ZIO* z, const char* b, size_t size, const char *name); /* memory */
|
||||||
|
|
||||||
size_t zread (ZIO* z, void* b, size_t n); /* read next n bytes */
|
size_t zread (ZIO* z, void* b, size_t n); /* read next n bytes */
|
||||||
|
|||||||
Reference in New Issue
Block a user