diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-13 12:54:18 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-13 12:54:18 -0200 |
commit | 5e60b961deb0d70935c6b1ec6e92eb7b9f9be75b (patch) | |
tree | 9314a6ccf89fdf0dcfbd0d870967f61c45c3e565 /iolib.c | |
parent | e4645c835d2b2e49f0d39eb3069638f60da388cd (diff) | |
download | lua-5e60b961deb0d70935c6b1ec6e92eb7b9f9be75b.tar.gz lua-5e60b961deb0d70935c6b1ec6e92eb7b9f9be75b.tar.bz2 lua-5e60b961deb0d70935c6b1ec6e92eb7b9f9be75b.zip |
small changes to avoid shadowing
Diffstat (limited to 'iolib.c')
-rw-r--r-- | iolib.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Input/output library to LUA | 3 | ** Input/output library to LUA |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_iolib="$Id: iolib.c,v 1.13 1994/10/18 18:34:47 roberto Exp celes $"; | 6 | char *rcs_iolib="$Id: iolib.c,v 1.14 1994/10/19 17:02:20 celes Exp roberto $"; |
7 | 7 | ||
8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
9 | #include <string.h> | 9 | #include <string.h> |
@@ -187,7 +187,7 @@ static void io_read (void) | |||
187 | ; | 187 | ; |
188 | if (c == '\"') | 188 | if (c == '\"') |
189 | { | 189 | { |
190 | int c, n=0; | 190 | int n=0; |
191 | while((c = fgetc(in)) != '\"') | 191 | while((c = fgetc(in)) != '\"') |
192 | { | 192 | { |
193 | if (c == EOF) | 193 | if (c == EOF) |
@@ -201,7 +201,7 @@ static void io_read (void) | |||
201 | } | 201 | } |
202 | else if (c == '\'') | 202 | else if (c == '\'') |
203 | { | 203 | { |
204 | int c, n=0; | 204 | int n=0; |
205 | while((c = fgetc(in)) != '\'') | 205 | while((c = fgetc(in)) != '\'') |
206 | { | 206 | { |
207 | if (c == EOF) | 207 | if (c == EOF) |
@@ -269,9 +269,9 @@ static void io_read (void) | |||
269 | break; | 269 | break; |
270 | case 'f': case 'g': case 'e': | 270 | case 'f': case 'g': case 'e': |
271 | { | 271 | { |
272 | float f; | 272 | float fl; |
273 | sscanf (s, "%f", &f); | 273 | sscanf (s, "%f", &fl); |
274 | lua_pushnumber(f); | 274 | lua_pushnumber(fl); |
275 | } | 275 | } |
276 | break; | 276 | break; |
277 | default: | 277 | default: |