Subversion Repositories wimsdev

Rev

Rev 7676 | Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7676 Rev 8147
Line 23... Line 23...
23
#define buflim 1024*1024*16
23
#define buflim 1024*1024*16
24
 
24
 
25
/***************** Nothing should need change hereafter *****************/
25
/***************** Nothing should need change hereafter *****************/
26
 
26
 
27
#include "../wims.h"
27
#include "../wims.h"
-
 
28
#include "../Lib/libwims.h"
28
 
29
 
29
char filename[1024]="";
30
char filename[1024]="";
30
char *filebuf;
31
char *filebuf;
31
int filelen=0;
32
int filelen=0;
32
 
-
 
33
void *xmalloc(size_t n)
-
 
34
{
-
 
35
    void *p;
-
 
36
    p=malloc(n);
-
 
37
    if(p==NULL) exit(1);
-
 
38
    return p;
-
 
39
}
-
 
40
 
33
 
41
/* get the file */
34
/* get the file */
42
void prepare_file(void)
35
void prepare_file(void)
43
{
36
{
44
    FILE *f;
37
    FILE *f;