aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lzio.c8
-rw-r--r--lzio.h4
2 files changed, 2 insertions, 10 deletions
diff --git a/lzio.c b/lzio.c
index 208bdb8b..6bbe6982 100644
--- a/lzio.c
+++ b/lzio.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.c,v 1.14 2001/03/26 14:31:49 roberto Exp $ 2** $Id: lzio.c,v 1.15 2001/11/28 20:13:13 roberto Exp roberto $
3** a generic input stream interface 3** a generic input stream interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -33,12 +33,6 @@ ZIO* zmopen (ZIO* z, const char* b, size_t size, const char *name) {
33 return z; 33 return z;
34} 34}
35 35
36/* ------------------------------------------------------------ strings --- */
37
38ZIO* zsopen (ZIO* z, const char* s, const char *name) {
39 if (s==NULL) return NULL;
40 return zmopen(z, s, strlen(s), name);
41}
42 36
43/* -------------------------------------------------------------- FILEs --- */ 37/* -------------------------------------------------------------- FILEs --- */
44 38
diff --git a/lzio.h b/lzio.h
index 437ac1d2..283fdc38 100644
--- a/lzio.h
+++ b/lzio.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.h,v 1.7 2000/10/20 16:36:32 roberto Exp roberto $ 2** $Id: lzio.h,v 1.8 2001/03/26 14:31:49 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*/
@@ -14,7 +14,6 @@
14 14
15/* For Lua only */ 15/* For Lua only */
16#define zFopen luaZ_Fopen 16#define zFopen luaZ_Fopen
17#define zsopen luaZ_sopen
18#define zmopen luaZ_mopen 17#define zmopen luaZ_mopen
19#define zread luaZ_read 18#define zread luaZ_read
20 19
@@ -23,7 +22,6 @@
23typedef struct zio ZIO; 22typedef struct zio ZIO;
24 23
25ZIO* zFopen (ZIO* z, FILE* f, const char *name); /* open FILEs */ 24ZIO* zFopen (ZIO* z, FILE* f, const char *name); /* open FILEs */
26ZIO* zsopen (ZIO* z, const char* s, const char *name); /* string */
27ZIO* zmopen (ZIO* z, const char* b, size_t size, const char *name); /* memory */ 25ZIO* zmopen (ZIO* z, const char* b, size_t size, const char *name); /* memory */
28 26
29size_t zread (ZIO* z, void* b, size_t n); /* read next n bytes */ 27size_t zread (ZIO* z, void* b, size_t n); /* read next n bytes */