From ca943d6a3f23ffdf0329aa0bf74ad2265ec71a6b Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Wed, 18 Oct 2000 23:13:23 +0200
Subject: [PATCH] Fixes for the "Duplicate local variable" error

Rev: tutorial/Wmml.pmod:1.47
Rev: tutorial/html.pike:1.41
Rev: tutorial/latex.pike:1.19
---
 tutorial/Wmml.pmod  | 1 -
 tutorial/html.pike  | 4 ++--
 tutorial/latex.pike | 3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/tutorial/Wmml.pmod b/tutorial/Wmml.pmod
index b9df1f0d79..1bdb44fa63 100644
--- a/tutorial/Wmml.pmod
+++ b/tutorial/Wmml.pmod
@@ -1148,7 +1148,6 @@ SGML low_make_concrete_wmml(SGML data)
 	    case "see":
 	    {
 	      title="see also";
-	      SGML tmp=({});
 	      string *tmp2=(replace(get_text(args),
 				   ({" ","\n"}),({"",""}))/",")-({""});
 	      if(!sizeof(tmp2))
diff --git a/tutorial/html.pike b/tutorial/html.pike
index c45cde3148..ec036d72f3 100644
--- a/tutorial/html.pike
+++ b/tutorial/html.pike
@@ -1310,9 +1310,9 @@ void output(string base, WMML data)
       string filename=mkfilename(file);
       werror("Anchoring ");
       werror(filename+": WMML->HTML");
-      SGML data=wmml_to_html(sections[file]);
+      SGML data2=wmml_to_html(sections[file]);
       werror("->String");
-      string data=Sgml.generate(data,Html.mktag);
+      string data=Sgml.generate(data2,Html.mktag);
       werror("->disk");
       add_file_to_export_list(filename);
       out::open(filename,"wct");
diff --git a/tutorial/latex.pike b/tutorial/latex.pike
index 2adb085187..ab73c75c17 100644
--- a/tutorial/latex.pike
+++ b/tutorial/latex.pike
@@ -416,7 +416,7 @@ string mkref(string label)
 string convert_table(TAG table)
 {
   SGML data=table->data;
-  int rows,columns,nicer,framed;
+  int rows,nicer;
 
   // FIXME, nicer tables not supported (yet)
 
@@ -440,7 +440,6 @@ string convert_table(TAG table)
     spaced=1;
   }
   framed|=border;
-  array(float) column_data=allocate(100,1.0);
 
 
   int cellpadding=3;
-- 
GitLab