summaryrefslogtreecommitdiff
blob: 23c2ad468d7fb327fc9d728e41f532f7ef38237d (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
diff -urN tidy.old/src/pprint.c tidy-26/src/pprint.c
--- tidy.old/src/pprint.c	2005-08-03 08:58:11.000000000 +0200
+++ tidy-26/src/pprint.c	2006-02-13 17:29:01.000000000 +0100
@@ -40,7 +40,7 @@
 static int  TextEndsWithNewline( Lexer *lexer, Node *node, uint mode );
 static int  TextStartsWithWhitespace( Lexer *lexer, Node *node, uint start, uint mode );
 static Bool InsideHead( TidyDocImpl* doc, Node *node );
-static Bool ShouldIndent( TidyDocImpl* doc, Node *node );
+Bool ShouldIndent( TidyDocImpl* doc, Node *node );
 
 #if SUPPORT_ASIAN_ENCODINGS
 /* #431953 - start RJ Wraplen adjusted for smooth international ride */
@@ -708,7 +708,7 @@
     }
 }
 
-static void PPrintChar( TidyDocImpl* doc, uint c, uint mode )
+void PPrintChar( TidyDocImpl* doc, uint c, uint mode )
 {
     tmbchar entity[128];
     ctmbstr p;
@@ -943,7 +943,7 @@
   to UTF-8 is deferred to the WriteChar() routine called
   to flush the line buffer.
 */
-static void PPrintText( TidyDocImpl* doc, uint mode, uint indent,
+void PPrintText( TidyDocImpl* doc, uint mode, uint indent,
                         Node* node  )
 {
     uint start = node->start;
@@ -984,13 +984,11 @@
     }
 }
 
-#if 0
-static void PPrintString( TidyDocImpl* doc, uint indent, ctmbstr str )
+void PPrintString( TidyDocImpl* doc, uint indent, ctmbstr str )
 {
     while ( *str != '\0' )
         AddChar( &doc->pprint, *str++ );
 }
-#endif /* 0 */
 
 
 static void PPrintAttrValue( TidyDocImpl* doc, uint indent,
@@ -1414,7 +1412,7 @@
     AddChar( pprint, '>' );
 }
 
-static void PPrintComment( TidyDocImpl* doc, uint indent, Node* node )
+void PPrintComment( TidyDocImpl* doc, uint indent, Node* node )
 {
     TidyPrintImpl* pprint = &doc->pprint;
 
@@ -1501,7 +1499,7 @@
     PCondFlushLine( doc, indent );
 }
 
-static void PPrintPI( TidyDocImpl* doc, uint indent, Node *node )
+void PPrintPI( TidyDocImpl* doc, uint indent, Node *node )
 {
     TidyPrintImpl* pprint = &doc->pprint;
     tchar c;
@@ -1532,7 +1530,7 @@
     PCondFlushLine( doc, indent );
 }
 
-static void PPrintXmlDecl( TidyDocImpl* doc, uint indent, Node *node )
+void PPrintXmlDecl( TidyDocImpl* doc, uint indent, Node *node )
 {
     AttVal* att;
     uint saveWrap;
@@ -1620,7 +1618,7 @@
     WrapOn( doc, saveWrap );
 }
 
-static void PPrintCDATA( TidyDocImpl* doc, uint indent, Node *node )
+void PPrintCDATA( TidyDocImpl* doc, uint indent, Node *node )
 {
     uint saveWrap;
     TidyPrintImpl* pprint = &doc->pprint;
@@ -1639,7 +1637,7 @@
     WrapOn( doc, saveWrap );          /* restore wrapping */
 }
 
-static void PPrintSection( TidyDocImpl* doc, uint indent, Node *node )
+void PPrintSection( TidyDocImpl* doc, uint indent, Node *node )
 {
     TidyPrintImpl* pprint = &doc->pprint;
     Bool wrapSect = cfgBool( doc, TidyWrapSection );
@@ -1856,7 +1854,7 @@
 
 
 
-static Bool ShouldIndent( TidyDocImpl* doc, Node *node )
+Bool ShouldIndent( TidyDocImpl* doc, Node *node )
 {
     TidyTriState indentContent = cfgAutoBool( doc, TidyIndentContent );
     if ( indentContent == TidyNoState )