--- rpl/src/interface_cas.cpp 2011/06/23 13:03:39 1.1 +++ rpl/src/interface_cas.cpp 2011/06/23 13:41:16 1.2 @@ -19,16 +19,30 @@ ================================================================================ */ + +#include "giac.h" + extern "C" { + +# undef PACKAGE +# undef PACKAGE_NAME +# undef PACKAGE_STRING +# undef PACKAGE_TARNAME +# undef PACKAGE_VERSION +# undef VERSION + # undef _GNU_SOURCE +# undef _POSIX_C_SOURCE + # include "rpl-conv.h" } #include -#include "giac.h" using namespace std; +using namespace giac; + /* ================================================================================ @@ -44,10 +58,10 @@ using namespace std; unsigned char * interface_cas(struct_processus *s_etat_processus, - unsigned char *commande, unsigned char *argument) + unsigned char *commande, const char *argument) { - gen e(string("x^2-1")); - cout << factor(e) << endl; + gen e(string(argument), giac::context0); + //cout << factor(e) << endl; return(NULL); }