X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fparser%2Fparse_binop_rhs.cpp;h=7f310f419ff01842067ea251c165100a71d9b67c;hb=55a08d9cb9005bb10def92d5e8f5a816003da16b;hp=886975deeb2ccd666cb352de4647e8fe87e9521f;hpb=80b1c3e0ee0e465d56e5c76bef4e52ef2dbc5197;p=ginac.git diff --git a/ginac/parser/parse_binop_rhs.cpp b/ginac/parser/parse_binop_rhs.cpp index 886975de..7f310f41 100644 --- a/ginac/parser/parse_binop_rhs.cpp +++ b/ginac/parser/parse_binop_rhs.cpp @@ -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 -#include #include "parser.h" #include "lexer.h" #include "debug.h" -namespace GiNaC -{ +#include +#include + +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 -