X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpolynomial%2Fupoly_io.cpp;h=b6252d4ab564b0b9d2d9ac6cac1d1abe22c223ff;hp=35b623a2895919e74f040576c01cd63e0015c5a1;hb=47ecb72dce5ea9c917d1e1e77863c45a8b2b1bba;hpb=546bababce8ef2b3c5ed3011cb7e49bd78016844 diff --git a/ginac/polynomial/upoly_io.cpp b/ginac/polynomial/upoly_io.cpp index 35b623a2..b6252d4a 100644 --- a/ginac/polynomial/upoly_io.cpp +++ b/ginac/polynomial/upoly_io.cpp @@ -1,11 +1,34 @@ +/** @file upoly_io.cpp + * + * Input/Output function for univariate polynomials. */ + +/* + * GiNaC Copyright (C) 1999-2016 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 "upoly.h" +#include "upoly_io.h" + +#include #include #include -#include "upoly.hpp" -#include "upoly_io.hpp" -#include -namespace GiNaC -{ +namespace GiNaC { + using std::ostream; using std::string; @@ -34,15 +57,15 @@ print(const T& p, ostream& os, const string& varname = string("x")) } } -#define DEFINE_OPERATOR_OUT(type) \ -std::ostream& operator<<(std::ostream& os, const type& p) \ -{ \ - print(p, os); \ - return os; \ -} \ -void dbgprint(const type& p) \ -{ \ - print(p, std::cerr); \ +#define DEFINE_OPERATOR_OUT(type) \ +std::ostream& operator<<(std::ostream& os, const type& p) \ +{ \ + print(p, os); \ + return os; \ +} \ +void dbgprint(const type& p) \ +{ \ + print(p, std::cerr); \ } DEFINE_OPERATOR_OUT(upoly); @@ -50,4 +73,3 @@ DEFINE_OPERATOR_OUT(umodpoly); #undef DEFINE_OPERATOR_OUT } // namespace GiNaC -