diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-09-13 16:42:02 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-09-13 16:42:02 -0300 |
| commit | a8a75fb7ab8e53c9f4203d36cb9d9a1000a1be68 (patch) | |
| tree | 1ac4b837433c4d0a95b85c393507f525215d0173 /liolib.c | |
| parent | ae3ecc2d4a5b108efbb2bd3db9f8e902f28de21d (diff) | |
| download | lua-a8a75fb7ab8e53c9f4203d36cb9d9a1000a1be68.tar.gz lua-a8a75fb7ab8e53c9f4203d36cb9d9a1000a1be68.tar.bz2 lua-a8a75fb7ab8e53c9f4203d36cb9d9a1000a1be68.zip | |
details
Diffstat (limited to 'liolib.c')
| -rw-r--r-- | liolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: liolib.c,v 1.43 1999/08/10 13:05:16 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.44 1999/08/16 20:52:00 roberto Exp roberto $ |
| 3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -287,7 +287,7 @@ static int read_number (FILE *f) { | |||
| 287 | } | 287 | } |
| 288 | 288 | ||
| 289 | 289 | ||
| 290 | #define HUNK_LINE 1024 | 290 | #define HUNK_LINE 256 |
| 291 | #define HUNK_FILE BUFSIZ | 291 | #define HUNK_FILE BUFSIZ |
| 292 | 292 | ||
| 293 | static int read_line (FILE *f) { | 293 | static int read_line (FILE *f) { |
| @@ -358,7 +358,7 @@ static void io_write (void) { | |||
| 358 | const char *s; | 358 | const char *s; |
| 359 | long l; | 359 | long l; |
| 360 | while ((s = luaL_opt_lstr(arg++, NULL, &l)) != NULL) | 360 | while ((s = luaL_opt_lstr(arg++, NULL, &l)) != NULL) |
| 361 | status = status && ((long)fwrite(s, 1, l, f) == l); | 361 | status = status && ((long)fwrite(s, sizeof(char), l, f) == l); |
| 362 | pushresult(status); | 362 | pushresult(status); |
| 363 | } | 363 | } |
| 364 | 364 | ||
