]> www.ginac.de Git - ginac.git/blobdiff - check/parser_memleak.cpp
[PATCH 2/2] chinrem_gcd: return correct integer content when GCD is a number.
[ginac.git] / check / parser_memleak.cpp
index f347ce9aca10c471502de492e0a5478d1c65cccf..b264d334892417669c0fe2aefa931d8caf936932 100644 (file)
@@ -1,18 +1,39 @@
-/**
- * This small program exhibits the memory leak in the ginac_yylex().
- * Run it as
+/** @file parser_memleak.cpp
  *
- * valgrind --leak-check=yes  ./parser_memleak
+ *  This small program exhibits the memory leak in the ginac_yylex().
+ *  Run it as
  *
- * or simply
+ *  valgrind --leak-check=yes  ./parser_memleak
  *
- * ulimit -v `expr 64 \* 1024` ./parser_memleak
+ *  or simply
+ *
+ *  ulimit -v `expr 64 \* 1024` ./parser_memleak
+ */
+
+/*
+ *  GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
+
+#include <ginac/ginac.h>
+using namespace GiNaC;
+
 #include <iostream>
 #include <stdexcept>
-#include <ginac/ginac.h>
 using namespace std;
-using namespace GiNaC;
 
 int main(int argc, char** argv) {
        const symbol x("x"), y("y");