forked from Imagelibrary/rtems
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
97 lines
1.4 KiB
C
97 lines
1.4 KiB
C
/*
|
|
* COPYRIGHT (c) 1988-2002.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __PDL2AMI_h
|
|
#define __PDL2AMI_h
|
|
|
|
#include "system.h"
|
|
#include "chain.h"
|
|
|
|
/*
|
|
* 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();
|
|
|
|
#endif
|