dtdocbook: Change to ANSI function definitions

This commit is contained in:
Peter Howkins
2018-06-28 04:12:10 +01:00
parent 3baf0744f2
commit 948baafd17
51 changed files with 2295 additions and 1978 deletions

View File

@@ -101,7 +101,7 @@ static char *br_help_msg[] = {
/* ______________________________________________________________________ */
void
Browse()
Browse(void)
{
char buf[256], *cmd, **av, **sv, *cmapfile, *sdatafile;
char *Prompt;

View File

@@ -279,7 +279,7 @@ PrintStats(
*/
void
PrintIDList()
PrintIDList(void)
{
ID_t *id;
Element_t *ep;

View File

@@ -127,7 +127,7 @@ static int TclReadLocaleStrings(ClientData clientData,
char *GetOutFileBaseName();
char *
GetCLocale()
GetCLocale(void)
{
_DtXlateDb myDb = NULL;
char myPlatform[_DtPLATFORM_MAX_LEN+1];
@@ -552,7 +552,7 @@ Initialize1(
/* Initialization stuff done after dealing with args. */
static void
Initialize2()
Initialize2(void)
{
SetMappingNV(Variables, "transpec", tranfile ? tranfile : "??");
@@ -582,7 +582,7 @@ Initialize2()
* Arguments:
*
*/
char *GetOutFileBaseName()
char *GetOutFileBaseName(void)
{
char *prefix, *suffix, *cp;
static char nameBuf[_MAXNAMLEN+1] = "";
@@ -761,7 +761,7 @@ static char *help_msg[] = {
};
static void
DoHelpMessage()
DoHelpMessage(void)
{
char **s = help_msg;
printf("usage: %s [option ...] [file]", this_prog);

View File

@@ -601,7 +601,7 @@ if (cp->type == CMD_DATA)
*/
void
GetIDREFnames()
GetIDREFnames(void)
{
char *cp;

View File

@@ -608,7 +608,7 @@ OutputString(
/* ______________________________________________________________________ */
/* resets the output buffer
*/
void ClearOutputBuffer()
void ClearOutputBuffer(void)
{
outputBuffer.current = outputBuffer.base;
}
@@ -617,7 +617,7 @@ outputBuffer.current = outputBuffer.base;
/* determines if there is already some text in the output buffer,
* returns 1 if so, else 0
*/
int OutputBufferActive()
int OutputBufferActive(void)
{
return (outputBuffer.current != outputBuffer.base);
}
@@ -625,7 +625,7 @@ return (outputBuffer.current != outputBuffer.base);
/* ______________________________________________________________________ */
/* terminates output buffer with a null char and returns the buffer
*/
char *GetOutputBuffer()
char *GetOutputBuffer(void)
{
if (CheckOutputBuffer(1))
*(outputBuffer.current)++ = '\0';