From 7dd4d0c7b11f8341fc4f7c357273c4d14f6bb237 Mon Sep 17 00:00:00 2001 From: biouman Date: Tue, 1 May 2001 23:46:25 +0000 Subject: *** empty log message *** --- include/fonctions.h | 18 ++++++++++++++++++ lib/fonctions.c | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 include/fonctions.h create mode 100644 lib/fonctions.c diff --git a/include/fonctions.h b/include/fonctions.h new file mode 100644 index 0000000..1b0fbfa --- /dev/null +++ b/include/fonctions.h @@ -0,0 +1,18 @@ +#ifndef __FONCTIONS_H__ +#define __FONCTIONS_H__ + + +typedef enum func_name { + DERIV, + DERIVN, + INTEG, + ANS, + LISTE, + DELVAR, + SETDISP, + HELP, + EXIT +} func_name; + + +#endif \ No newline at end of file diff --git a/lib/fonctions.c b/lib/fonctions.c new file mode 100644 index 0000000..499c159 --- /dev/null +++ b/lib/fonctions.c @@ -0,0 +1,19 @@ +/* + * + * fonctions avancees sur les polynomes + * + */ + +#include "fonctions.h" +#include "pile.h" + +typedef struct func_t { + func_name func; + char *nom; + int arite; + type_elem arg1, arg2, arg3; +} func_t; + +static func_table[] = { + { DERIV, "deriv", 1, T_POLY, -1, -1}, + { DERIVN, "derivn" \ No newline at end of file -- cgit v1.2.3