4.104.115
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1988-2002. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * All rights reserved. |
---|
5 | * |
---|
6 | * $Id$ |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef __PDL2AMI_h |
---|
10 | #define __PDL2AMI_h |
---|
11 | |
---|
12 | #include "system.h" |
---|
13 | #include "chain.h" |
---|
14 | |
---|
15 | /* |
---|
16 | * Paragraph size should be kept down because it is allocated for each |
---|
17 | * Line_Control. If this number is large, the memory requirements for |
---|
18 | * the program increase significantly. |
---|
19 | */ |
---|
20 | |
---|
21 | #define BUFFER_SIZE (2 * 1024) |
---|
22 | #define PARAGRAPH_SIZE (2 * 1024) |
---|
23 | |
---|
24 | #define NUMBER_ELEMENTS( _x ) (sizeof(_x) / sizeof _x[0]) |
---|
25 | |
---|
26 | void exit_application( |
---|
27 | int status |
---|
28 | ); |
---|
29 | |
---|
30 | void ProcessFile( |
---|
31 | char *inname, |
---|
32 | char *outname |
---|
33 | ); |
---|
34 | |
---|
35 | void strtolower( |
---|
36 | char *dest, |
---|
37 | char *src |
---|
38 | ); |
---|
39 | |
---|
40 | void strtoInitialCaps( |
---|
41 | char *dest, |
---|
42 | char *src |
---|
43 | ); |
---|
44 | |
---|
45 | void StripBlanks( void ); |
---|
46 | |
---|
47 | void MergeParagraphs( void ); |
---|
48 | |
---|
49 | int CheckForIncomplete( void ); |
---|
50 | |
---|
51 | int CheckOutline( void ); |
---|
52 | |
---|
53 | int CheckSections( void ); |
---|
54 | |
---|
55 | void GenerateLists( void ); |
---|
56 | |
---|
57 | void GenerateAList( |
---|
58 | char *section, |
---|
59 | Chain_Control *the_list |
---|
60 | ); |
---|
61 | |
---|
62 | void LookForInternalInconsistencies( void ); |
---|
63 | |
---|
64 | int Match_Argument( |
---|
65 | char **array, |
---|
66 | int entries, |
---|
67 | char *users |
---|
68 | ); |
---|
69 | |
---|
70 | void usage( void ); |
---|
71 | |
---|
72 | void ReadFileIntoChain( |
---|
73 | char *inname |
---|
74 | ); |
---|
75 | |
---|
76 | int MergeText( void ); |
---|
77 | |
---|
78 | int CheckForBadWhiteSpace(); |
---|
79 | |
---|
80 | void RemoveCopyright(); |
---|
81 | |
---|
82 | void RemovePagebreaks(); |
---|
83 | |
---|
84 | int RemoveExtraBlankLines(); |
---|
85 | |
---|
86 | void FormatToTexinfo( void ); |
---|
87 | |
---|
88 | void PrintFile( |
---|
89 | char *out |
---|
90 | ); |
---|
91 | |
---|
92 | void DumpList( |
---|
93 | Chain_Control *the_list |
---|
94 | ); |
---|
95 | |
---|
96 | void ReleaseFile(); |
---|
97 | |
---|
98 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.