From 775858335e297f40bb6a0b3065cafa8e72bd9de0 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Wed, 21 Mar 2001 11:27:19 +0000 Subject: Still bugfixing --- lib/PCommon.cc | 3 +++ po/PriorityLists.pot | 18 +++++++++--------- src/test.cc | 2 ++ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/lib/PCommon.cc b/lib/PCommon.cc index 16a8a3f..1ceec6a 100644 --- a/lib/PCommon.cc +++ b/lib/PCommon.cc @@ -46,7 +46,10 @@ PriorityList *PriorityList::GenericUnion(PriorityList * P) Key_t IKey; Datas_t IDatas; + cerr << "Dans l'union generique\n"; + while (!(P->IsEmpty())) { + cerr << "Extraction de la clef " << IKey << endl; IKey = P->Extract_Min(IDatas); Insert(IKey, IDatas); } diff --git a/po/PriorityLists.pot b/po/PriorityLists.pot index 6b1a91c..7ad4446 100644 --- a/po/PriorityLists.pot +++ b/po/PriorityLists.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2001-03-21 12:12+0100\n" +"POT-Creation-Date: 2001-03-21 12:40+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -267,35 +267,35 @@ msgstr "" msgid "Please select a priority list type" msgstr "" -#: src/test.cc:361 +#: src/test.cc:363 msgid "Please select a key to delete" msgstr "" -#: src/test.cc:367 +#: src/test.cc:369 msgid "Delete result: " msgstr "" -#: src/test.cc:379 +#: src/test.cc:381 msgid "Extract Min result: " msgstr "" -#: src/test.cc:383 +#: src/test.cc:385 msgid "Please select a key to lower" msgstr "" -#: src/test.cc:389 +#: src/test.cc:391 msgid "Please type in the new key" msgstr "" -#: src/test.cc:393 +#: src/test.cc:395 msgid "Lower key result: " msgstr "" -#: src/test.cc:393 +#: src/test.cc:395 msgid "True" msgstr "" -#: src/test.cc:393 +#: src/test.cc:395 msgid "False" msgstr "" diff --git a/src/test.cc b/src/test.cc index fb67d24..d169162 100644 --- a/src/test.cc +++ b/src/test.cc @@ -349,7 +349,9 @@ int main(int argc, char **argv) Temp = T; cerr << "\n\n\n\n"; method = getchoice(_("Please select a priority list type"), method_names, input) - '0'; + cerr << "Creation de la nouvelle file\n"; T = newlist(method); + cerr << "Union avec l'ancienne\n"; T->Union(Temp); delete Temp; for (i = 0; i < 10; i++) { -- cgit v1.2.3