… | |
… | |
51 | #include <uudeview.h> |
51 | #include <uudeview.h> |
52 | #include <uuint.h> |
52 | #include <uuint.h> |
53 | #include <fptools.h> |
53 | #include <fptools.h> |
54 | #include <uustring.h> |
54 | #include <uustring.h> |
55 | |
55 | |
56 | char * uucheck_id = "$Id: uucheck.c,v 1.9 2004/12/28 14:09:19 root Exp $"; |
56 | char * uucheck_id = "$Id: uucheck.c,v 1.10 2006/12/10 16:44:00 root Exp $"; |
57 | |
57 | |
58 | /* |
58 | /* |
59 | * Arbitrary number. This is the maximum number of part numbers we |
59 | * Arbitrary number. This is the maximum number of part numbers we |
60 | * store for our have-parts and missing-parts lists |
60 | * store for our have-parts and missing-parts lists |
61 | */ |
61 | */ |
… | |
… | |
1227 | } |
1227 | } |
1228 | } |
1228 | } |
1229 | else |
1229 | else |
1230 | unew->mimetype = NULL; |
1230 | unew->mimetype = NULL; |
1231 | |
1231 | |
|
|
1232 | { |
|
|
1233 | static uulist uulist_new; |
|
|
1234 | *unew = uulist_new; /* zero-initialise the structure */ |
|
|
1235 | } |
|
|
1236 | |
1232 | unew->state = UUFILE_READ; |
1237 | unew->state = UUFILE_READ; |
1233 | unew->binfile = NULL; |
|
|
1234 | unew->thisfile = data; |
1238 | unew->thisfile = data; |
1235 | unew->mode = data->data->mode; |
1239 | unew->mode = data->data->mode; |
1236 | unew->uudet = data->data->uudet; |
1240 | unew->uudet = data->data->uudet; |
1237 | unew->flags = data->data->flags; |
1241 | unew->flags = data->data->flags; |
1238 | unew->begin = (data->data->begin) ? ((data->partno)?data->partno:1) : 0; |
1242 | unew->begin = data->data->begin ? (data->partno ? data->partno : 1) : 0; |
1239 | unew->end = (data->data->end) ? ((data->partno)?data->partno:1) : 0; |
1243 | unew->end = data->data->end ? (data->partno ? data->partno : 1) : 0; |
1240 | unew->misparts = NULL; |
|
|
1241 | unew->haveparts = NULL; |
|
|
1242 | unew->NEXT = NULL; |
|
|
1243 | |
1244 | |
1244 | if (iter == NULL) |
1245 | if (iter == NULL) |
1245 | UUGlobalFileList = unew; |
1246 | UUGlobalFileList = unew; |
1246 | else |
1247 | else |
1247 | iter->NEXT = unew; |
1248 | iter->NEXT = unew; |