fix libmp
This commit is contained in:
parent
4bbd605e31
commit
fc83e9c7a7
@ -28,8 +28,8 @@
|
||||
#include "strings_index.h"
|
||||
#include "protos.h"
|
||||
|
||||
extern int madd proto_((MINT *a, MINT *b, MINT *c));
|
||||
extern int mout proto_((MINT *a));
|
||||
/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
|
||||
/* extern int mp_mout proto_((MINT *a)); */
|
||||
extern int opterr;
|
||||
extern char *optarg;
|
||||
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include "strings_index.h"
|
||||
#include "protos.h"
|
||||
|
||||
extern int madd proto_((MINT *a, MINT *b, MINT *c));
|
||||
extern int mout proto_((MINT *a));
|
||||
/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
|
||||
/* extern int mp_mout proto_((MINT *a)); */
|
||||
extern int opterr;
|
||||
extern char *optarg;
|
||||
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include "strings_index.h"
|
||||
#include "protos.h"
|
||||
|
||||
extern int madd proto_((MINT *a, MINT *b, MINT *c));
|
||||
extern int mout proto_((MINT *a));
|
||||
/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
|
||||
/* extern int mp_mout proto_((MINT *a)); */
|
||||
extern int opterr;
|
||||
extern char *optarg;
|
||||
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include "strings_index.h"
|
||||
#include "protos.h"
|
||||
|
||||
extern int madd proto_((MINT *a, MINT *b, MINT *c));
|
||||
extern int mout proto_((MINT *a));
|
||||
/* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
|
||||
/* extern int mp_mout proto_((MINT *a)); */
|
||||
extern int opterr;
|
||||
extern char *optarg;
|
||||
|
||||
@ -449,9 +449,9 @@ status_t stat_webindex(file_list)
|
||||
ptr_check(file_list, char*, "check_indiv", ERROR);
|
||||
|
||||
|
||||
urls_total = itom(0);
|
||||
indexed_urls_total = itom(0);
|
||||
keys_total = itom(0);
|
||||
urls_total = mp_itom(0);
|
||||
indexed_urls_total = mp_itom(0);
|
||||
keys_total = mp_itom(0);
|
||||
site_size_total = 0;
|
||||
excerpt_size_total = 0;
|
||||
|
||||
@ -608,12 +608,12 @@ status_t stat_webindex(file_list)
|
||||
indexed_urls_nums, keys_nums, doc_size);
|
||||
}
|
||||
|
||||
madd(keys_total, tmps = itom(keys_nums), keys_total);
|
||||
mfree(tmps);
|
||||
madd(urls_total, tmps = itom(urls_nums), urls_total);
|
||||
mfree(tmps);
|
||||
madd(indexed_urls_total, tmps = itom(indexed_urls_nums), indexed_urls_total);
|
||||
mfree(tmps);
|
||||
mp_madd(keys_total, tmps = mp_itom(keys_nums), keys_total);
|
||||
mp_mfree(tmps);
|
||||
mp_madd(urls_total, tmps = mp_itom(urls_nums), urls_total);
|
||||
mp_mfree(tmps);
|
||||
mp_madd(indexed_urls_total, tmps = mp_itom(indexed_urls_nums), indexed_urls_total);
|
||||
mp_mfree(tmps);
|
||||
|
||||
|
||||
|
||||
@ -628,8 +628,8 @@ status_t stat_webindex(file_list)
|
||||
|
||||
printf("\n\nTotals:\n\n");
|
||||
printf("Number of sites: %d\n",total_sites);
|
||||
printf("Number of urls: "); mout(urls_total);
|
||||
printf("Number of indexed urls: "); mout(indexed_urls_total);
|
||||
printf("Number of urls: "); mp_mout(urls_total);
|
||||
printf("Number of indexed urls: "); mp_mout(indexed_urls_total);
|
||||
printf("Total doc sizes: %ld\n", file_size);
|
||||
printf("Unique keys: %d\n",unique_keys);
|
||||
|
||||
@ -682,8 +682,8 @@ status_t stat_anonftp(file_list)
|
||||
ptr_check(file_list, char*, "check_indiv", ERROR);
|
||||
|
||||
|
||||
files_total = itom(0);
|
||||
dirs_total = itom(0);
|
||||
files_total = mp_itom(0);
|
||||
dirs_total = mp_itom(0);
|
||||
|
||||
total_sites = 0;
|
||||
|
||||
@ -766,10 +766,10 @@ status_t stat_anonftp(file_list)
|
||||
|
||||
}
|
||||
|
||||
madd(files_total, tmps = itom(files_nums), files_total);
|
||||
mfree(tmps);
|
||||
madd(dirs_total, tmps = itom(dirs_nums), dirs_total);
|
||||
mfree(tmps);
|
||||
mp_madd(files_total, tmps = mp_itom(files_nums), files_total);
|
||||
mp_mfree(tmps);
|
||||
mp_madd(dirs_total, tmps = mp_itom(dirs_nums), dirs_total);
|
||||
mp_mfree(tmps);
|
||||
|
||||
if(verbose){
|
||||
printf("%-26s %10ld %10ld %12ld\n", filename, files_nums, dirs_nums,
|
||||
@ -787,8 +787,8 @@ status_t stat_anonftp(file_list)
|
||||
|
||||
printf("\n\nTotals:\n\n");
|
||||
printf("Number of sites: %d\n",total_sites);
|
||||
printf("Number of files: "); mout(files_total);
|
||||
printf("Number of dirs: "); mout(dirs_total);
|
||||
printf("Number of files: "); mp_mout(files_total);
|
||||
printf("Number of dirs: "); mp_mout(dirs_total);
|
||||
printf("Unique files+dirs: %d\n",unique_files);
|
||||
|
||||
printf("\n\nDatabase stats:\n\n");
|
||||
|
Loading…
Reference in New Issue
Block a user