dthelp: fix implicit-function-declaration warnings (mostly)

This commit is contained in:
Jon Trulson
2021-11-16 16:24:58 -07:00
parent cc422524f7
commit 4f16e12ed8
8 changed files with 37 additions and 11 deletions

View File

@@ -46,6 +46,7 @@ $COPYRIGHT$:
#include <sys/stat.h> /* mkdir */
#include <sys/types.h>
#include "StringFuncsI.h"
#include <X11/Xlibint.h> /* _XGetHostname() */
#include <X11/Xos.h> /* FIX: remove? */

View File

@@ -38,6 +38,10 @@ $COPYRIGHT$:
==$END$==============================================================*/
#endif
#ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE 600
#endif
#ifdef HAVE_CONFIG_H
#include <autotools_config.h>
#endif
@@ -71,13 +75,21 @@ $COPYRIGHT$:
#include "Dt/LocaleXlate.h" /* from libDtHelp */
#include "DtI/bufioI.h" /* from libDtHelp; required for AccessI.h */
#include "DtI/FileUtilsI.h" /* from libDtHelp */
#include "DtI/Access.h" /* from libDtHelp */
#include "DtI/AccessI.h" /* from libDtHelp */
#include "GenUtilsP.h" /* from libDtHelp */
#include "HelpXlate.h" /* from libDtHelp */
#include "ObsoleteP.h" /* from libDtHelp */
// lib/DtHelp/FormatTerm.c
int _DtHelpTermCreateCanvas(int maxColumns, _DtCvHandle *ret_canvas);
int _DtHelpTermGetTopicData(_DtCvHandle canvasHandle,
_DtHelpVolumeHdl volHandle,
char *locationId,
char ***helpList,
DtHelpHyperLines **hyperList);
/*#include "AccessI.h" ** from libDtHelp */
/* I can't include AccessI.h because it redefines the Boolean type,
which is also defined in Xt/Intrisincs.h. I'm just including the
prototypes from AccessI.h here. */
extern char * _DtHelpCeGetVolumeLocale(VolumeHandle helpVolumeHandle);
extern const char * _DtHelpCeGetVolumeCharSet(VolumeHandle helpVolumeHandle);