]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh_parser.yy
[build] Rewrite ginsh related sed scripts in python.
[ginac.git] / ginsh / ginsh_parser.yy
index ab300a42fec18879d2036154550ff52e82c5c81f..eb184b7f1c8fe0388cda675b22fe9ecc33f58d4d 100644 (file)
@@ -27,7 +27,9 @@
  */
 
 %{
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
 #ifdef HAVE_RUSAGE
 #include <sys/resource.h>
 #else
@@ -732,9 +734,10 @@ static ex f_ginac_function(const exprseq &es, int serial)
 
 // All registered GiNaC functions
 namespace GiNaC {
-void ginsh_get_ginac_functions(void)
+static void ginsh_get_ginac_functions(void)
 {
-       vector<function_options>::const_iterator i = function::registered_functions().begin(), end = function::registered_functions().end();
+       vector<function_options> gfv = function::get_registered_functions();
+       vector<function_options>::const_iterator i = gfv.begin(), end = gfv.end();
        unsigned serial = 0;
        while (i != end) {
                fcns.insert(make_pair(i->get_name(), fcn_desc(f_ginac_function, i->get_nparams(), serial)));