Attached is the "real" tested patch, which now builds with gcc 4.3.
HTH. Kumar -- Kumar Appaiah, 458, Jamuna Hostel, Indian Institute of Technology Madras, Chennai - 600 036
diff -Nru pretzel-2.0n-2/attr/attrtest.nw pretzel-2.0n-2/attr/attrtest.nw
--- pretzel-2.0n-2/attr/attrtest.nw 1996-12-16 22:15:31.000000000 +0530
+++ pretzel-2.0n-2/attr/attrtest.nw 2008-03-09 23:25:49.000000000 +0530
@@ -30,7 +30,7 @@
#include"attr.h"
#include"output.h"
-#include<iostream.h>
+#include<iostream>
int main()
{
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/contrib/aj/gcl.l /tmp/mASu7yaJTq/pretzel-2.0n-2/contrib/aj/gcl.l
--- pretzel-2.0n-2/contrib/aj/gcl.l 1998-06-11 18:45:25.000000000 +0530
+++ pretzel-2.0n-2/contrib/aj/gcl.l 2008-03-09 23:25:50.000000000 +0530
@@ -6,7 +6,7 @@
%{
/* some needed headers: */
-#include<iostream.h>
+#include<iostream>
#include"attr.h"
/* we'll define yywrap() which is needed for the scanner
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/contrib/aj/gcl.lex.c /tmp/mASu7yaJTq/pretzel-2.0n-2/contrib/aj/gcl.lex.c
--- pretzel-2.0n-2/contrib/aj/gcl.lex.c 1998-06-11 18:45:27.000000000 +0530
+++ pretzel-2.0n-2/contrib/aj/gcl.lex.c 2008-03-09 23:25:50.000000000 +0530
@@ -440,7 +440,7 @@
#line 7 "gcl.l"
/* some needed headers: */
-#include<iostream.h>
+#include<iostream>
#include"attr.h"
/* we'll define yywrap() which is needed for the scanner
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/contrib/noweb/cee.html/prettycee2html.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/contrib/noweb/cee.html/prettycee2html.nw
--- pretzel-2.0n-2/contrib/noweb/cee.html/prettycee2html.nw 1996-12-17 00:25:11.000000000 +0530
+++ pretzel-2.0n-2/contrib/noweb/cee.html/prettycee2html.nw 2008-03-09 23:25:50.000000000 +0530
@@ -111,7 +111,7 @@
\begin{verbatim}
// abstract base class of prettyprinter:
- #include<iostream.h>
+ #include<iostream>
#include"attr.h"
#include"output.h"
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/contrib/noweb/general/nowebpretzelpp.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/contrib/noweb/general/nowebpretzelpp.nw
--- pretzel-2.0n-2/contrib/noweb/general/nowebpretzelpp.nw 2004-08-21 22:40:55.000000000 +0530
+++ pretzel-2.0n-2/contrib/noweb/general/nowebpretzelpp.nw 2008-03-09 23:25:50.000000000 +0530
@@ -104,7 +104,7 @@
\begin{verbatim}
// abstract base class of prettyprinter:
- #include<iostream.h>
+ #include<iostream>
#include"attr.h"
#include"output.h"
Binary files /tmp/SZYIq6Tmgj/pretzel-2.0n-2/doc/pretzelbook/pretzelbook-1st-ed.dvi and /tmp/mASu7yaJTq/pretzel-2.0n-2/doc/pretzelbook/pretzelbook-1st-ed.dvi differ
Binary files /tmp/SZYIq6Tmgj/pretzel-2.0n-2/doc/pretzelbook/pretzelbook.dvi and /tmp/mASu7yaJTq/pretzel-2.0n-2/doc/pretzelbook/pretzelbook.dvi differ
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/doc/pretzelbook/pretzelbook.tex /tmp/mASu7yaJTq/pretzel-2.0n-2/doc/pretzelbook/pretzelbook.tex
--- pretzel-2.0n-2/doc/pretzelbook/pretzelbook.tex 1998-06-11 18:23:39.000000000 +0530
+++ pretzel-2.0n-2/doc/pretzelbook/pretzelbook.tex 2008-03-09 23:25:50.000000000 +0530
@@ -1839,7 +1839,7 @@
% why isn't this prettyprinted? XXX
%
\begin{verbatim}
-#include<iostream.h>
+#include<iostream>
#include"attr.h"
class Pscan {
@@ -1927,7 +1927,7 @@
[EMAIL PROTECTED] class}
%
\begin{verbatim}
-#include<iostream.h>
+#include<iostream>
#include"attr.h"
#include"output.h"
@@ -2027,7 +2027,7 @@
like this:
%
\begin{verbatim}
-#include <iostream.h>
+#include <iostream>
#include "Ppparse.h"
int main () {
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/doc/project.report/chap2.tex /tmp/mASu7yaJTq/pretzel-2.0n-2/doc/project.report/chap2.tex
--- pretzel-2.0n-2/doc/project.report/chap2.tex 1996-12-14 00:13:01.000000000 +0530
+++ pretzel-2.0n-2/doc/project.report/chap2.tex 2008-03-09 23:25:50.000000000 +0530
@@ -665,7 +665,7 @@
* a minimal main program to test a pretzel prettyprinter
*/
-#include <iostream.h>
+#include <iostream>
#include "pparse.h" // include the header of the prettyprinter
int main () {
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/doc/project.report/slides.tex /tmp/mASu7yaJTq/pretzel-2.0n-2/doc/project.report/slides.tex
--- pretzel-2.0n-2/doc/project.report/slides.tex 1996-12-14 00:14:23.000000000 +0530
+++ pretzel-2.0n-2/doc/project.report/slides.tex 2008-03-09 23:25:50.000000000 +0530
@@ -454,7 +454,7 @@
Simples Hauptprogramm:
\begin{verbatim}
- #include <iostream.h>
+ #include <iostream>
#include "pparse.h"
int main () {
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/fgrammar/fgrammar.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/fgrammar/fgrammar.nw
--- pretzel-2.0n-2/fgrammar/fgrammar.nw 1996-03-21 13:43:58.000000000 +0530
+++ pretzel-2.0n-2/fgrammar/fgrammar.nw 2008-03-09 23:25:49.000000000 +0530
@@ -43,10 +43,12 @@
and look whether the output makes sense.
<<implementation>>=
-#include<iostream.h>
-#include<fstream.h>
+#include<iostream>
+#include<fstream>
#include<stdio.h>
+using namespace std;
+
#include"fgparse.h"
int
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/fgrammar/fgscan.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/fgrammar/fgscan.nw
--- pretzel-2.0n-2/fgrammar/fgscan.nw 1996-09-13 00:14:36.000000000 +0530
+++ pretzel-2.0n-2/fgrammar/fgscan.nw 2008-03-09 23:25:49.000000000 +0530
@@ -137,7 +137,9 @@
<<Header files to include in the specification>>=
#include"attr.h" /* the Attribute class */
-#include<iostream.h>
+#include<iostream>
+
+using namespace std;
@
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/ftokens/ftokens.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/ftokens/ftokens.nw
--- pretzel-2.0n-2/ftokens/ftokens.nw 2004-08-21 22:40:55.000000000 +0530
+++ pretzel-2.0n-2/ftokens/ftokens.nw 2008-03-09 23:25:50.000000000 +0530
@@ -44,11 +44,13 @@
<<implementation>>=
-#include<iostream.h>
-#include<fstream.h>
+#include<iostream>
+#include<fstream>
#include<stdio.h>
#include<stdlib.h>
+using namespace std;
+
#include"ftparse.h"
//extern int yydebug;
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/ftokens/ftparse.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/ftokens/ftparse.nw
--- pretzel-2.0n-2/ftokens/ftparse.nw 2004-08-21 22:40:55.000000000 +0530
+++ pretzel-2.0n-2/ftokens/ftparse.nw 2008-03-09 23:25:50.000000000 +0530
@@ -147,7 +147,9 @@
These are the header files needed.
<<Header files to include in the specification>>=
-#include <iostream.h>
+#include <iostream>
+
+using namespace std;
@
@@ -372,7 +374,7 @@
\label{pretscanspecs}
<<abstract base class for [[Pscan]]>>=
-#include<iostream.h>
+#include<iostream>
#include"attr.h"
class Pscan {
@@ -576,7 +578,7 @@
<<contents of [[initial_lines]]>>=
"%{ \n\n",
" /* some needed headers: */ \n",
- "#include<iostream.h> \n",
+ "#include<iostream> \n",
"#include\"attr.h\" \n\n",
" /* we'll define yywrap() which is needed for the scanner\n",
" * here, so we won't have to bother about it if we're \n",
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/ftokens/ftscan.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/ftokens/ftscan.nw
--- pretzel-2.0n-2/ftokens/ftscan.nw 1996-12-16 23:02:04.000000000 +0530
+++ pretzel-2.0n-2/ftokens/ftscan.nw 2008-03-09 23:25:50.000000000 +0530
@@ -134,7 +134,9 @@
<<Header files to include in the specification>>=
#include"attr.h" /* the Attribute class */
-#include<iostream.h>
+#include<iostream>
+
+using namespace std;
@
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/ftokens/test.output.correct /tmp/mASu7yaJTq/pretzel-2.0n-2/ftokens/test.output.correct
--- pretzel-2.0n-2/ftokens/test.output.correct 1998-06-11 16:22:13.000000000 +0530
+++ pretzel-2.0n-2/ftokens/test.output.correct 2008-03-09 23:25:50.000000000 +0530
@@ -6,7 +6,7 @@
%{
/* some needed headers: */
-#include<iostream.h>
+#include<iostream>
#include"attr.h"
/* we'll define yywrap() which is needed for the scanner
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/languages/pascal/multiple.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/languages/pascal/multiple.nw
--- pretzel-2.0n-2/languages/pascal/multiple.nw 1996-12-17 13:26:46.000000000 +0530
+++ pretzel-2.0n-2/languages/pascal/multiple.nw 2008-03-09 23:25:50.000000000 +0530
@@ -30,7 +30,7 @@
\begin{verbatim}
// abstract base class of prettyprinter:
- #include<iostream.h>
+ #include<iostream>
#include"attr.h"
#include"output.h"
@@ -135,8 +135,8 @@
@
<<Header files to include>>=
-#include <iostream.h>
-#include <fstream.h>
+#include <iostream>
+#include <fstream>
#include <assert.h>
@
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/main/pascal.correct.l /tmp/mASu7yaJTq/pretzel-2.0n-2/main/pascal.correct.l
--- pretzel-2.0n-2/main/pascal.correct.l 2004-08-21 22:40:55.000000000 +0530
+++ pretzel-2.0n-2/main/pascal.correct.l 2008-03-09 23:25:49.000000000 +0530
@@ -6,7 +6,7 @@
%{
/* some needed headers: */
-#include<iostream.h>
+#include<iostream>
#include"attr.h"
/* we'll define yywrap() which is needed for the scanner
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/main/plaindpp.c /tmp/mASu7yaJTq/pretzel-2.0n-2/main/plaindpp.c
--- pretzel-2.0n-2/main/plaindpp.c 1996-12-16 23:03:42.000000000 +0530
+++ pretzel-2.0n-2/main/plaindpp.c 2008-03-09 23:25:49.000000000 +0530
@@ -6,7 +6,7 @@
* (this one turns the debugging features on by default)
*/
-#include <iostream.h>
+#include <iostream>
#include "Ppparse.h"
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/main/plainpp.c /tmp/mASu7yaJTq/pretzel-2.0n-2/main/plainpp.c
--- pretzel-2.0n-2/main/plainpp.c 1996-12-16 23:03:43.000000000 +0530
+++ pretzel-2.0n-2/main/plainpp.c 2008-03-09 23:25:49.000000000 +0530
@@ -5,7 +5,9 @@
/* a minimal main program for the generated prettyprinter
*/
-#include <iostream.h>
+#include <iostream>
+
+using namespace std;
#include "Ppparse.h"
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/main/pretzel.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/main/pretzel.nw
--- pretzel-2.0n-2/main/pretzel.nw 1998-02-09 21:19:37.000000000 +0530
+++ pretzel-2.0n-2/main/pretzel.nw 2008-03-09 23:25:49.000000000 +0530
@@ -224,8 +224,10 @@
will be included later.
<<Header files to include>>=
-#include <iostream.h>
+#include <iostream>
#include <stdlib.h>
+
+using namespace std;
@
And since some (really old) operating systems don't have the
@@ -451,7 +453,9 @@
@ We need the {\tt fstream.h} header to do this.
<<Header files to include>>=
-#include<fstream.h>
+#include<fstream>
+
+using namespace std;
@ Of course not all of the input and output streams are really used
during every run of the program. For instance there will be no need of
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/man/pretzel.1 /tmp/mASu7yaJTq/pretzel-2.0n-2/man/pretzel.1
--- pretzel-2.0n-2/man/pretzel.1 1998-06-11 19:26:22.000000000 +0530
+++ pretzel-2.0n-2/man/pretzel.1 2008-03-09 23:25:50.000000000 +0530
@@ -567,7 +567,7 @@
.RS
.B
-#include<iostream.h>
+#include<iostream>
.PP
.B
#include"attr.h"
@@ -648,7 +648,7 @@
in the pretzel include directory):
.RS
-.B #include<iostream.h>
+.B #include<iostream>
.B #include"attr.h"
.B class Pscan {
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/output/output.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/output/output.nw
--- pretzel-2.0n-2/output/output.nw 2004-08-21 22:40:55.000000000 +0530
+++ pretzel-2.0n-2/output/output.nw 2008-03-09 23:25:49.000000000 +0530
@@ -647,7 +647,9 @@
specification.
<<Header files to include in the specification>>=
-#include<iostream.h>
+#include<iostream>
+
+using namespace std;
@
diff -Nru /tmp/SZYIq6Tmgj/pretzel-2.0n-2/output/outtest.nw /tmp/mASu7yaJTq/pretzel-2.0n-2/output/outtest.nw
--- pretzel-2.0n-2/output/outtest.nw 1996-12-16 22:57:08.000000000 +0530
+++ pretzel-2.0n-2/output/outtest.nw 2008-03-09 23:25:49.000000000 +0530
@@ -34,7 +34,9 @@
times: First in normal mode and then in debug mode.
<<implementation>>=
-#include<iostream.h>
+#include<iostream>
+
+using namespace std;
#include"output.h"
<<Global variables>>
signature.asc
Description: Digital signature

