summaryrefslogtreecommitdiff
path: root/textproc/htmltolatex/files/patch-CH2L.cpp
blob: 8480ab2dd44e686f950557bc67e5def80ff47aa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- CH2L.cpp.orig	2001-11-11 20:03:19 UTC
+++ CH2L.cpp
@@ -18,6 +18,9 @@
  * Boston, MA 02111-1307, USA.
  *
  */
+
+using namespace std;
+
 #include "CH2L.h"
 #include "util.h"
 #include "safe_ostrstream.h"
@@ -27,8 +30,9 @@
 #include <stdlib.h>
 #include <assert.h>
 #include <fstream>
+#include <cstring>
+#include <strings.h>
 
-using namespace std;
 using namespace Magick;
 
 #define ATTRIBUTENESTLIMIT	1000
@@ -2086,7 +2090,7 @@ void CH2L::make_font_start()
 }
 
 
-void CH2L::_implied_font_end(const string &tagdelimiter="",int iterations=1)
+void CH2L::_implied_font_end(const string &tagdelimiter,int iterations)
 {
 	dump_text();
 	int cnt = 0;
@@ -2225,7 +2229,7 @@ void CH2L::end_sup()
 }
 
 ////////////////////////
-void CH2L::_implied_a_end(const string &tagdelimiter="",int iterations=1)
+void CH2L::_implied_a_end(const string &tagdelimiter,int iterations)
 {
 	dump_text();
 
@@ -3594,7 +3598,7 @@ void CH2L::_idle_tag_end(const string &htmltag)
 }
 
 
-void CH2L::_implied_div_end(const string &tagdelimiter="",int iterations=1) 
+void CH2L::_implied_div_end(const string &tagdelimiter,int iterations) 
 { 
 	bool did_something = false;
 	bool alignment_changed = false;
@@ -3945,7 +3949,7 @@ bool CH2L::openTableDimensionsFile()
 
 		mTableDimensionsFileName = tsp;
 		mTableDimensionsFile.open(tsp.c_str());
-		return mTableDimensionsFile;
+		return true;
 		}
 	else 
 		{