--- rpl/src/interface_cas.cpp 2011/06/23 13:03:39 1.1 +++ rpl/src/interface_cas.cpp 2011/06/24 09:10:37 1.3 @@ -19,16 +19,27 @@ ================================================================================ */ + +#include "giac.h" + +#undef PACKAGE +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_VERSION +#undef VERSION + extern "C" { -# undef _GNU_SOURCE +# define __RPLCAS # include "rpl-conv.h" } #include -#include "giac.h" using namespace std; +using namespace giac; + /* ================================================================================ @@ -42,14 +53,24 @@ using namespace std; ================================================================================ */ -unsigned char * +void interface_cas(struct_processus *s_etat_processus, - unsigned char *commande, unsigned char *argument) + enum t_rplcas_commandes commande) { - gen e(string("x^2-1")); - cout << factor(e) << endl; + unsigned char *argument_1; + + switch(commande) + { + case RPLCAS_LIMITE: + { + break; + } + + gen e(string(reinterpret_cast(argument_1)), + giac::context0); + } - return(NULL); + return; } // vim: ts=4