summaryrefslogtreecommitdiffstats
path: root/doc/tools/bmenu/base.h
blob: 1720cb814ab9c4a5e862010df9e9da0b55ae772e (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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 *  COPYRIGHT (c) 1988-1999.
 *  On-Line Applications Research Corporation (OAR).
 *  All rights reserved.
 *
 *  $Id$
 */

#ifndef __PDL2AMI_h
#define __PDL2AMI_h

#include "system.h"
#include "chain.h"

#ifndef EXTERN 
#define EXTERN extern
#endif

/*
 *  Paragraph size should be kept down because it is allocated for each
 *  Line_Control.  If this number is large, the memory requirements for
 *  the program increase significantly.
 */

#define BUFFER_SIZE    (2 * 1024)
#define PARAGRAPH_SIZE (2 * 1024)

#define NUMBER_ELEMENTS( _x ) (sizeof(_x) / sizeof _x[0])

void exit_application( 
  int status
);

void ProcessFile(
  char   *inname,
  char   *outname
);

void strtolower(
  char *dest,
  char *src
);

void strtoInitialCaps(
  char *dest,
  char *src
);

void StripBlanks( void );

void MergeParagraphs( void );

int CheckForIncomplete( void );

int CheckOutline( void );

int CheckSections( void );

void GenerateLists( void );

void GenerateAList( 
  char          *section,
  Chain_Control *the_list
);

void LookForInternalInconsistencies( void );

int Match_Argument( 
  char  **array,
  int     entries,
  char   *users
);

void usage( void  );

void ReadFileIntoChain(
  char *inname
);

int MergeText( void );

int CheckForBadWhiteSpace();

void RemoveCopyright();

void RemovePagebreaks();

int RemoveExtraBlankLines();

void FormatToTexinfo( void );

void PrintFile(
   char *out
);

void DumpList( 
  Chain_Control  *the_list
);

void ReleaseFile();

EXTERN boolean          Verbose;                 /* status/debug msgs */
EXTERN boolean          BlankAsWarnings;
EXTERN Chain_Control    Lines;

EXTERN int              NumberOfAttributes;
EXTERN int              NumberOfAssociations;
EXTERN int              NumberOfAbstractTypes;
EXTERN int              NumberOfDataItems;
EXTERN int              NumberOfMethods;
EXTERN int              NumberOfTasks;

#endif