fix libmp

This commit is contained in:
Mario Fetka 2024-05-27 23:42:32 +02:00
parent 4bbd605e31
commit fc83e9c7a7
4 changed files with 27 additions and 27 deletions

View File

@ -28,8 +28,8 @@
#include "strings_index.h" #include "strings_index.h"
#include "protos.h" #include "protos.h"
extern int madd proto_((MINT *a, MINT *b, MINT *c)); /* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
extern int mout proto_((MINT *a)); /* extern int mp_mout proto_((MINT *a)); */
extern int opterr; extern int opterr;
extern char *optarg; extern char *optarg;

View File

@ -28,8 +28,8 @@
#include "strings_index.h" #include "strings_index.h"
#include "protos.h" #include "protos.h"
extern int madd proto_((MINT *a, MINT *b, MINT *c)); /* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
extern int mout proto_((MINT *a)); /* extern int mp_mout proto_((MINT *a)); */
extern int opterr; extern int opterr;
extern char *optarg; extern char *optarg;

View File

@ -28,8 +28,8 @@
#include "strings_index.h" #include "strings_index.h"
#include "protos.h" #include "protos.h"
extern int madd proto_((MINT *a, MINT *b, MINT *c)); /* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
extern int mout proto_((MINT *a)); /* extern int mp_mout proto_((MINT *a)); */
extern int opterr; extern int opterr;
extern char *optarg; extern char *optarg;

View File

@ -28,8 +28,8 @@
#include "strings_index.h" #include "strings_index.h"
#include "protos.h" #include "protos.h"
extern int madd proto_((MINT *a, MINT *b, MINT *c)); /* extern int mp_madd proto_((MINT *a, MINT *b, MINT *c)); */
extern int mout proto_((MINT *a)); /* extern int mp_mout proto_((MINT *a)); */
extern int opterr; extern int opterr;
extern char *optarg; extern char *optarg;
@ -449,9 +449,9 @@ status_t stat_webindex(file_list)
ptr_check(file_list, char*, "check_indiv", ERROR); ptr_check(file_list, char*, "check_indiv", ERROR);
urls_total = itom(0); urls_total = mp_itom(0);
indexed_urls_total = itom(0); indexed_urls_total = mp_itom(0);
keys_total = itom(0); keys_total = mp_itom(0);
site_size_total = 0; site_size_total = 0;
excerpt_size_total = 0; excerpt_size_total = 0;
@ -608,12 +608,12 @@ status_t stat_webindex(file_list)
indexed_urls_nums, keys_nums, doc_size); indexed_urls_nums, keys_nums, doc_size);
} }
madd(keys_total, tmps = itom(keys_nums), keys_total); mp_madd(keys_total, tmps = mp_itom(keys_nums), keys_total);
mfree(tmps); mp_mfree(tmps);
madd(urls_total, tmps = itom(urls_nums), urls_total); mp_madd(urls_total, tmps = mp_itom(urls_nums), urls_total);
mfree(tmps); mp_mfree(tmps);
madd(indexed_urls_total, tmps = itom(indexed_urls_nums), indexed_urls_total); mp_madd(indexed_urls_total, tmps = mp_itom(indexed_urls_nums), indexed_urls_total);
mfree(tmps); mp_mfree(tmps);
@ -628,8 +628,8 @@ status_t stat_webindex(file_list)
printf("\n\nTotals:\n\n"); printf("\n\nTotals:\n\n");
printf("Number of sites: %d\n",total_sites); printf("Number of sites: %d\n",total_sites);
printf("Number of urls: "); mout(urls_total); printf("Number of urls: "); mp_mout(urls_total);
printf("Number of indexed urls: "); mout(indexed_urls_total); printf("Number of indexed urls: "); mp_mout(indexed_urls_total);
printf("Total doc sizes: %ld\n", file_size); printf("Total doc sizes: %ld\n", file_size);
printf("Unique keys: %d\n",unique_keys); 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); ptr_check(file_list, char*, "check_indiv", ERROR);
files_total = itom(0); files_total = mp_itom(0);
dirs_total = itom(0); dirs_total = mp_itom(0);
total_sites = 0; total_sites = 0;
@ -766,10 +766,10 @@ status_t stat_anonftp(file_list)
} }
madd(files_total, tmps = itom(files_nums), files_total); mp_madd(files_total, tmps = mp_itom(files_nums), files_total);
mfree(tmps); mp_mfree(tmps);
madd(dirs_total, tmps = itom(dirs_nums), dirs_total); mp_madd(dirs_total, tmps = mp_itom(dirs_nums), dirs_total);
mfree(tmps); mp_mfree(tmps);
if(verbose){ if(verbose){
printf("%-26s %10ld %10ld %12ld\n", filename, files_nums, dirs_nums, 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("\n\nTotals:\n\n");
printf("Number of sites: %d\n",total_sites); printf("Number of sites: %d\n",total_sites);
printf("Number of files: "); mout(files_total); printf("Number of files: "); mp_mout(files_total);
printf("Number of dirs: "); mout(dirs_total); printf("Number of dirs: "); mp_mout(dirs_total);
printf("Unique files+dirs: %d\n",unique_files); printf("Unique files+dirs: %d\n",unique_files);
printf("\n\nDatabase stats:\n\n"); printf("\n\nDatabase stats:\n\n");