diff options
author | Pixel <Pixel> | 2001-04-28 22:28:23 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-04-28 22:28:23 +0000 |
commit | abd0d6dc5a56768f30232a0588b0c663f2acbe4f (patch) | |
tree | da325c71ea68125919af30de87a4d9a3204b98d8 /src | |
parent | 76c1850b37cebc264ad7e4ad1848b303e2aef928 (diff) |
Pouet
Diffstat (limited to 'src')
-rw-r--r-- | src/Polynom.c | 42 |
1 files changed, 37 insertions, 5 deletions
diff --git a/src/Polynom.c b/src/Polynom.c index f87fac6..beebbb6 100644 --- a/src/Polynom.c +++ b/src/Polynom.c @@ -1,9 +1,41 @@ +/* + * + * Programme principal + * + */ + +#include <stdio.h> +#include "main.h" +#include "hash.h" +#include "parser.h" +#include "polynom.h" +#include "pile.h" +#include "exceptions.h" +#ifdef HAVE_CONFIG_H #include "config.h" +#else +#define _(x) x +#endif + +_TableauVariable variables; +char *mute; + +int main(void) +{ + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + + Initialise(&variables); + mute = Estrdup("x"); + /* nom de la variable utilisee pour la saisie des polynomes, a recuperer en argv eventuellt */ + parse_line("(x^2) + x + 1;"); + //parse_line("P(2);"); + //printf("%s\n", affichage_level_1()); + return 0; -int main(int argc, char ** argv) { - setlocale(LC_ALL, ""); - bindtextdomain(PACKAGE, LOCALEDIR); - textdomain(PACKAGE); - exit(0); +/* destruction de ts les polynomes stockes dans la table de hh */ +/* appel a la fonction de vidage de pile */ +/* vraiment utile? on quitte le prog, ttes les donnes dynamiques seront detruites ... */ } |