Create externally referencable header file "gnumake.h".

Move the gmk_floc type to gnumake.h.
This commit is contained in:
Paul Smith 2013-01-20 13:39:54 -05:00
parent 51fb930ef2
commit ac1c6b404a
3 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,9 @@
2013-01-20 Paul Smith <psmith@gnu.org>
* gnumake.h: New file to contain externally-visible content.
* makeint.h: Include gnumake.h. Move gmk_floc type to gnumake.h.
* Makefile.am (include_HEADERS): Install the gnumake.h header.
* makeint.h: Change struct floc to gmk_floc typedef.
* Many: Use the new typedef.

View File

@ -31,6 +31,7 @@ endif
SUBDIRS = glob config po doc $(MAYBE_W32)
bin_PROGRAMS = make
include_HEADERS = gnumake.h
if USE_CUSTOMS
remote = remote-cstms.c

View File

@ -47,6 +47,9 @@ char *alloca ();
# define NDEBUG 1
#endif
/* Include the externally-visible content.
Be sure to use the local one, and not one installed on the system. */
#include "gnumake.h"
#ifdef CRAY
/* This must happen before #include <signal.h> so
@ -362,11 +365,6 @@ extern int unixy_shell;
extern struct rlimit stack_limit;
#endif
typedef struct
{
const char *filenm;
unsigned long lineno;
} gmk_floc;
#define NILF ((gmk_floc *)0)
#define CSTRLEN(_s) (sizeof (_s)-1)