diff options
| author | Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> | 1996-11-16 18:14:23 -0200 |
|---|---|---|
| committer | Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> | 1996-11-16 18:14:23 -0200 |
| commit | 62aa717f7eb522e7674b01720ec3ba73f84ccb07 (patch) | |
| tree | de24b49667e17b52489f14d2f80edf1c3672f367 /undump.c | |
| parent | a5614eae3c4cddb055f06a6918172bb6bce7c702 (diff) | |
| download | lua-62aa717f7eb522e7674b01720ec3ba73f84ccb07.tar.gz lua-62aa717f7eb522e7674b01720ec3ba73f84ccb07.tar.bz2 lua-62aa717f7eb522e7674b01720ec3ba73f84ccb07.zip | |
stdlib.h for exit
blocks are void*
Diffstat (limited to 'undump.c')
| -rw-r--r-- | undump.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char* rcs_undump="$Id: undump.c,v 1.18 1996/11/14 13:33:15 lhf Exp lhf $"; | 6 | char* rcs_undump="$Id: undump.c,v 1.19 1996/11/14 15:00:32 lhf Exp lhf $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -172,9 +172,9 @@ static int LoadSize(FILE* D) | |||
| 172 | return s; | 172 | return s; |
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | static char* LoadBlock(int size, FILE* D) | 175 | static void* LoadBlock(int size, FILE* D) |
| 176 | { | 176 | { |
| 177 | char* b=luaI_malloc(size); | 177 | void* b=luaI_malloc(size); |
| 178 | fread(b,size,1,D); | 178 | fread(b,size,1,D); |
| 179 | return b; | 179 | return b; |
| 180 | } | 180 | } |
