]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parser.cpp
[msvc] Work around strange scoping and name mangling rules.
[ginac.git] / ginac / parser / parser.cpp
index 42edf5b0834eceac42f5bf52606935726c8a62ed..16eed69dc0f03552ffda7bbdf0ef22bc02a3c634 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's parser. */
 
 /*
- *  GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
 #include "lexer.h"
 #include "debug.h"
 #include "mul.h"
+#include "function.h"
 #include "constant.h"
 
 #include <sstream>
@@ -65,7 +66,7 @@ ex parser::parse_identifier_expr()
                Parse_error_("no function \"" << name << "\" with " <<
                             args.size() << " arguments");
        }
-       ex ret = reader->second(args);
+       ex ret = function(reader->second, args);
        return ret;
 }
 
@@ -81,8 +82,7 @@ ex parser::parse_paren_expr()
        return e;
 }
 
-extern numeric* _num_1_p;
-extern ex _ex0;
+extern const ex _ex0;
 
 /// unary_expr: [+-] expression
 ex parser::parse_unary_expr()