version 1.228, 2000/02/10 14:26:41
|
version 1.229, 2000/02/10 17:03:14
|
Line 2577 char *value;
|
Line 2577 char *value;
|
} |
} |
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
GetFileSize |
QGetFileSize |
Returns 0 and the filesize in the 2nd parameter. |
Returns 0 and the filesize in the 2nd parameter. |
Otherwise, returns -1. |
Otherwise, returns -1. |
---------------------------------------------------------------------*/ |
---------------------------------------------------------------------*/ |
|
|
#ifdef __STDC__ |
#ifdef __STDC__ |
static ThotBool GetFileSize (char *fileName, unsigned long *file_size) |
static ThotBool QGetFileSize (char *fileName, unsigned long *file_size) |
#else |
#else |
static ThotBool GetFileSize (fileName, file_size) |
static ThotBool QGetFileSize (fileName, file_size) |
char *fileName; |
char *fileName; |
unsigned long *file_size; |
unsigned long *file_size; |
#endif /* __STDC__ */ |
#endif /* __STDC__ */ |
Line 2957 STRING content_type;
|
Line 2957 STRING content_type;
|
/* @@@ a very ugly patch :))) |
/* @@@ a very ugly patch :))) |
I'm copying here some of the functionality I use in the PUT |
I'm copying here some of the functionality I use in the PUT |
I need to put the common parts in another module */ |
I need to put the common parts in another module */ |
GetFileSize (WideChar2ISO (formdata), &filesize); |
QGetFileSize (WideChar2ISO (formdata), &filesize); |
filesize = filesize + strlen ("w3c_annotate="); |
filesize = filesize + strlen ("w3c_annotate="); |
me->block_size = filesize; |
me->block_size = filesize; |
|
|
Line 3134 void *context_tcbf;
|
Line 3134 void *context_tcbf;
|
} |
} |
|
|
/* get the size of the file */ |
/* get the size of the file */ |
if (GetFileSize (fileName, &file_size) || file_size == 0) |
if (QGetFileSize (fileName, &file_size) || file_size == 0) |
{ |
{ |
/* file was empty */ |
/* file was empty */ |
/*errmsg here */ |
/*errmsg here */ |