summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <Pixel>2001-05-02 23:37:01 +0000
committerPixel <Pixel>2001-05-02 23:37:01 +0000
commit25c35ed8862258cff8b96a1849814d7526d6c8d9 (patch)
tree79948e8a72efdc0ebe64556c78358a7038e5b3d8
parent2f24e11cb53c348b48eb977912371797d8ece06b (diff)
Pouet
-rw-r--r--doc/Makefile.am2
-rw-r--r--doc/Makefile.doc2
-rw-r--r--doc/algo.tex1
-rw-r--r--doc/polynom.tex2
-rw-r--r--lib/numbers.c2
-rw-r--r--po/fr.gmobin81 -> 5216 bytes
-rw-r--r--po/fr.po2
-rw-r--r--src/Polynom.c12
8 files changed, 15 insertions, 8 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index c894a53..6bed805 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -7,4 +7,4 @@ clean:
distclean:
make -f Makefile.doc clean
-EXTRA_DIST = bib.tex conclusion.tex description.tex intro.tex manuel.tex outils.tex polynom.tex
+EXTRA_DIST = bib.tex conclusion.tex description.tex intro.tex manuel.tex outils.tex polynom.tex algo.tex
diff --git a/doc/Makefile.doc b/doc/Makefile.doc
index f71be85..b3131bf 100644
--- a/doc/Makefile.doc
+++ b/doc/Makefile.doc
@@ -2,7 +2,7 @@ PROJET=polynom
all: $(PROJET).dvi
-$(PROJET).dvi: bib.tex conclusion.tex description.tex intro.tex manuel.tex outils.tex polynom.tex source.tex
+$(PROJET).dvi: bib.tex conclusion.tex description.tex intro.tex manuel.tex outils.tex polynom.tex source.tex algo.tex
echo
echo pass1
echo
diff --git a/doc/algo.tex b/doc/algo.tex
new file mode 100644
index 0000000..ce42fd2
--- /dev/null
+++ b/doc/algo.tex
@@ -0,0 +1 @@
+\chapter{Algorithmes mis en {\oe}uvre}
diff --git a/doc/polynom.tex b/doc/polynom.tex
index 45aa064..d0cf150 100644
--- a/doc/polynom.tex
+++ b/doc/polynom.tex
@@ -59,6 +59,8 @@
\part{Analyse}
\input{description}
\clearemptydoublepage
+\input{algo}
+\clearemptydoublepage
\part{Synthèse}
\input{manuel}
\clearemptydoublepage
diff --git a/lib/numbers.c b/lib/numbers.c
index 100cabd..9c2814f 100644
--- a/lib/numbers.c
+++ b/lib/numbers.c
@@ -9,7 +9,7 @@
#include "scalaires.h"
/* Cette fonction lit un nombre. Elle va chercher absolument à traduire la chaîne passée en argument en un nombre. Si
-ce nombre n'est pas valide, alors l'int valid est mis à faux. Cette fonction reconnais les nombres en décimaux, les nombres
+ce nombre n'est pas valide, alors l'int valid est mis à faux. Cette fonction reconnait les nombres en décimaux, les nombres
en octal préfixés avec 0 et les nombres en hexadécimal préfixés avec 0x.
*/
diff --git a/po/fr.gmo b/po/fr.gmo
index 060c2de..a6b6485 100644
--- a/po/fr.gmo
+++ b/po/fr.gmo
Binary files differ
diff --git a/po/fr.po b/po/fr.po
index 8cc895a..3e71ad9 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -221,7 +221,7 @@ msgstr "\t-- Affichage de la Pile\n"
#: lib/pile.c:475
msgid "\t-- End Printing Stack\n"
-msgstr "\t-- Fin d'Affichage de la Pile"
+msgstr "\t-- Fin d'Affichage de la Pile\n"
#: lib/polynom.c:386
msgid "ply_affichage: strcat error, not enough space in buffer"
diff --git a/src/Polynom.c b/src/Polynom.c
index 805c0fa..f1e5fb2 100644
--- a/src/Polynom.c
+++ b/src/Polynom.c
@@ -35,11 +35,15 @@ void ctrlbreakhand(int i)
/* Les routines générales */
-void init_all(void) {
+void init_all(char * m) {
Initialise(&variables);
/* nom de la variable utilisee pour la saisie des polynomes, a recuperer en argv eventuellt
ATTENTION: elle est case sensitive */
- mute = "x";
+ if (m) {
+ mute = m;
+ } else {
+ mute = "x";
+ }
display=DEC;
}
@@ -52,14 +56,14 @@ void invite(void) {
/* Et notre main. On ne fait que lancer la boucle principale de l'interface */
-int main(void)
+int main(int argc, char ** argv)
{
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- invite();
+ invite(argv[1]);
signal(SIGSEGV, segfaulthand);
signal(SIGINT, ctrlbreakhand);