… | |
… | |
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.3 2002/02/10 22:47:18 root Exp $"; |
56 | char * uucheck_id = "$Id: uucheck.c,v 1.4 2002/03/31 20:04:30 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 | */ |
… | |
… | |
858 | UUkillfile (result); |
858 | UUkillfile (result); |
859 | return NULL; |
859 | return NULL; |
860 | } |
860 | } |
861 | lastvalid = 0; |
861 | lastvalid = 0; |
862 | } |
862 | } |
863 | else if (lastvalid && data->uudet == lastenc) { |
863 | else if (lastvalid && data->uudet == lastenc && result->partno == -1) { |
864 | result->subfname = FP_strdup (uucheck_lastname); |
864 | result->subfname = FP_strdup (uucheck_lastname); |
865 | result->partno = ++lastpart; |
865 | result->partno = ++lastpart; |
866 | |
866 | |
867 | /* |
867 | /* |
868 | * if it's the last part, invalidate lastvalid |
868 | * if it's the last part, invalidate lastvalid |
869 | */ |
869 | */ |
870 | if (data->end || (data->partno && data->partno == data->maxpno)) |
870 | if (data->end || (data->partno && data->partno == data->maxpno)) |
871 | lastvalid = 0; |
871 | lastvalid = 0; |
|
|
872 | } |
|
|
873 | else if (data->partno != -1 && result->filename) { |
|
|
874 | result->subfname = FP_strdup (result->filename); |
872 | } |
875 | } |
873 | else { |
876 | else { |
874 | /* |
877 | /* |
875 | * it's got no info, it's got no begin, and we don't know anything |
878 | * it's got no info, it's got no begin, and we don't know anything |
876 | * about this part. Let's forget all about it. |
879 | * about this part. Let's forget all about it. |