commit e68d0df1c6144551eedda90e0a99d850b1461df1
parent 9b38a696d5ccd6dd98685a74e8762a69e8722840
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 29 Apr 2002 09:37:19 -0300
function `zsopen' is not used
Diffstat:
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/lzio.c b/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
** 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;
}
-/* ------------------------------------------------------------ strings --- */
-
-ZIO* zsopen (ZIO* z, const char* s, const char *name) {
- if (s==NULL) return NULL;
- return zmopen(z, s, strlen(s), name);
-}
/* -------------------------------------------------------------- FILEs --- */
diff --git a/lzio.h b/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
** See Copyright Notice in lua.h
*/
@@ -14,7 +14,6 @@
/* For Lua only */
#define zFopen luaZ_Fopen
-#define zsopen luaZ_sopen
#define zmopen luaZ_mopen
#define zread luaZ_read
@@ -23,7 +22,6 @@
typedef struct zio ZIO;
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 */
size_t zread (ZIO* z, void* b, size_t n); /* read next n bytes */