summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hash.c10
-rw-r--r--po/ProjetArchi.pot106
2 files changed, 58 insertions, 58 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 80e44af..207439d 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -19,7 +19,7 @@ static int FonctionHachage(char *clef)
return (i);
}
}
- return -1;
+ return strlen(CHAINEHACHAGE);
}
_Element CreerElement(char *Nom, _TypeVariable Var)
@@ -95,7 +95,7 @@ char SupprimerDansTab(_TableauVariable * t, char *Nom)
{
int index = FonctionHachage(Nom);
- if (0 <= index && index < strlen(CHAINEHACHAGE)) {
+ if (0 <= index && index <= strlen(CHAINEHACHAGE)) {
Supprimer(&((*t)[index]), Nom);
} else {
return (0);
@@ -107,7 +107,7 @@ char InsererVarDansTab(_TableauVariable * t, _Element e)
{
int index = FonctionHachage(e.NomVar);
- if (0 <= index && index < strlen(CHAINEHACHAGE)) {
+ if (0 <= index && index <= strlen(CHAINEHACHAGE)) {
(*t)[index] = InserTete((*t)[index], e);
} else {
return (0);
@@ -159,7 +159,7 @@ int Initialise(_TableauVariable * t)
unsigned int i;
(*t) = (_TableauVariable) Emalloc(sizeof(_ListeChaine) * (strlen(CHAINEHACHAGE) + 1));
- for (i = 0; i < strlen(CHAINEHACHAGE); i++) {
+ for (i = 0; i <= strlen(CHAINEHACHAGE); i++) {
(*t)[i] = NULL;
}
return (i);
@@ -169,7 +169,7 @@ void DetruitTab(_TableauVariable * t)
{
int i;
- for (i = 0; i < strlen(CHAINEHACHAGE); i++) {
+ for (i = 0; i <= strlen(CHAINEHACHAGE); i++) {
Detruit(&((*t)[i]));
}
diff --git a/po/ProjetArchi.pot b/po/ProjetArchi.pot
index a694a6b..08a80f2 100644
--- a/po/ProjetArchi.pot
+++ b/po/ProjetArchi.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2001-04-16 01:57+0200\n"
+"POT-Creation-Date: 2001-04-16 02:38+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -26,206 +26,206 @@ msgstr ""
msgid "You can't have the startpoint elsewhere than the .text segment"
msgstr ""
-#: lib/assembler.c:402
+#: lib/assembler.c:399
msgid "Not a valid . directive"
msgstr ""
-#: lib/assembler.c:431
+#: lib/assembler.c:428
msgid "Not a valid # directive"
msgstr ""
#. Cas des directives .
-#: lib/assembler.c:439
+#: lib/assembler.c:436
msgid "Error: extra parameters to a . directive."
msgstr ""
-#: lib/assembler.c:555
+#: lib/assembler.c:552
msgid "Too much arguments to #undef"
msgstr ""
-#: lib/assembler.c:559
+#: lib/assembler.c:556
msgid "Defined symbol not found."
msgstr ""
-#: lib/assembler.c:565
+#: lib/assembler.c:562
msgid "Too much arguments to #include"
msgstr ""
-#: lib/assembler.c:567
+#: lib/assembler.c:564
#, c-format
msgid "Including file at line %i"
msgstr ""
-#: lib/assembler.c:570
+#: lib/assembler.c:567
msgid "Error reading include file"
msgstr ""
-#: lib/assembler.c:622 lib/assembler.c:628
+#: lib/assembler.c:619 lib/assembler.c:625
msgid "Zero divide."
msgstr ""
-#: lib/assembler.c:641 lib/assembler.c:648
+#: lib/assembler.c:638 lib/assembler.c:645
msgid "Error: unable to compute the immediate value"
msgstr ""
-#: lib/assembler.c:657
+#: lib/assembler.c:654
msgid "Function unknow"
msgstr ""
-#: lib/assembler.c:664
+#: lib/assembler.c:661
msgid "Addresses addition not allowed"
msgstr ""
-#: lib/assembler.c:668
+#: lib/assembler.c:665
msgid "You can only use the decal operator on labels"
msgstr ""
-#: lib/assembler.c:673 lib/assembler.c:676 lib/assembler.c:707
+#: lib/assembler.c:670 lib/assembler.c:673 lib/assembler.c:704
msgid "Address operation invalid"
msgstr ""
-#: lib/assembler.c:679 lib/assembler.c:711
+#: lib/assembler.c:676 lib/assembler.c:708
msgid "Addresses operations not allowed"
msgstr ""
-#: lib/assembler.c:682 lib/assembler.c:804 lib/assembler.c:841
-#: lib/assembler.c:915
+#: lib/assembler.c:679 lib/assembler.c:801 lib/assembler.c:838
+#: lib/assembler.c:912
msgid "Expression too complex or invalid"
msgstr ""
-#: lib/assembler.c:715 lib/assembler.c:728 lib/assembler.c:781
-#: lib/assembler.c:793 lib/assembler.c:830
+#: lib/assembler.c:712 lib/assembler.c:725 lib/assembler.c:778
+#: lib/assembler.c:790 lib/assembler.c:827
msgid "Address type not supported"
msgstr ""
-#: lib/assembler.c:797
+#: lib/assembler.c:794
msgid "Address addition not supported"
msgstr ""
-#: lib/assembler.c:834 lib/assembler.c:886
+#: lib/assembler.c:831 lib/assembler.c:883
msgid "Expression invalid"
msgstr ""
#. Bon si l'on est ici, c'est pas bon signe non plus...
-#: lib/assembler.c:959
+#: lib/assembler.c:956
msgid "Expression too complex"
msgstr ""
-#: lib/assembler.c:1023
+#: lib/assembler.c:1020
msgid "Something wrong, nested operator called..."
msgstr ""
-#: lib/assembler.c:1094
+#: lib/assembler.c:1091
msgid "Something wrong, lparenthesis operator called..."
msgstr ""
-#: lib/assembler.c:1097
+#: lib/assembler.c:1094
msgid "Something wrong, should never got here..."
msgstr ""
-#: lib/assembler.c:1278
+#: lib/assembler.c:1275
msgid "Unknow predefined string into the meta language"
msgstr ""
-#: lib/assembler.c:1335
+#: lib/assembler.c:1332
msgid "Pattern not matching..."
msgstr ""
-#: lib/assembler.c:1346 lib/assembler.c:1379 lib/assembler.c:1635
-#: lib/assembler.c:1651 lib/assembler.c:1668 lib/assembler.c:1683
+#: lib/assembler.c:1343 lib/assembler.c:1376 lib/assembler.c:1632
+#: lib/assembler.c:1648 lib/assembler.c:1665 lib/assembler.c:1681
msgid "Unknow constant type in the meta language"
msgstr ""
-#: lib/assembler.c:1359 lib/assembler.c:1403 lib/assembler.c:1431
+#: lib/assembler.c:1356 lib/assembler.c:1400 lib/assembler.c:1428
msgid ""
"Error in the metalanguage (pattern should be here if not a constant type)"
msgstr ""
-#: lib/assembler.c:1391 lib/assembler.c:1417 lib/assembler.c:1425
-#: lib/assembler.c:1713
+#: lib/assembler.c:1388 lib/assembler.c:1414 lib/assembler.c:1422
+#: lib/assembler.c:1712
msgid "Logical error in meta language"
msgstr ""
-#: lib/assembler.c:1460
+#: lib/assembler.c:1457
msgid "Unknow field in metalanguage"
msgstr ""
-#: lib/assembler.c:1472
+#: lib/assembler.c:1469
msgid "Can't evaluate directly expression"
msgstr ""
-#: lib/assembler.c:1479
+#: lib/assembler.c:1476
msgid "Value too large for field"
msgstr ""
-#: lib/assembler.c:1532 lib/assembler.c:1737
+#: lib/assembler.c:1529 lib/assembler.c:1738
msgid "Unknow instruction"
msgstr ""
-#: lib/assembler.c:1557
+#: lib/assembler.c:1554
msgid "Unknow constant"
msgstr ""
-#: lib/assembler.c:1566
+#: lib/assembler.c:1563
msgid "Bad constant for an immediate value"
msgstr ""
-#: lib/assembler.c:1583
+#: lib/assembler.c:1580
msgid "Bad constant for a string"
msgstr ""
-#: lib/assembler.c:1600
+#: lib/assembler.c:1597
msgid "Bad array size"
msgstr ""
-#: lib/assembler.c:1610
+#: lib/assembler.c:1607
msgid "You can only have an instruction into a .text segment"
msgstr ""
-#: lib/assembler.c:1613
+#: lib/assembler.c:1610
msgid "Unmatched instruction"
msgstr ""
-#: lib/assembler.c:1660
+#: lib/assembler.c:1657
msgid "Can't have a direct value for a relative offset"
msgstr ""
-#: lib/assembler.c:1776
+#: lib/assembler.c:1777
msgid "Loading file"
msgstr ""
-#: lib/assembler.c:1777 lib/meta.c:516
+#: lib/assembler.c:1778 lib/meta.c:516
#, c-format
msgid "Opening file '%s'"
msgstr ""
-#: lib/assembler.c:1785 lib/meta.c:524
+#: lib/assembler.c:1786 lib/meta.c:524
msgid "Reading file"
msgstr ""
-#: lib/assembler.c:1787 lib/meta.c:526
+#: lib/assembler.c:1788 lib/meta.c:526
#, c-format
msgid "Reading line %i"
msgstr ""
-#: lib/assembler.c:1796
+#: lib/assembler.c:1797
#, c-format
msgid "Summering line %s"
msgstr ""
-#: lib/assembler.c:1813
+#: lib/assembler.c:1814
msgid "Opening output file"
msgstr ""
-#: lib/assembler.c:1816
+#: lib/assembler.c:1817
msgid "Error writing output file"
msgstr ""
-#: lib/assembler.c:1820
+#: lib/assembler.c:1821
msgid "Error reading file"
msgstr ""
-#: lib/assembler.c:1822
+#: lib/assembler.c:1823
msgid "Writing output file"
msgstr ""