diff options
-rw-r--r-- | include/fonctions.h | 17 | ||||
-rw-r--r-- | lib/fonctions.c | 10 |
2 files changed, 25 insertions, 2 deletions
diff --git a/include/fonctions.h b/include/fonctions.h index bf2fddb..c4a1b18 100644 --- a/include/fonctions.h +++ b/include/fonctions.h @@ -4,5 +4,22 @@ void appel_fonction(char *nom, int arite, polynome p1, polynome p2, polynome p3); +void deriv(polynome p1, polynome p2, polynome p3); +void derivn(polynome p1, polynome p2, polynome p3); + +void integ(polynome p1, polynome p2, polynome p3); + +void printvars(polynome p1, polynome p2, polynome p3); + +void ans(polynome p1, polynome p2, polynome p3); + +void help(polynome p1, polynome p2, polynome p3); + +void setdisplay(polynome p1, polynome p2, polynome p3); + +void reinit(polynome p1, polynome p2, polynome p3); + +void exit_call(polynome p1, polynome p2, polynome p3); + #endif
\ No newline at end of file diff --git a/lib/fonctions.c b/lib/fonctions.c index 2600f98..ab3024c 100644 --- a/lib/fonctions.c +++ b/lib/fonctions.c @@ -10,9 +10,15 @@ #include "main.h" #include "scalaires.h" #include "terminal.h" +#include "exceptions.h" +#ifdef HAVE_CONFIG_H +#include "config.h" +#else +#define _(x) x +#endif -typedef (void)(*func_name)(polynome arg1, polynome arg2, polynome arg3); +typedef void (*func_name)(polynome arg1, polynome arg2, polynome arg3); typedef struct func_t { func_name func; @@ -32,7 +38,7 @@ static func_t func_table[] = { { reinit, "reinit", 0 }, { exit_call, "exit", 0 }, { NULL, NULL, -1 } -} +}; void appel_fonction(char *nom, int arite, polynome p1, polynome p2, polynome p3) { |