Create externally referencable header file "gnumake.h".
authorPaul Smith <psmith@gnu.org>
Sun, 20 Jan 2013 18:39:54 +0000 (13:39 -0500)
committerPaul Smith <psmith@gnu.org>
Sun, 20 Jan 2013 18:39:54 +0000 (13:39 -0500)
Move the gmk_floc type to gnumake.h.

ChangeLog
Makefile.am
makeint.h

index 2d75dc58d2fa675824dc396819a18084a337f255..a2d2796d832b043496c23336a15eef356c7957be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index 5507750369b41880558f158081ad4032a6a0353a..3e3b4800266a6afb2a1f8b761de78c8171bcdd8e 100644 (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
index 920ea07cb2162550ca9acea0764ce97af3cf9f18..6f2ee675e4cd1a2fd10d83de085c1c8d6b97bd66 100644 (file)
--- a/makeint.h
+++ b/makeint.h
@@ -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)
@@ -424,9 +422,9 @@ int ar_touch (const char *);
 time_t ar_member_date (const char *);
 
 typedef long int (*ar_member_func_t) (int desc, const char *mem, int truncated,
-                                     long int hdrpos, long int datapos,
-                                     long int size, long int date, int uid,
-                                     int gid, int mode, const void *arg);
+                                      long int hdrpos, long int datapos,
+                                      long int size, long int date, int uid,
+                                      int gid, int mode, const void *arg);
 
 long int ar_scan (const char *archive, ar_member_func_t function, const void *arg);
 int ar_name_equal (const char *name, const char *mem, int truncated);