diff -bB -r -u html2text-1.3.1/Area.C html2text-1.3.1-Patch_C/Area.C
--- html2text-1.3.1/Area.C Tue Nov 2 18:57:49 1999
+++ html2text-1.3.1-Patch_C/Area.C Wed Jul 2 21:58:32 2003
@@ -1,40 +1,32 @@
-/* ------------------------------------------------------------------------- */
+ /***************************************************************************/
/*
- * Copyright (c) 1999
- * GMRS Software GmbH, Innsbrucker Ring 159, 81669 Munich, Germany.
- * http://www.gmrs.de
+ * Portions Copyright (c) 1999 GMRS Software GmbH
+ * Carl-von-Linde-Str. 38, D-85716 Unterschleissheim, http://www.gmrs.de
* All rights reserved.
- * Author: Arno Unkrig (arno.unkrig@gmrs.de)
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by GMRS Software GmbH.
- * 4. The name of GMRS Software GmbH may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
+ * Author: Arno Unkrig
+ */
+
+/* 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 SOFTWARE IS PROVIDED BY GMRS SOFTWARE GMBH ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GMRS SOFTWARE GMBH BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * 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 in the file COPYING for more details.
*/
-/* ------------------------------------------------------------------------- */
+ /***************************************************************************/
+
+/*
+ * Changes to version 1.2.2 were made by Martin Bayer
+ * Dates and reasons of modifications:
+ * Wed Jul 2 21:56:45 CEST 2003: ported to g++ 3.3
+ */
+
+ /***************************************************************************/
@@ -42,6 +34,6 @@
#include
#include
-#include
+#include
#include "Area.h"
#include "string.h"
@@ -477,7 +468,7 @@
}
}
}
- os << endl;
+ os << std::endl;
}
return os;
diff -bB -r -u html2text-1.3.1/Area.h html2text-1.3.1-Patch_C/Area.h
--- html2text-1.3.1/Area.h Thu Oct 4 22:18:09 2001
+++ html2text-1.3.1-Patch_C/Area.h Wed Jul 2 22:00:00 2003
@@ -7,13 +7,6 @@
* All rights reserved.
*
* Author: Arno Unkrig
- *
- * All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * "This product includes software developed by GMRS Software GmbH."
- * The name of GMRS Software GmbH may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
*/
/* This program is free software; you can redistribute it and/or modify
@@ -33,6 +26,7 @@
* Changes to version 1.2.2 were made by Martin Bayer
* Dates and reasons of modifications:
* Thu Oct 4 21:21:10 CEST 2001: ported to g++ 3.0
+ * Wed Jul 2 21:59:41 CEST 2003: ported to g++ 3.3
*/
/***************************************************************************/
@@ -46,7 +40,7 @@
#include
#include
-#include
+#include
#ifdef BOOL_DEFINITION
BOOL_DEFINITION
diff -bB -r -u html2text-1.3.1/CREDITS html2text-1.3.1-Patch_C/CREDITS
--- html2text-1.3.1/CREDITS Mon Sep 2 11:51:10 2002
+++ html2text-1.3.1-Patch_C/CREDITS Wed Jul 2 22:13:37 2003
@@ -1,4 +1,4 @@
-## CREDITS - Thanks to... Mon Sep 2 11:50:47 CEST 2002
+## CREDITS - Thanks to... Wed Jul 2 22:12:38 CEST 2003
## ===========================================================================
#
# Since september 2000, these people have contributed to the development of
@@ -13,6 +13,9 @@
Arno Unkrig
+ almost all bugfixes in 1.3.1. Thanks!
+
+Nicolas Boullis
+ + ported to g++-3.3 (this change is not backward-compatible)
## ---------------------------------------------------------------------------
diff -bB -r -u html2text-1.3.1/HTMLControl.C html2text-1.3.1-Patch_C/HTMLControl.C
--- html2text-1.3.1/HTMLControl.C Sun Apr 7 16:30:27 2002
+++ html2text-1.3.1-Patch_C/HTMLControl.C Wed Jul 2 22:00:43 2003
@@ -27,12 +27,13 @@
* Dates and reasons of modifications:
* Fre Jun 8 17:20:38 CEST 2001: fixed coredump
* Sun Apr 7 11:31:10 CEST 2002: fixed parser errors
+ * Wed Jul 2 22:00:21 CEST 2003: ported to g++ 3.3
*/
/***************************************************************************/
-#include
+#include
#include
#include
#include
@@ -423,15 +424,15 @@
if (c != '>') return SCAN_ERROR;
if (debug_scanner) {
- cerr << "Scanned tag \"<" << (is_end_tag ? "/" : "") << tag_name;
+ std::cerr << "Scanned tag \"<" << (is_end_tag ? "/" : "") << tag_name;
if (!is_end_tag && tag_attributes.get()) {
const list &ta(*tag_attributes);
list::const_iterator j;
for (j = ta.begin(); j != ta.end(); ++j) {
- cerr << " " << (*j).first << "=\"" << (*j).second << "\"";
+ std::cerr << " " << (*j).first << "=\"" << (*j).second << "\"";
}
}
- cerr << ">\"" << endl;
+ std::cerr << ">\"" << std::endl;
}
/*
@@ -445,7 +446,7 @@
);
if (tag == NULL) { /* EXTENSION: Swallow unknown tags. */
if (debug_scanner) {
- cerr << "Tag unknown -- swallowed." << endl;
+ std::cerr << "Tag unknown -- swallowed." << std::endl;
}
continue;
}
@@ -456,7 +457,7 @@
if (is_end_tag) {
if (!tag->end_tag_code) {
if (debug_scanner) {
- cerr << "Non-container end tag scanned." << endl;
+ std::cerr << "Non-container end tag scanned." << std::endl;
}
continue;
}
@@ -506,7 +507,7 @@
*/
if (s->empty()) { delete s; continue; }
- if (debug_scanner) cerr << "Scanned PCDATA \"" << *s << "\"" << endl;
+ if (debug_scanner) std::cerr << "Scanned PCDATA \"" << *s << "\"" << std::endl;
return PCDATA;
}
diff -bB -r -u html2text-1.3.1/HTMLControl.h html2text-1.3.1-Patch_C/HTMLControl.h
--- html2text-1.3.1/HTMLControl.h Thu Oct 4 22:06:54 2001
+++ html2text-1.3.1-Patch_C/HTMLControl.h Wed Jul 2 22:01:29 2003
@@ -7,13 +7,6 @@
* All rights reserved.
*
* Author: Arno Unkrig
- *
- * All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * "This product includes software developed by GMRS Software GmbH."
- * The name of GMRS Software GmbH may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
*/
/* This program is free software; you can redistribute it and/or modify
@@ -33,6 +26,7 @@
* Changes to version 1.2.2 were made by Martin Bayer
* Dates and reasons of modifications:
* Thu Oct 4 21:25:07 CEST 2001: ported to g++ 3.0
+ * Wed Jul 2 22:01:12 CEST 2003: ported to g++ 3.3
*/
/***************************************************************************/
@@ -45,7 +39,7 @@
#include "HTMLParser.h"
#include "urlistream.h"
-#include
+#include
using std::istream;
diff -bB -r -u html2text-1.3.1/Makefile.in html2text-1.3.1-Patch_C/Makefile.in
--- html2text-1.3.1/Makefile.in Mon Sep 2 12:06:49 2002
+++ html2text-1.3.1-Patch_C/Makefile.in Wed Jul 2 22:09:32 2003
@@ -23,7 +23,7 @@
#
# -----------------------------------------------------------------------------
-VERSION=1.3.1
+VERSION=1.3.1-Patch_C
BISONXX = bison++
YFLAGS =
diff -bB -r -u html2text-1.3.1/Properties.C html2text-1.3.1-Patch_C/Properties.C
--- html2text-1.3.1/Properties.C Fri Jun 8 17:51:09 2001
+++ html2text-1.3.1-Patch_C/Properties.C Wed Jul 2 22:03:09 2003
@@ -7,52 +7,33 @@
* All rights reserved.
*
* Author: Arno Unkrig
+ */
+
+/* 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.
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by GMRS Software GmbH.
- * 4. The name of GMRS Software GmbH may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
- *
- * THIS SOFTWARE IS PROVIDED BY GMRS SOFTWARE GMBH ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GMRS SOFTWARE GMBH BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
+ * 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 in the file COPYING for more details.
*/
/***************************************************************************/
/*
* Changes to version 1.2.2 were made by Martin Bayer
- * Date and reason of last modification: Fre Jun 8 17:24:35 CEST 2001 - new method
- *
- * 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 file
- * COPYING for more details.
+ * Dates and reasons of modifications:
+ * Fre Jun 8 17:24:35 CEST 2001: new method
+ * Wed Jul 2 22:02:51 CEST 2003: ported to g++ 3.3
*/
/***************************************************************************/
#include
-#include
+#include
#include "Properties.h"
diff -bB -r -u html2text-1.3.1/Properties.h html2text-1.3.1-Patch_C/Properties.h
--- html2text-1.3.1/Properties.h Thu Oct 4 22:39:10 2001
+++ html2text-1.3.1-Patch_C/Properties.h Wed Jul 2 22:03:45 2003
@@ -7,13 +7,6 @@
* All rights reserved.
*
* Author: Arno Unkrig
- *
- * All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * "This product includes software developed by GMRS Software GmbH."
- * The name of GMRS Software GmbH may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
*/
/* This program is free software; you can redistribute it and/or modify
@@ -34,6 +27,7 @@
* Dates and reasons of modifications:
* Fre Jun 8 17:29:50 CEST 2001
* Thu Oct 4 22:38:59 CEST 2001: ported to g++ 3.0
+ * Wed Jul 2 22:03:29 CEST 2003: ported to g++ 3.3
*/
/***************************************************************************/
@@ -51,7 +45,7 @@
#include
#include