]> www.ginac.de Git - ginac.git/blobdiff - ginac/parser/parse_binop_rhs.cpp
Update copyright statements.
[ginac.git] / ginac / parser / parse_binop_rhs.cpp
index 4433a3c0889df80f0c6061fcd0e1bc2bc20f032b..7f310f419ff01842067ea251c165100a71d9b67c 100644 (file)
@@ -1,17 +1,39 @@
+/** @file parse_binop_rhs.cpp
+ *
+ *  Code to deal with binary operators. */
+
+/*
+ *  GiNaC Copyright (C) 1999-2014 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
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
 #include "ex.h"
 #include "symbol.h"
 #include "mul.h"
 #include "add.h"
 #include "power.h"
 #include "operators.h"
-#include <stdexcept>
+#include "parser.h"
+#include "lexer.h"
+#include "debug.h"
+
 #include <sstream>
-#include "parser.hpp"
-#include "lexer.hpp"
-#include "debug.hpp"
+#include <stdexcept>
 
-namespace GiNaC
-{
+namespace GiNaC {
 
 /// Make a sum or a product.
 static ex make_binop_expr(const int binop, const exvector& args);
@@ -92,7 +114,7 @@ ex parser::parse_binop_rhs(int expr_prec, ex& lhs)
        }
 }
 
-extern numeric* _num_1_p;
+extern const numeric* _num_1_p;
 
 static ex make_minus_expr(const exvector& args)
 {
@@ -173,4 +195,3 @@ static int get_tok_prec(const int c)
 }
 
 } // namespace GiNaC
-