From a8507b8af1c08d9b27d98d57f95c7ca1a8671e27 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Wed, 10 Nov 1999 19:34:55 +0000 Subject: [PATCH] - enforced GiNaC coding standards :-) --- check/Makefile.in | 10 +++++++ check/check.h | 21 +++++++++++++- check/differentiation.cpp | 23 ++++++++++++++-- check/expand_subs.cpp | 30 ++++++++++++++++---- check/fcntimer.cpp | 22 ++++++++++++++- check/inifcns_consist.cpp | 25 ++++++++++++++--- check/lsolve_onedim.cpp | 25 ++++++++++++++--- check/main.cpp | 21 +++++++++++++- check/matrix_checks.cpp | 23 ++++++++++++++-- check/normalization.cpp | 23 ++++++++++++++-- check/numeric_consist.cpp | 25 ++++++++++++++--- check/numeric_output.cpp | 21 +++++++++++++- check/paranoia_check.cpp | 29 ++++++++++++++++---- check/poly_gcd.cpp | 25 ++++++++++++++--- check/powerlaws.cpp | 25 ++++++++++++++--- check/series_expansion.cpp | 23 ++++++++++++++-- doc/Makefile.in | 10 +++++++ ginac/Makefile.am | 2 ++ ginac/Makefile.in | 13 ++++++++- ginac/add.cpp | 19 ++++++++++++- ginac/add.h | 27 ++++++++++++++---- ginac/basic.cpp | 19 ++++++++++++- ginac/basic.h | 29 ++++++++++++++------ ginac/clifford.cpp | 19 ++++++++++++- ginac/clifford.h | 29 ++++++++++++++------ ginac/color.cpp | 19 ++++++++++++- ginac/color.h | 29 ++++++++++++++------ ginac/coloridx.cpp | 19 ++++++++++++- ginac/coloridx.h | 27 ++++++++++++++---- ginac/constant.cpp | 19 ++++++++++++- ginac/constant.h | 30 ++++++++++++++------ ginac/container.pl | 45 ++++++++++++++++++++++++++---- ginac/debugmsg.h | 26 ++++++++++++++---- ginac/diff.cpp | 19 ++++++++++++- ginac/ex.cpp | 19 ++++++++++++- ginac/ex.h | 29 ++++++++++++++------ ginac/expair.h | 19 ++++++++++++- ginac/expairseq.cpp | 19 ++++++++++++- ginac/expairseq.h | 37 +++++++++++++++---------- ginac/exprseq.cpp | 19 ++++++++++++- ginac/exprseq.h | 26 ++++++++++++++---- ginac/exprseq_suppl.cpp | 19 ++++++++++++- ginac/fail.cpp | 19 ++++++++++++- ginac/fail.h | 31 ++++++++++++++------- ginac/flags.h | 25 ++++++++++++++--- ginac/function.cpp | 19 ++++++++++++- ginac/function.h | 28 ++++++++++++++----- ginac/function.pl | 47 ++++++++++++++++++++++++++------ ginac/ginac.h | 56 ++++++++++++++++++++++++++++++-------- ginac/idx.cpp | 19 ++++++++++++- ginac/idx.h | 27 ++++++++++++++---- ginac/indexed.cpp | 19 ++++++++++++- ginac/indexed.h | 30 ++++++++++++++------ ginac/inifcns.cpp | 19 ++++++++++++- ginac/inifcns.h | 28 ++++++++++++++----- ginac/inifcns_gamma.cpp | 19 ++++++++++++- ginac/inifcns_trans.cpp | 19 ++++++++++++- ginac/isospin.cpp | 19 ++++++++++++- ginac/isospin.h | 29 ++++++++++++++------ ginac/lorentzidx.cpp | 19 ++++++++++++- ginac/lorentzidx.h | 27 ++++++++++++++---- ginac/lst.cpp | 19 ++++++++++++- ginac/lst.h | 26 ++++++++++++++---- ginac/lst_suppl.cpp | 19 ++++++++++++- ginac/matrix.cpp | 19 ++++++++++++- ginac/matrix.h | 27 ++++++++++++++---- ginac/mul.cpp | 19 ++++++++++++- ginac/mul.h | 27 ++++++++++++++---- ginac/ncmul.cpp | 19 ++++++++++++- ginac/ncmul.h | 29 ++++++++++++++------ ginac/normal.cpp | 17 ++++++++++++ ginac/normal.h | 24 ++++++++++++---- ginac/numeric.cpp | 20 +++++++++++++- ginac/numeric.h | 27 ++++++++++++++---- ginac/operators.cpp | 19 ++++++++++++- ginac/operators.h | 31 ++++++++++++++------- ginac/power.cpp | 19 ++++++++++++- ginac/power.h | 25 ++++++++++++++--- ginac/print.cpp | 19 ++++++++++++- ginac/printcsrc.cpp | 19 ++++++++++++- ginac/printraw.cpp | 19 ++++++++++++- ginac/printtree.cpp | 19 ++++++++++++- ginac/relational.cpp | 19 ++++++++++++- ginac/relational.h | 29 ++++++++++++++------ ginac/series.cpp | 19 ++++++++++++- ginac/series.h | 31 ++++++++++++++------- ginac/simp_lor.cpp | 19 ++++++++++++- ginac/simp_lor.h | 30 ++++++++++++++------ ginac/structure.cpp | 19 ++++++++++++- ginac/structure.h | 29 ++++++++++++++------ ginac/structure.pl | 36 ++++++++++++++++++++++-- ginac/symbol.cpp | 19 ++++++++++++- ginac/symbol.h | 30 ++++++++++++++------ ginac/tinfos.h | 25 ++++++++++++++--- ginac/utils.cpp | 19 ++++++++++++- ginac/utils.h | 25 ++++++++++++++--- 96 files changed, 1914 insertions(+), 354 deletions(-) diff --git a/check/Makefile.in b/check/Makefile.in index 2cb92906..4bce8dd9 100644 --- a/check/Makefile.in +++ b/check/Makefile.in @@ -65,6 +65,12 @@ CXXCPP = @CXXCPP@ DOXYGEN = @DOXYGEN@ DVIPS = @DVIPS@ FIG2DEV = @FIG2DEV@ +GINACLIB_BINARY_AGE = @GINACLIB_BINARY_AGE@ +GINACLIB_INTERFACE_AGE = @GINACLIB_INTERFACE_AGE@ +GINACLIB_MAJOR_VERSION = @GINACLIB_MAJOR_VERSION@ +GINACLIB_MICRO_VERSION = @GINACLIB_MICRO_VERSION@ +GINACLIB_MINOR_VERSION = @GINACLIB_MINOR_VERSION@ +GINACLIB_VERSION = @GINACLIB_VERSION@ JADE = @JADE@ JADETEX = @JADETEX@ LATEX = @LATEX@ @@ -72,6 +78,10 @@ LD = @LD@ LEX = @LEX@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ +LT_AGE = @LT_AGE@ +LT_CURRENT = @LT_CURRENT@ +LT_RELEASE = @LT_RELEASE@ +LT_REVISION = @LT_REVISION@ MAINT = @MAINT@ MAKEINDEX = @MAKEINDEX@ MAKEINFO = @MAKEINFO@ diff --git a/check/check.h b/check/check.h index 964df6bf..89a093e7 100644 --- a/check/check.h +++ b/check/check.h @@ -1,4 +1,23 @@ -// check/check.h +/** @file check.h + * + * Prototypes for all individual checks. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #ifndef CHECK_H #define CHECK_H diff --git a/check/differentiation.cpp b/check/differentiation.cpp index c6838efd..8a160180 100644 --- a/check/differentiation.cpp +++ b/check/differentiation.cpp @@ -1,6 +1,23 @@ -// check/differentiation.cpp - -/* Tests for symbolic differentiation, including various functions. */ +/** @file differentiation.cpp + * + * Tests for symbolic differentiation, including various functions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/expand_subs.cpp b/check/expand_subs.cpp index 9f4105a1..abaea8f1 100644 --- a/check/expand_subs.cpp +++ b/check/expand_subs.cpp @@ -1,16 +1,34 @@ -// check/expand_subs.cpp - -/* The first test routine implements Denny Fliegner's quick consistency check: +/** @file expand_subs.cpp + * + * The first test routine implements Denny Fliegner's quick consistency check: * e = (a0 + a1 + a2 + a3 + ...)^2 * expand e * substitute a0 by (-a2 - a3 - ...) in e * expand e - * after which e should be just a1^2. - * In addition, a simpler modification is tested in the second test: + * after which e should be just a1^2. + * In addition, a simpler modification is tested in the second test: * e = (a0 + a1)^200 * expand e * substitute a0 by -a1 in e - * after which e should return 0 (without expanding). */ + * after which e should return 0 (without expanding). + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include diff --git a/check/fcntimer.cpp b/check/fcntimer.cpp index 897636dd..152ec67d 100644 --- a/check/fcntimer.cpp +++ b/check/fcntimer.cpp @@ -1,4 +1,24 @@ -// check/fcntimer.cpp +/** @file fcntimer.cpp + * + * Function execution timer. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include #include diff --git a/check/inifcns_consist.cpp b/check/inifcns_consist.cpp index d85bf95e..5d91a145 100644 --- a/check/inifcns_consist.cpp +++ b/check/inifcns_consist.cpp @@ -1,7 +1,24 @@ -// check/inifcns_consist.cpp - -/* This test routine applies assorted tests on initially known higher level - * functions. */ +/** @file inifcns_consist.cpp + * + * This test routine applies assorted tests on initially known higher level + * functions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/lsolve_onedim.cpp b/check/lsolve_onedim.cpp index 270b9eb1..5cd3421d 100644 --- a/check/lsolve_onedim.cpp +++ b/check/lsolve_onedim.cpp @@ -1,7 +1,24 @@ -// check/lsolve_onedim.cpp - -/* This test routine does some simple checks on solving a polynomial for a - * variable. */ +/** @file lsolve_onedim.cpp + * + * This test routine does some simple checks on solving a polynomial for a + * variable. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/main.cpp b/check/main.cpp index 4cf44c6d..ef74535d 100644 --- a/check/main.cpp +++ b/check/main.cpp @@ -1,4 +1,23 @@ -// check/main.cpp +/** @file main.cpp + * + * Main program that calls all individual tests. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/check/matrix_checks.cpp b/check/matrix_checks.cpp index db2277f5..4b973ef3 100644 --- a/check/matrix_checks.cpp +++ b/check/matrix_checks.cpp @@ -1,6 +1,23 @@ -// check/matrix_checks.cpp - -/* Here we test manipulations on GiNaC's symbolic matrices. */ +/** @file matrix_checks.cpp + * + * Here we test manipulations on GiNaC's symbolic matrices. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/check/normalization.cpp b/check/normalization.cpp index b3882e60..0b79a64c 100644 --- a/check/normalization.cpp +++ b/check/normalization.cpp @@ -1,6 +1,23 @@ -// check/normalization.cpp - -/* Rational function normalization test-suite. */ +/** @file normalization.cpp + * + * Rational function normalization test suite. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/numeric_consist.cpp b/check/numeric_consist.cpp index 947c850a..cd6f81ce 100644 --- a/check/numeric_consist.cpp +++ b/check/numeric_consist.cpp @@ -1,7 +1,24 @@ -// check/numeric_consist.cpp - -/* This test routine creates some numbers and check the result of several - * boolean tests on these numbers like is_integer() etc... */ +/** @file numeric_consist.cpp + * + * This test routine creates some numbers and check the result of several + * boolean tests on these numbers like is_integer() etc... + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/check/numeric_output.cpp b/check/numeric_output.cpp index c4806768..d138a74f 100644 --- a/check/numeric_output.cpp +++ b/check/numeric_output.cpp @@ -1,4 +1,23 @@ -// check/numeric_output.cpp +/** @file numeric_output.cpp + * + * Test output of numeric types. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/paranoia_check.cpp b/check/paranoia_check.cpp index 97ee011d..228d8465 100644 --- a/check/paranoia_check.cpp +++ b/check/paranoia_check.cpp @@ -1,9 +1,26 @@ -// check/paranoia_check.cpp - -/* This set of tests checks for some of GiNaC's oopses which showed up during - * development. Things were evaluated wrongly and so. It should not find such - * a sick behaviour again. But since we are paranoic and we want to exclude - * that behaviour for good... */ +/** @file paranoia_check.cpp + * + * This set of tests checks for some of GiNaC's oopses which showed up during + * development. Things were evaluated wrongly and so. It should not find such + * a sick behaviour again. But since we are paranoic and we want to exclude + * that behaviour for good... + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/poly_gcd.cpp b/check/poly_gcd.cpp index 48425448..542bc80c 100644 --- a/check/poly_gcd.cpp +++ b/check/poly_gcd.cpp @@ -1,7 +1,24 @@ -// check/poly_gcd.cpp - -/* Some test with polynomial GCD calculations. See also the checks for - * rational function normalization in normalization.cpp. */ +/** @file poly_gcd.cpp + * + * Some test with polynomial GCD calculations. See also the checks for + * rational function normalization in normalization.cpp. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/powerlaws.cpp b/check/powerlaws.cpp index e103fed9..2a6382a8 100644 --- a/check/powerlaws.cpp +++ b/check/powerlaws.cpp @@ -1,7 +1,24 @@ -// check/powerlaws.cpp - -/* Tests for power laws. You shouldn't try to draw much inspiration from - * this code, it is a sanity check rather deeply rooted in GiNaC's classes. */ +/** @file powerlaws.cpp + * + * Tests for power laws. You shouldn't try to draw much inspiration from + * this code, it is a sanity check rather deeply rooted in GiNaC's classes. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/check/series_expansion.cpp b/check/series_expansion.cpp index e66059de..0f8437b2 100644 --- a/check/series_expansion.cpp +++ b/check/series_expansion.cpp @@ -1,6 +1,23 @@ -// check/series_expansion.cpp - -/* Series expansion test (Laurent and Taylor series). */ +/** @file series_expansion.cpp + * + * Series expansion test (Laurent and Taylor series). + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/doc/Makefile.in b/doc/Makefile.in index dad8d832..47965596 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -65,6 +65,12 @@ CXXCPP = @CXXCPP@ DOXYGEN = @DOXYGEN@ DVIPS = @DVIPS@ FIG2DEV = @FIG2DEV@ +GINACLIB_BINARY_AGE = @GINACLIB_BINARY_AGE@ +GINACLIB_INTERFACE_AGE = @GINACLIB_INTERFACE_AGE@ +GINACLIB_MAJOR_VERSION = @GINACLIB_MAJOR_VERSION@ +GINACLIB_MICRO_VERSION = @GINACLIB_MICRO_VERSION@ +GINACLIB_MINOR_VERSION = @GINACLIB_MINOR_VERSION@ +GINACLIB_VERSION = @GINACLIB_VERSION@ JADE = @JADE@ JADETEX = @JADETEX@ LATEX = @LATEX@ @@ -72,6 +78,10 @@ LD = @LD@ LEX = @LEX@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ +LT_AGE = @LT_AGE@ +LT_CURRENT = @LT_CURRENT@ +LT_RELEASE = @LT_RELEASE@ +LT_REVISION = @LT_REVISION@ MAINT = @MAINT@ MAKEINDEX = @MAKEINDEX@ MAKEINFO = @MAKEINFO@ diff --git a/ginac/Makefile.am b/ginac/Makefile.am index d215d8ce..e56226c8 100644 --- a/ginac/Makefile.am +++ b/ginac/Makefile.am @@ -8,6 +8,8 @@ libginac_la_SOURCES = add.cpp basic.cpp constant.cpp diff.cpp ex.cpp \ clifford.cpp structure.cpp color.cpp indexed.cpp idx.cpp isospin.cpp \ exprseq_suppl.cpp lst.cpp lst_suppl.cpp simp_lor.cpp coloridx.cpp \ lorentzidx.cpp utils.h +libginac_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ + -release $(LT_RELEASE) ginacincludedir = $(includedir)/ginac ginacinclude_HEADERS = ginac.h add.h basic.h clifford.h color.h coloridx.h \ constant.h debugmsg.h ex.h expair.h expairseq.h exprseq.h fail.h flags.h \ diff --git a/ginac/Makefile.in b/ginac/Makefile.in index 724c9714..f757935a 100644 --- a/ginac/Makefile.in +++ b/ginac/Makefile.in @@ -65,6 +65,12 @@ CXXCPP = @CXXCPP@ DOXYGEN = @DOXYGEN@ DVIPS = @DVIPS@ FIG2DEV = @FIG2DEV@ +GINACLIB_BINARY_AGE = @GINACLIB_BINARY_AGE@ +GINACLIB_INTERFACE_AGE = @GINACLIB_INTERFACE_AGE@ +GINACLIB_MAJOR_VERSION = @GINACLIB_MAJOR_VERSION@ +GINACLIB_MICRO_VERSION = @GINACLIB_MICRO_VERSION@ +GINACLIB_MINOR_VERSION = @GINACLIB_MINOR_VERSION@ +GINACLIB_VERSION = @GINACLIB_VERSION@ JADE = @JADE@ JADETEX = @JADETEX@ LATEX = @LATEX@ @@ -72,6 +78,10 @@ LD = @LD@ LEX = @LEX@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ +LT_AGE = @LT_AGE@ +LT_CURRENT = @LT_CURRENT@ +LT_RELEASE = @LT_RELEASE@ +LT_REVISION = @LT_REVISION@ MAINT = @MAINT@ MAKEINDEX = @MAKEINDEX@ MAKEINFO = @MAKEINFO@ @@ -90,6 +100,8 @@ libginac_la_SOURCES = add.cpp basic.cpp constant.cpp diff.cpp ex.cpp \ clifford.cpp structure.cpp color.cpp indexed.cpp idx.cpp isospin.cpp \ exprseq_suppl.cpp lst.cpp lst_suppl.cpp simp_lor.cpp coloridx.cpp \ lorentzidx.cpp utils.h +libginac_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ + -release $(LT_RELEASE) ginacincludedir = $(includedir)/ginac ginacinclude_HEADERS = ginac.h add.h basic.h clifford.h color.h coloridx.h \ constant.h debugmsg.h ex.h expair.h expairseq.h exprseq.h fail.h flags.h \ @@ -106,7 +118,6 @@ DEFS = @DEFS@ -I. -I$(srcdir) -I.. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ -libginac_la_LDFLAGS = libginac_la_LIBADD = libginac_la_OBJECTS = add.lo basic.lo constant.lo diff.lo ex.lo \ expairseq.lo exprseq.lo fail.lo function.lo inifcns.lo inifcns_trans.lo \ diff --git a/ginac/add.cpp b/ginac/add.cpp index 0d88e329..42e65bb9 100644 --- a/ginac/add.cpp +++ b/ginac/add.cpp @@ -1,6 +1,23 @@ /** @file add.cpp * - * Implementation of GiNaC's sums of expressions. */ + * Implementation of GiNaC's sums of expressions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/add.h b/ginac/add.h index 6986b1e3..78383034 100644 --- a/ginac/add.h +++ b/ginac/add.h @@ -1,11 +1,26 @@ /** @file add.h * - * Interface to GiNaC's sums of expressions. */ - -#ifndef _ADD_H_ -#define _ADD_H_ + * Interface to GiNaC's sums of expressions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#include "expairseq.h" +#ifndef __GINAC_ADD_H__ +#define __GINAC_ADD_H__ /** Sum of expressions. */ class add : public expairseq @@ -90,5 +105,5 @@ extern type_info const & typeid_add; #define ex_to_add(X) static_cast(*(X).bp) -#endif // ndef _ADD_H_ +#endif // ndef __GINAC_ADD_H__ diff --git a/ginac/basic.cpp b/ginac/basic.cpp index 875bf758..8317f812 100644 --- a/ginac/basic.cpp +++ b/ginac/basic.cpp @@ -1,6 +1,23 @@ /** @file basic.cpp * - * Implementation of GiNaC's ABC. */ + * Implementation of GiNaC's ABC. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/basic.h b/ginac/basic.h index a0956171..94393904 100644 --- a/ginac/basic.h +++ b/ginac/basic.h @@ -1,18 +1,31 @@ /** @file basic.h * - * Interface to GiNaC's ABC. */ + * Interface to GiNaC's ABC. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _BASIC_H_ -#define _BASIC_H_ +#ifndef __GINAC_BASIC_H__ +#define __GINAC_BASIC_H__ #include #include #include -#include "flags.h" -#include "tinfos.h" -#include "debugmsg.h" - class basic; class ex; class symbol; @@ -237,4 +250,4 @@ inline unsigned golden_ratio_hash(unsigned n) #endif } -#endif // ndef _BASIC_H_ +#endif // ndef __GINAC_BASIC_H__ diff --git a/ginac/clifford.cpp b/ginac/clifford.cpp index 98f3652d..9c01f9a0 100644 --- a/ginac/clifford.cpp +++ b/ginac/clifford.cpp @@ -1,7 +1,24 @@ /** @file clifford.cpp * * Implementation of GiNaC's clifford objects. - * No real implementation yet, to be done. */ + * No real implementation yet, to be done. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/clifford.h b/ginac/clifford.h index 65ec005f..68a81a45 100644 --- a/ginac/clifford.h +++ b/ginac/clifford.h @@ -1,16 +1,29 @@ /** @file clifford.h * - * Interface to GiNaC's clifford objects. */ + * Interface to GiNaC's clifford objects. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _CLIFFORD_H_ -#define _CLIFFORD_H_ +#ifndef __GINAC_CLIFFORD_H__ +#define __GINAC_CLIFFORD_H__ #include -class clifford; - -#include "indexed.h" - /** Base class for clifford object */ class clifford : public indexed { @@ -70,6 +83,6 @@ extern type_info const & typeid_clifford; #define ex_to_clifford(X) static_cast(*(X).bp) -#endif // ndef _CLIFFORD_H_ +#endif // ndef __GINAC_CLIFFORD_H__ diff --git a/ginac/color.cpp b/ginac/color.cpp index f790e941..fc78506a 100644 --- a/ginac/color.cpp +++ b/ginac/color.cpp @@ -1,7 +1,24 @@ /** @file color.cpp * * Implementation of GiNaC's color objects. - * No real implementation yet, to be done. */ + * No real implementation yet, to be done. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/color.h b/ginac/color.h index 3237359e..d900d84f 100644 --- a/ginac/color.h +++ b/ginac/color.h @@ -1,17 +1,30 @@ /** @file color.h * - * Interface to GiNaC's color objects. */ + * Interface to GiNaC's color objects. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _COLOR_H_ -#define _COLOR_H_ +#ifndef __GINAC_COLOR_H__ +#define __GINAC_COLOR_H__ #include #include -class color; - -#include "indexed.h" - #define MAX_REPRESENTATION_LABELS 4 #define COLOR_EIGHT 8 // N*N-1 #define COLOR_THREE 3 // N @@ -138,6 +151,6 @@ ex brute_force_sum_color_indices(ex const & e); void append_exvector_to_exvector(exvector & dest, exvector const & source); -#endif // ndef _COLOR_H_ +#endif // ndef __GINAC_COLOR_H__ diff --git a/ginac/coloridx.cpp b/ginac/coloridx.cpp index 2b12a997..be7768d7 100644 --- a/ginac/coloridx.cpp +++ b/ginac/coloridx.cpp @@ -1,6 +1,23 @@ /** @file coloridx.cpp * - * Implementation of GiNaC's color indices. */ + * Implementation of GiNaC's color indices. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/coloridx.h b/ginac/coloridx.h index 92e6b1ff..8f7e8254 100644 --- a/ginac/coloridx.h +++ b/ginac/coloridx.h @@ -1,15 +1,30 @@ /** @file coloridx.h * - * Interface to GiNaC's color indices. */ + * Interface to GiNaC's color indices. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _COLORIDX_H_ -#define _COLORIDX_H_ +#ifndef __GINAC_COLORIDX_H__ +#define __GINAC_COLORIDX_H__ #include #include -#include "idx.h" - class coloridx : public idx { friend class color; @@ -60,4 +75,4 @@ extern type_info const & typeid_coloridx; #define ex_to_coloridx(X) (static_cast(*(X).bp)) -#endif // ndef _COLORIDX_H_ +#endif // ndef __GINAC_COLORIDX_H__ diff --git a/ginac/constant.cpp b/ginac/constant.cpp index a1cc1ef9..2bfb4b32 100644 --- a/ginac/constant.cpp +++ b/ginac/constant.cpp @@ -1,6 +1,23 @@ /** @file constant.cpp * - * Implementation of GiNaC's constant types and some special constants. */ + * Implementation of GiNaC's constant types and some special constants. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/constant.h b/ginac/constant.h index ef7e8c8d..e772ada8 100644 --- a/ginac/constant.h +++ b/ginac/constant.h @@ -1,17 +1,29 @@ /** @file constant.h * - * Interface to GiNaC's constant types and some special constants. */ + * Interface to GiNaC's constant types and some special constants. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _CONSTANT_H_ -#define _CONSTANT_H_ +#ifndef __GINAC_CONSTANT_H__ +#define __GINAC_CONSTANT_H__ #include -class constant; - -#include "ex.h" -#include "numeric.h" - /** This class holds constants, symbols with specific numerical value. Each * object of this class must either provide their own function to evaluate it * to class numeric or provide the constant as a numeric (if it's an exact @@ -74,4 +86,4 @@ extern const constant Pi; extern const constant Catalan; extern const constant EulerGamma; -#endif // ndef _CONSTANT_H_ +#endif // ndef __GINAC_CONSTANT_H__ diff --git a/ginac/container.pl b/ginac/container.pl index d7b860bc..4cb7f883 100755 --- a/ginac/container.pl +++ b/ginac/container.pl @@ -98,13 +98,29 @@ $interface=< - #include typedef ${STLHEADER} ${STLT}; @@ -200,7 +216,7 @@ extern type_info const & typeid_${CONTAINER}; #define ex_to_${CONTAINER}(X) (static_cast<${CONTAINER} const &>(*(X).bp)) -#endif // ndef _${CONTAINER_UC}_H_ +#endif // ndef __GINAC_${CONTAINER_UC}_H__ END_OF_INTERFACE @@ -216,7 +232,24 @@ $implementation=< #include diff --git a/ginac/debugmsg.h b/ginac/debugmsg.h index caf8bcb4..eae3cbd8 100644 --- a/ginac/debugmsg.h +++ b/ginac/debugmsg.h @@ -1,9 +1,26 @@ /** @file debugmsg.h * - * Utilities needed for debugging only. */ + * Utilities needed for debugging only. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _DEBUGMSG_H_ -#define _DEBUGMSG_H_ +#ifndef __GINAC_DEBUGMSG_H__ +#define __GINAC_DEBUGMSG_H__ #ifdef _DEBUG #define VERBOSE @@ -38,5 +55,4 @@ #define ASSERT(X) ((void)0) #endif -#endif // ndef _DEBUGMSG_H_ - +#endif // ndef __GINAC_DEBUGMSG_H__ diff --git a/ginac/diff.cpp b/ginac/diff.cpp index b8ef4c5c..c8ef77b8 100644 --- a/ginac/diff.cpp +++ b/ginac/diff.cpp @@ -1,6 +1,23 @@ /** @file diff.cpp * - * Implementation of symbolic differentiation in all of GiNaC's classes. */ + * Implementation of symbolic differentiation in all of GiNaC's classes. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/ex.cpp b/ginac/ex.cpp index 7cb0c6f6..652005dd 100644 --- a/ginac/ex.cpp +++ b/ginac/ex.cpp @@ -1,6 +1,23 @@ /** @file ex.cpp * - * Implementation of GiNaC's light-weight expression handles. */ + * Implementation of GiNaC's light-weight expression handles. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/ex.h b/ginac/ex.h index 2300627e..d22dc86a 100644 --- a/ginac/ex.h +++ b/ginac/ex.h @@ -1,9 +1,26 @@ /** @file ex.h * - * Interface to GiNaC's light-weight expression handles. */ + * Interface to GiNaC's light-weight expression handles. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _EX_H_ -#define _EX_H_ +#ifndef __GINAC_EX_H__ +#define __GINAC_EX_H__ #include @@ -11,10 +28,6 @@ class ex; class expand_options; class status_flags; -#include "basic.h" -#include "debugmsg.h" -#include "flags.h" - class symbol; class lst; @@ -266,4 +279,4 @@ inline ex subs(ex const & thisex, lst const & ls, lst const & lr) inline void swap(ex & e1, ex & e2) { e1.swap(e2); } -#endif // ndef _EX_H_ +#endif // ndef __GINAC_EX_H__ diff --git a/ginac/expair.h b/ginac/expair.h index ffe95322..3f98d412 100644 --- a/ginac/expair.h +++ b/ginac/expair.h @@ -1,4 +1,21 @@ -/** @file expair.h */ +/** @file expair.h + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ /** A pair of expressions. * This similar to, but slightly extended STL's pair<> but we need to account diff --git a/ginac/expairseq.cpp b/ginac/expairseq.cpp index 96811383..7f8664ee 100644 --- a/ginac/expairseq.cpp +++ b/ginac/expairseq.cpp @@ -1,4 +1,21 @@ -/** @file expairseq.cpp */ +/** @file expairseq.cpp + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/expairseq.h b/ginac/expairseq.h index e6511e8e..a19c78bb 100644 --- a/ginac/expairseq.h +++ b/ginac/expairseq.h @@ -1,19 +1,28 @@ -/** @file expairseq.h */ - -#ifndef _EXPAIRSEQ_H_ -#define _EXPAIRSEQ_H_ +/** @file expairseq.h + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef __GINAC_EXPAIRSEQ_H__ +#define __GINAC_EXPAIRSEQ_H__ #include #include -class expairseq; - -#include "basic.h" -#include "ex.h" -#include "numeric.h" -#include "debugmsg.h" -#include "expair.h" - //#define EXPAIRSEQ_USE_HASHTAB typedef vector epvector; @@ -178,6 +187,4 @@ extern type_info const & typeid_expairseq; #define ex_to_expairseq(X) static_cast(*(X).bp) -#endif // ndef _EXPAIRSEQ_H_ - - +#endif // ndef __GINAC_EXPAIRSEQ_H__ diff --git a/ginac/exprseq.cpp b/ginac/exprseq.cpp index 9e566c34..ad200a46 100644 --- a/ginac/exprseq.cpp +++ b/ginac/exprseq.cpp @@ -9,7 +9,24 @@ * $prepend=0 * $let_op=0 * $open_bracket=( - * $close_bracket=) */ + * $close_bracket=) + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/exprseq.h b/ginac/exprseq.h index aeb8a2dd..16d99bd3 100644 --- a/ginac/exprseq.h +++ b/ginac/exprseq.h @@ -9,13 +9,29 @@ * $prepend=0 * $let_op=0 * $open_bracket=( - * $close_bracket=) */ + * $close_bracket=) + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _EXPRSEQ_H_ -#define _EXPRSEQ_H_ +#ifndef __GINAC_EXPRSEQ_H__ +#define __GINAC_EXPRSEQ_H__ #include - #include typedef vector exvector; @@ -111,5 +127,5 @@ extern type_info const & typeid_exprseq; #define ex_to_exprseq(X) (static_cast(*(X).bp)) -#endif // ndef _EXPRSEQ_H_ +#endif // ndef __GINAC_EXPRSEQ_H__ diff --git a/ginac/exprseq_suppl.cpp b/ginac/exprseq_suppl.cpp index 22b35ec0..2da0fea1 100644 --- a/ginac/exprseq_suppl.cpp +++ b/ginac/exprseq_suppl.cpp @@ -1,7 +1,24 @@ /** @file exprseq_suppl.cpp * * Supplement to exprseq.cpp, contains the parts which were - * not automatically generated. */ + * not automatically generated. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include "ginac.h" diff --git a/ginac/fail.cpp b/ginac/fail.cpp index 81ad433d..c9d0e392 100644 --- a/ginac/fail.cpp +++ b/ginac/fail.cpp @@ -1,7 +1,24 @@ /** @file fail.cpp * * Implementation of class signaling failure of operation. Considered - * obsolete all this stuff ought to be replaced by exceptions. */ + * obsolete all this stuff ought to be replaced by exceptions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include "ginac.h" diff --git a/ginac/fail.h b/ginac/fail.h index 1ff99485..666d85f4 100644 --- a/ginac/fail.h +++ b/ginac/fail.h @@ -1,19 +1,30 @@ /** @file fail.h * * Interface to class signaling failure of operation. Considered obsolete all - * this stuff ought to be replaced by exceptions. */ - -#ifndef _FAIL_H_ -#define _FAIL_H_ - -class fail; + * this stuff ought to be replaced by exceptions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#include "basic.h" -#include "flags.h" +#ifndef __GINAC_FAIL_H__ +#define __GINAC_FAIL_H__ class fail : public basic { - // member functions // default constructor, destructor, copy constructor assignment operator and helpers @@ -53,6 +64,6 @@ protected: extern const fail some_fail; extern type_info const & typeid_fail; -#endif // ndef _FAIL_H_ +#endif // ndef __GINAC_FAIL_H__ diff --git a/ginac/flags.h b/ginac/flags.h index 76fe8217..cc735b64 100644 --- a/ginac/flags.h +++ b/ginac/flags.h @@ -1,9 +1,26 @@ /** @file flags.h * - * Collection of all flags used through the GiNaC framework. */ + * Collection of all flags used through the GiNaC framework. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _FLAGS_H_ -#define _FLAGS_H_ +#ifndef __GINAC_FLAGS_H__ +#define __GINAC_FLAGS_H__ class expand_options { public: @@ -94,4 +111,4 @@ public: }; }; -#endif // ndef _FLAGS_H_ +#endif // ndef __GINAC_FLAGS_H__ diff --git a/ginac/function.cpp b/ginac/function.cpp index 33bfd5f3..77aa3c6b 100644 --- a/ginac/function.cpp +++ b/ginac/function.cpp @@ -4,7 +4,24 @@ * * This file was generated automatically by function.pl. * Please do not modify it directly, edit the perl script instead! - * function.pl options: $maxargs=10 */ + * function.pl options: $maxargs=10 + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/function.h b/ginac/function.h index 312b12df..ffc4eda4 100644 --- a/ginac/function.h +++ b/ginac/function.h @@ -4,19 +4,33 @@ * * This file was generated automatically by function.pl. * Please do not modify it directly, edit the perl script instead! - * function.pl options: $maxargs=10 */ + * function.pl options: $maxargs=10 + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _FUNCTION_H_ -#define _FUNCTION_H_ +#ifndef __GINAC_FUNCTION_H__ +#define __GINAC_FUNCTION_H__ #include #include -#include "config.h" class function; -#include "exprseq.h" - // the following lines have been generated for max. 10 parameters #define DECLARE_FUNCTION_1P(NAME) \ extern unsigned function_index_##NAME; \ @@ -272,5 +286,5 @@ protected: extern const function some_function; extern type_info const & typeid_function; -#endif // ndef _FUNCTION_H_ +#endif // ndef __GINAC_FUNCTION_H__ diff --git a/ginac/function.pl b/ginac/function.pl index 6ebdada4..e40478d0 100755 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -123,19 +123,33 @@ $interface=< #include -#include "config.h" class function; -#include "exprseq.h" - // the following lines have been generated for max. ${maxargs} parameters $declare_function_macro // end of generated lines @@ -261,7 +275,7 @@ protected: extern const function some_function; extern type_info const & typeid_function; -#endif // ndef _FUNCTION_H_ +#endif // ndef __GINAC_FUNCTION_H__ END_OF_INTERFACE @@ -272,7 +286,24 @@ $implementation=< #include diff --git a/ginac/ginac.h b/ginac/ginac.h index 1892097e..808029ec 100644 --- a/ginac/ginac.h +++ b/ginac/ginac.h @@ -1,30 +1,62 @@ -/* ginac.h */ +/** @file ginac.h + * + * This include file includes all other public GiNaC headers. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #ifndef __GINAC_H__ #define __GINAC_H__ -#include +#include +#include +#include + #include -#include + #include -#include +#include + +#include #include -#include #include -#include #include #include -#include -#include -#include #include -#include #include -#include -#include +#include #include +#include + +#include +#include +#include +#include +#include + +#include +#include +#include + +#include +#include #ifndef GINAC_BASE_ONLY +#include #include #include #include diff --git a/ginac/idx.cpp b/ginac/idx.cpp index 9829b876..a688c6d4 100644 --- a/ginac/idx.cpp +++ b/ginac/idx.cpp @@ -1,6 +1,23 @@ /** @file idx.cpp * - * Implementation of GiNaC's indices. */ + * Implementation of GiNaC's indices. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/idx.h b/ginac/idx.h index 8e460d4c..07c18b48 100644 --- a/ginac/idx.h +++ b/ginac/idx.h @@ -1,15 +1,30 @@ /** @file idx.h * - * Interface to GiNaC's indices. */ + * Interface to GiNaC's indices. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _IDX_H_ -#define _IDX_H_ +#ifndef __GINAC_IDX_H__ +#define __GINAC_IDX_H__ #include #include -#include "basic.h" - class idx : public basic { // member functions @@ -87,4 +102,4 @@ ex subs_indices(ex const & e, exvector const & idxv_contra, exvector const & idxv_co); unsigned count_index(ex const & e, ex const & i); -#endif // ndef _IDX_H_ +#endif // ndef __GINAC_IDX_H__ diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index 2d6419d6..ffcf5141 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -1,6 +1,23 @@ /** @file indexed.cpp * - * Implementation of GiNaC's index carrying objects. */ + * Implementation of GiNaC's index carrying objects. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/indexed.h b/ginac/indexed.h index 4bade0b2..5aa53185 100644 --- a/ginac/indexed.h +++ b/ginac/indexed.h @@ -1,17 +1,29 @@ /** @file indexed.h * - * Interface to GiNaC's index carrying objects. */ + * Interface to GiNaC's index carrying objects. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _INDEXED_H_ -#define _INDEXED_H_ +#ifndef __GINAC_INDEXED_H__ +#define __GINAC_INDEXED_H__ #include -class indexed; - -#include "exprseq.h" -#include "idx.h" - /** Base class for non-commutative indexed objects */ class indexed : public exprseq { @@ -76,6 +88,6 @@ extern type_info const & typeid_indexed; #define ex_to_indexed(X) static_cast(*(X).bp) -#endif // ndef _INDEXED_H_ +#endif // ndef __GINAC_INDEXED_H__ diff --git a/ginac/inifcns.cpp b/ginac/inifcns.cpp index adf31860..981e98e3 100644 --- a/ginac/inifcns.cpp +++ b/ginac/inifcns.cpp @@ -1,6 +1,23 @@ /** @file inifcns.cpp * - * Implementation of GiNaC's initially known functions. */ + * Implementation of GiNaC's initially known functions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/inifcns.h b/ginac/inifcns.h index c1f1f24e..ecdfa897 100644 --- a/ginac/inifcns.h +++ b/ginac/inifcns.h @@ -1,12 +1,26 @@ /** @file inifcns.h * - * Interface to GiNaC's initially known functions. */ - -#ifndef _INIFCNS_H_ -#define _INIFCNS_H_ + * Interface to GiNaC's initially known functions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#include "numeric.h" -#include "function.h" +#ifndef __GINAC_INIFCNS_H__ +#define __GINAC_INIFCNS_H__ /** Sine. */ DECLARE_FUNCTION_1P(sin) @@ -80,4 +94,4 @@ inline bool is_order_function(ex const & e) return is_ex_the_function(e, Order); } -#endif // ndef _INIFCNS_H_ +#endif // ndef __GINAC_INIFCNS_H__ diff --git a/ginac/inifcns_gamma.cpp b/ginac/inifcns_gamma.cpp index b94ee27d..f575aca5 100644 --- a/ginac/inifcns_gamma.cpp +++ b/ginac/inifcns_gamma.cpp @@ -1,6 +1,23 @@ /** @file inifcns_gamma.cpp * - * Implementation of Gamma function and some related stuff. */ + * Implementation of Gamma function and some related stuff. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/inifcns_trans.cpp b/ginac/inifcns_trans.cpp index c67d8330..85443307 100644 --- a/ginac/inifcns_trans.cpp +++ b/ginac/inifcns_trans.cpp @@ -1,7 +1,24 @@ /** @file inifcns_trans.cpp * * Implementation of transcendental (and trigonometric and hyperbolic) - * functions. */ + * functions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/isospin.cpp b/ginac/isospin.cpp index c8a58047..5f527d7a 100644 --- a/ginac/isospin.cpp +++ b/ginac/isospin.cpp @@ -1,7 +1,24 @@ /** @file isospin.cpp * * Implementation of GiNaC's isospin objects. - * No real implementation yet, to be done. */ + * No real implementation yet, to be done. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/isospin.h b/ginac/isospin.h index 3a8e9307..56ae1b79 100644 --- a/ginac/isospin.h +++ b/ginac/isospin.h @@ -1,16 +1,29 @@ /** @file isospin.h * - * Interface to GiNaC's isospin objects. */ + * Interface to GiNaC's isospin objects. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _ISOSPIN_H_ -#define _ISOSPIN_H_ +#ifndef __GINAC_ISOSPIN_H__ +#define __GINAC_ISOSPIN_H__ #include -class isospin; - -#include "indexed.h" - /** Base class for isospin object */ class isospin : public indexed { @@ -70,6 +83,6 @@ extern type_info const & typeid_isospin; #define ex_to_isospin(X) static_cast(*(X).bp) -#endif // ndef _ISOSPIN_H_ +#endif // ndef __GINAC_ISOSPIN_H__ diff --git a/ginac/lorentzidx.cpp b/ginac/lorentzidx.cpp index e53d8a85..af35a457 100644 --- a/ginac/lorentzidx.cpp +++ b/ginac/lorentzidx.cpp @@ -1,6 +1,23 @@ /** @file lorentzidx.cpp * - * Implementation of GiNaC's lorentz indices. */ + * Implementation of GiNaC's lorentz indices. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/lorentzidx.h b/ginac/lorentzidx.h index 99eae084..8f9bbf40 100644 --- a/ginac/lorentzidx.h +++ b/ginac/lorentzidx.h @@ -1,15 +1,30 @@ /** @file lorentzidx.h * - * Interface to GiNaC's lorentz indices. */ + * Interface to GiNaC's lorentz indices. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _LORENTZIDX_H_ -#define _LORENTZIDX_H_ +#ifndef __GINAC_LORENTZIDX_H__ +#define __GINAC_LORENTZIDX_H__ #include #include -#include "idx.h" - class lorentzidx : public idx { friend class simp_lor; @@ -68,4 +83,4 @@ extern type_info const & typeid_lorentzidx; #define ex_to_lorentzidx(X) (static_cast(*(X).bp)) -#endif // ndef _LORENTZIDX_H_ +#endif // ndef __GINAC_LORENTZIDX_H__ diff --git a/ginac/lst.cpp b/ginac/lst.cpp index 550d8863..7fd3e407 100644 --- a/ginac/lst.cpp +++ b/ginac/lst.cpp @@ -9,7 +9,24 @@ * $prepend=1 * $let_op=1 * $open_bracket=[ - * $close_bracket=] */ + * $close_bracket=] + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/lst.h b/ginac/lst.h index 66af406b..08b75f78 100644 --- a/ginac/lst.h +++ b/ginac/lst.h @@ -9,13 +9,29 @@ * $prepend=1 * $let_op=1 * $open_bracket=[ - * $close_bracket=] */ + * $close_bracket=] + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _LST_H_ -#define _LST_H_ +#ifndef __GINAC_LST_H__ +#define __GINAC_LST_H__ #include - #include typedef list exlist; @@ -112,5 +128,5 @@ extern type_info const & typeid_lst; #define ex_to_lst(X) (static_cast(*(X).bp)) -#endif // ndef _LST_H_ +#endif // ndef __GINAC_LST_H__ diff --git a/ginac/lst_suppl.cpp b/ginac/lst_suppl.cpp index 6280169f..ae5910d7 100644 --- a/ginac/lst_suppl.cpp +++ b/ginac/lst_suppl.cpp @@ -1,7 +1,24 @@ /** @file lst_suppl.cpp * * Supplement to lst.cpp, contains the parts which were - * not automatically generated. */ + * not automatically generated. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include "ginac.h" diff --git a/ginac/matrix.cpp b/ginac/matrix.cpp index edf2a945..59863ea5 100644 --- a/ginac/matrix.cpp +++ b/ginac/matrix.cpp @@ -1,6 +1,23 @@ /** @file matrix.cpp * - * Implementation of symbolic matrices */ + * Implementation of symbolic matrices + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/matrix.h b/ginac/matrix.h index 66e89aa4..141437bf 100644 --- a/ginac/matrix.h +++ b/ginac/matrix.h @@ -1,12 +1,27 @@ /** @file matrix.h * - * Interface to symbolic matrices */ + * Interface to symbolic matrices + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _MATRIX_H_ -#define _MATRIX_H_ +#ifndef __GINAC_MATRIX_H__ +#define __GINAC_MATRIX_H__ -#include "basic.h" -#include "ex.h" #include /** Symbolic matrices. */ @@ -130,4 +145,4 @@ inline matrix inverse(matrix const & m) #define ex_to_matrix(X) (static_cast(*(X).bp)) -#endif // ndef _MATRIX_H_ +#endif // ndef __GINAC_MATRIX_H__ diff --git a/ginac/mul.cpp b/ginac/mul.cpp index bf5e70df..ef0af1b7 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -1,6 +1,23 @@ /** @file mul.cpp * - * Implementation of GiNaC's products of expressions. */ + * Implementation of GiNaC's products of expressions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/mul.h b/ginac/mul.h index 6f951c9a..ee199376 100644 --- a/ginac/mul.h +++ b/ginac/mul.h @@ -1,14 +1,29 @@ /** @file mul.h * - * Interface to GiNaC's products of expressions. */ + * Interface to GiNaC's products of expressions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _MUL_H_ -#define _MUL_H_ +#ifndef __GINAC_MUL_H__ +#define __GINAC_MUL_H__ class mul; -#include "expairseq.h" - /** Product of expressions. */ class mul : public expairseq { @@ -99,5 +114,5 @@ extern type_info const & typeid_mul; #define ex_to_mul(X) static_cast(*(X).bp) -#endif // ndef _MUL_H_ +#endif // ndef __GINAC_MUL_H__ diff --git a/ginac/ncmul.cpp b/ginac/ncmul.cpp index 560f7151..be9d8c9d 100644 --- a/ginac/ncmul.cpp +++ b/ginac/ncmul.cpp @@ -1,6 +1,23 @@ /** @file ncmul.cpp * - * Implementation of GiNaC's non-commutative products of expressions. */ + * Implementation of GiNaC's non-commutative products of expressions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/ncmul.h b/ginac/ncmul.h index 1b833b0b..3e7fbc58 100644 --- a/ginac/ncmul.h +++ b/ginac/ncmul.h @@ -1,13 +1,26 @@ /** @file ncmul.h * - * Interface to GiNaC's non-commutative products of expressions. */ - -#ifndef _NCMUL_H_ -#define _NCMUL_H_ - -#include "exprseq.h" + * Interface to GiNaC's non-commutative products of expressions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -class ncmul; +#ifndef __GINAC_NCMUL_H__ +#define __GINAC_NCMUL_H__ /** Non-commutative product of expressions. */ class ncmul : public exprseq @@ -92,5 +105,5 @@ ex simplified_ncmul(exvector const & v); #define ex_to_ncmul(X) static_cast(*(X).bp) -#endif // ndef _NCMUL_H_ +#endif // ndef __GINAC_NCMUL_H__ diff --git a/ginac/normal.cpp b/ginac/normal.cpp index 614b1db1..c0459685 100644 --- a/ginac/normal.cpp +++ b/ginac/normal.cpp @@ -4,6 +4,23 @@ * multivariate polynomials and rational functions. * These functions include polynomial quotient and remainder, GCD and LCM * computation, square-free factorization and rational function normalization. + + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include diff --git a/ginac/normal.h b/ginac/normal.h index 451d1555..731ab5ae 100644 --- a/ginac/normal.h +++ b/ginac/normal.h @@ -1,16 +1,28 @@ /** @file normal.h * * Functions for polynomial quotient and remainder, GCD and LCM computation - * and square-free factorization. */ + * and square-free factorization. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #ifndef NORMAL_H #define NORMAL_H -#include "ex.h" - -class symbol; - - // Quotient q(x) of polynomials a(x) and b(x) in Q[x], so that a(x)=b(x)*q(x)+r(x) extern ex quo(const ex &a, const ex &b, const symbol &x, bool check_args = true); diff --git a/ginac/numeric.cpp b/ginac/numeric.cpp index ae047858..fa17175c 100644 --- a/ginac/numeric.cpp +++ b/ginac/numeric.cpp @@ -4,12 +4,30 @@ * Its most important design principle is to completely hide the inner * working of that other package from the user of GiNaC. It must either * provide implementation of arithmetic operators and numerical evaluation - * of special functions or implement the interface to the bignum package. */ + * of special functions or implement the interface to the bignum package. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include #include "ginac.h" +#include "config.h" // CLN should not pollute the global namespace, hence we include it here // instead of in some header file where it would propagate to other parts: diff --git a/ginac/numeric.h b/ginac/numeric.h index 0b2d28e3..c9bd404b 100644 --- a/ginac/numeric.h +++ b/ginac/numeric.h @@ -1,18 +1,33 @@ /** @file numeric.h * - * Makes the interface to the underlying bignum package available. */ + * Makes the interface to the underlying bignum package available. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _NUMERIC_H_ -#define _NUMERIC_H_ +#ifndef __GINAC_NUMERIC_H__ +#define __GINAC_NUMERIC_H__ #include #define HASHVALUE_NUMERIC 0x80000001U -class numeric; // Forward declaration, so basic doesn't argue... class cl_N; // We want to include cln.h only in numeric.cpp in order to // avoid namespace pollution and keep compile-time low. -#include "basic.h" /** This class is used to instantiate a global object Digits which * behaves just like Maple's Digits. We need an object rather than a @@ -304,4 +319,4 @@ ex CatalanEvalf(void); #define ex_to_numeric(X) static_cast(*(X).bp) -#endif // ndef _NUMERIC_H_ +#endif // ndef __GINAC_NUMERIC_H__ diff --git a/ginac/operators.cpp b/ginac/operators.cpp index abd5061c..b589c3c4 100644 --- a/ginac/operators.cpp +++ b/ginac/operators.cpp @@ -1,6 +1,23 @@ /** @file operators.cpp * - * Implementation of GiNaC's overloaded operators. */ + * Implementation of GiNaC's overloaded operators. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/operators.h b/ginac/operators.h index dfd985f5..7ccd39f6 100644 --- a/ginac/operators.h +++ b/ginac/operators.h @@ -1,16 +1,28 @@ /** @file operators.h * - * Interface to GiNaC's overloaded operators. */ + * Interface to GiNaC's overloaded operators. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _OPERATORS_H_ -#define _OPERATORS_H_ +#ifndef __GINAC_OPERATORS_H__ +#define __GINAC_OPERATORS_H__ #include -#include "basic.h" -#include "ex.h" -#include "numeric.h" -#include "relational.h" - // binary arithmetic operators ex with ex ex operator+(ex const & lh, ex const & rh); @@ -106,5 +118,4 @@ relational operator>=(numeric const & lh, ex const & rh); ostream & operator<<(ostream & os, ex const & e); istream & operator>>(istream & is, ex & e); -#endif // ndef _OPERATORS_H_ - +#endif // ndef __GINAC_OPERATORS_H__ diff --git a/ginac/power.cpp b/ginac/power.cpp index f0b5c5ad..39ad8998 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -1,6 +1,23 @@ /** @file power.cpp * - * Implementation of GiNaC's symbolic exponentiation (basis^exponent). */ + * Implementation of GiNaC's symbolic exponentiation (basis^exponent). + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/power.h b/ginac/power.h index ed9c1467..a946a82f 100644 --- a/ginac/power.h +++ b/ginac/power.h @@ -1,9 +1,26 @@ /** @file power.h * - * Interface to GiNaC's symbolic exponentiation (basis^exponent). */ + * Interface to GiNaC's symbolic exponentiation (basis^exponent). + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _POWER_H_ -#define _POWER_H_ +#ifndef __GINAC_POWER_H__ +#define __GINAC_POWER_H__ class power; class numeric; @@ -99,5 +116,5 @@ inline ex pow(ex const & b, ex const & e) inline ex sqrt(ex const & a) { return power(a,exHALF()); } -#endif // ndef _POWER_H_ +#endif // ndef __GINAC_POWER_H__ diff --git a/ginac/print.cpp b/ginac/print.cpp index e17292a6..8fc1af37 100644 --- a/ginac/print.cpp +++ b/ginac/print.cpp @@ -1,7 +1,24 @@ /** @file print.cpp * * The methods .print() are responsible for the nice default-output of - * objects. All related helper-functions go in here as well. */ + * objects. All related helper-functions go in here as well. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/printcsrc.cpp b/ginac/printcsrc.cpp index 418d3845..34056400 100644 --- a/ginac/printcsrc.cpp +++ b/ginac/printcsrc.cpp @@ -1,7 +1,24 @@ /** @file printcsrc.cpp * * The methods .printcsrc() are responsible for C-source output of - * objects. All related helper-functions go in here as well. */ + * objects. All related helper-functions go in here as well. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/printraw.cpp b/ginac/printraw.cpp index 8315c818..a7046106 100644 --- a/ginac/printraw.cpp +++ b/ginac/printraw.cpp @@ -1,7 +1,24 @@ /** @file printraw.cpp * * print in ugly raw format, so brave developers can have a look at the - * underlying structure. */ + * underlying structure. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ /* We are cheating here, because we don't want to include the underlying * bignum package's headers again, so in this file we omit the definition of diff --git a/ginac/printtree.cpp b/ginac/printtree.cpp index 81881988..d30f5058 100644 --- a/ginac/printtree.cpp +++ b/ginac/printtree.cpp @@ -1,7 +1,24 @@ /** @file printtree.cpp * * print in tree- (indented-) form, so developers can have a look at the - * underlying structure. */ + * underlying structure. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/relational.cpp b/ginac/relational.cpp index 252d8b35..9dad5cc7 100644 --- a/ginac/relational.cpp +++ b/ginac/relational.cpp @@ -1,6 +1,23 @@ /** @file relational.cpp * - * Implementation of relations between expressions */ + * Implementation of relations between expressions + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/relational.h b/ginac/relational.h index 34c592cf..97a9f666 100644 --- a/ginac/relational.h +++ b/ginac/relational.h @@ -1,13 +1,26 @@ /** @file relational.h * - * Interface to relations between expressions. */ - -#ifndef _RELATIONAL_H_ -#define _RELATIONAL_H_ - -class relational; + * Interface to relations between expressions. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#include "basic.h" +#ifndef __GINAC_RELATIONAL_H__ +#define __GINAC_RELATIONAL_H__ /** This class holds a relation consisting of two expressions and a logical * relation between them. */ @@ -80,6 +93,6 @@ extern type_info const & typeid_relational; #define ex_to_relational(X) static_cast(*(X).bp) -#endif // ndef _RELATIONAL_H_ +#endif // ndef __GINAC_RELATIONAL_H__ diff --git a/ginac/series.cpp b/ginac/series.cpp index 9daf656b..668cb6ba 100644 --- a/ginac/series.cpp +++ b/ginac/series.cpp @@ -1,7 +1,24 @@ /** @file series.cpp * * Implementation of class for extended truncated power-series and - * methods for series expansion. */ + * methods for series expansion. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include "ginac.h" diff --git a/ginac/series.h b/ginac/series.h index 89b91267..e0fe511f 100644 --- a/ginac/series.h +++ b/ginac/series.h @@ -1,15 +1,26 @@ /** @file series.h * - * Interface to class for extended truncated power series. */ - -#ifndef _SERIES_H_ -#define _SERIES_H_ - -#include "basic.h" -#include "ex.h" -#include "expairseq.h" -#include "symbol.h" + * Interface to class for extended truncated power series. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef __GINAC_SERIES_H__ +#define __GINAC_SERIES_H__ /** This class holds a extended truncated power series (positive and negative * integer powers). It consists of expression coefficients (only non-zero @@ -74,4 +85,4 @@ extern type_info const & typeid_series; #define ex_to_series(X) (static_cast(*(X).bp)) #define series_to_poly(X) (static_cast(*(X).bp).convert_to_poly(true)) -#endif +#endif // ndef __GINAC_SERIES_H__ diff --git a/ginac/simp_lor.cpp b/ginac/simp_lor.cpp index 32d05b0c..ac8aae06 100644 --- a/ginac/simp_lor.cpp +++ b/ginac/simp_lor.cpp @@ -1,7 +1,24 @@ /** @file simp_lor.cpp * * Implementation of GiNaC's simp_lor objects. - * No real implementation yet, to be done. */ + * No real implementation yet, to be done. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include #include diff --git a/ginac/simp_lor.h b/ginac/simp_lor.h index 8efe1b3d..f765d38f 100644 --- a/ginac/simp_lor.h +++ b/ginac/simp_lor.h @@ -1,9 +1,26 @@ /** @file simp_lor.h * - * Interface to GiNaC's simp_lor objects. */ + * Interface to GiNaC's simp_lor objects. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _SIMP_LOR_H_ -#define _SIMP_LOR_H_ +#ifndef _SIMP__GINAC_LOR_H__ +#define _SIMP__GINAC_LOR_H__ #include #include @@ -11,11 +28,6 @@ #include #include -class simp_lor; - -#include "indexed.h" -#include "lorentzidx.h" - typedef pair strstrpair; typedef pair spmapkey; @@ -147,6 +159,6 @@ ex simplify_simp_lor_mul(ex const & m, scalar_products const & sp); ex simplify_simp_lor(ex const & e, scalar_products const & sp); ex Dim(void); -#endif // ndef _SIMP_LOR_H_ +#endif // ndef _SIMP__GINAC_LOR_H__ diff --git a/ginac/structure.cpp b/ginac/structure.cpp index d17bab24..b155f946 100644 --- a/ginac/structure.cpp +++ b/ginac/structure.cpp @@ -1,6 +1,23 @@ /** @file structure.cpp * - * Implementation of 'abstract' class structure. */ + * Implementation of 'abstract' class structure. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ #include diff --git a/ginac/structure.h b/ginac/structure.h index b1c8bef7..ead2670f 100644 --- a/ginac/structure.h +++ b/ginac/structure.h @@ -1,13 +1,26 @@ /** @file structure.h * - * Interface to 'abstract' class structure. */ - -#ifndef _STRUCTURE_H_ -#define _STRUCTURE_H_ - -class structure; + * Interface to 'abstract' class structure. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#include "basic.h" +#ifndef __GINAC_STRUCTURE_H__ +#define __GINAC_STRUCTURE_H__ struct registered_structure_info { char const * name; @@ -66,5 +79,5 @@ public: extern const structure some_structure; extern type_info const & typeid_structure; -#endif // ndef _STRUCTURE_H_ +#endif // ndef __GINAC_STRUCTURE_H__ diff --git a/ginac/structure.pl b/ginac/structure.pl index 725b03a5..de365ede 100755 --- a/ginac/structure.pl +++ b/ginac/structure.pl @@ -122,13 +122,29 @@ $interface=< @@ -205,6 +221,22 @@ $implementation=< #include diff --git a/ginac/symbol.h b/ginac/symbol.h index a10998ec..8b8e9a76 100644 --- a/ginac/symbol.h +++ b/ginac/symbol.h @@ -1,17 +1,29 @@ /** @file symbol.h * - * Interface to GiNaC's symbolic objects. */ + * Interface to GiNaC's symbolic objects. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _SYMBOL_H_ -#define _SYMBOL_H_ +#ifndef __GINAC_SYMBOL_H__ +#define __GINAC_SYMBOL_H__ #include -class symbol; - -#include "basic.h" -#include "ex.h" - /** Basic CAS symbol. It has a name because it must know how to output itself. * It may be assigned an expression, but this feature is only intended for * programs like 'ginsh' that want to associate symbols with expressions. @@ -108,4 +120,4 @@ inline int degree(symbol const & a, symbol const & s) inline int ldegree(symbol const & a, symbol const & s) { return a.ldegree(s); } -#endif // ndef _SYMBOL_H_ +#endif // ndef __GINAC_SYMBOL_H__ diff --git a/ginac/tinfos.h b/ginac/tinfos.h index de799aa9..1d0f1dc3 100644 --- a/ginac/tinfos.h +++ b/ginac/tinfos.h @@ -1,9 +1,26 @@ /** @file tinfos.h * - * Values for a do-it-yourself typeinfo scheme. */ + * Values for a do-it-yourself typeinfo scheme. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _TINFOS_H_ -#define _TINFOS_H_ +#ifndef __GINAC_TINFOS_H__ +#define __GINAC_TINFOS_H__ #define TINFO_BASIC 0x00000001U @@ -48,4 +65,4 @@ #define TINFO_COLORIDX 0x000d1001U #define TINFO_LORENTZIDX 0x000d1002U -#endif // ndef _TINFOS_H_ +#endif // ndef __GINAC_TINFOS_H__ diff --git a/ginac/utils.cpp b/ginac/utils.cpp index ae0160d4..69d4f461 100644 --- a/ginac/utils.cpp +++ b/ginac/utils.cpp @@ -1,6 +1,23 @@ /** @file utils.cpp * - * Implementation of several small and furry utilities. */ + * Implementation of several small and furry utilities. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ unsigned log2(unsigned n) { diff --git a/ginac/utils.h b/ginac/utils.h index a19aea47..259527ee 100644 --- a/ginac/utils.h +++ b/ginac/utils.h @@ -1,9 +1,26 @@ /** @file utils.h * - * Interface to several small and furry utilities. */ + * Interface to several small and furry utilities. + * + * GiNaC Copyright (C) 1999 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ -#ifndef _UTILS_H_ -#define _UTILS_H_ +#ifndef __GINAC_UTILS_H__ +#define __GINAC_UTILS_H__ #include #include @@ -72,4 +89,4 @@ OutputIterator mymerge3(InputIterator1 first1, InputIterator1 last1, } } -#endif // ndef _UTILS_H_ +#endif // ndef __GINAC_UTILS_H__ -- 2.44.0