emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r108740: Clean out last vestiges of t


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108740: Clean out last vestiges of the old HAVE_CONFIG_H stuff.
Date: Mon, 25 Jun 2012 18:05:39 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 108740
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Mon 2012-06-25 18:05:39 -0700
message:
  Clean out last vestiges of the old HAVE_CONFIG_H stuff.
modified:
  ChangeLog
  lib-src/ChangeLog
  lib-src/Makefile.in
  lib-src/etags.c
  lib-src/hexl.c
  lib-src/makefile.w32-in
  lib-src/pop.c
  lib/makefile.w32-in
  lwlib/ChangeLog
  lwlib/Makefile.in
  lwlib/lwlib-Xaw.c
  lwlib/lwlib-Xlw.c
  lwlib/lwlib-Xm.c
  lwlib/lwlib-utils.c
  lwlib/lwlib.c
  lwlib/xlwmenu.c
  msdos/ChangeLog
  msdos/sedlibmk.inp
  src/ChangeLog
  src/Makefile.in
  src/gmalloc.c
  src/makefile.w32-in
  src/regex.c
=== modified file 'ChangeLog'
--- a/ChangeLog 2012-06-25 14:07:04 +0000
+++ b/ChangeLog 2012-06-26 01:05:39 +0000
@@ -1,3 +1,8 @@
+2012-06-26  Paul Eggert  <address@hidden>
+
+       Clean out last vestiges of the old HAVE_CONFIG_H stuff.
+       * lib/makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
+
 2012-06-25  Dmitry Antipov  <address@hidden>
 
        * configure.in (AC_CHECK_FUNCS): Detect library functions

=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2012-06-25 14:07:04 +0000
+++ b/lib-src/ChangeLog 2012-06-26 01:05:39 +0000
@@ -1,3 +1,13 @@
+2012-06-26  Paul Eggert  <address@hidden>
+
+       Clean out last vestiges of the old HAVE_CONFIG_H stuff.
+       * Makefile.in (BASE_CFLAGS):
+       * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
+       * etags.c, hexl.c, pop.c: Include <config.h> unconditionally.
+       * etags.c (DOS_NT):
+       * pop.c (MAIL_USE_POP, h_errno):
+       Remove code that was conditioned on !HAVE_CONFIG_H.
+
 2012-06-25  Dmitry Antipov  <address@hidden>
 
        * etags.c (etags_strcasecmp, etags_strncasecmp): Define to

=== modified file 'lib-src/Makefile.in'
--- a/lib-src/Makefile.in       2012-06-22 21:17:42 +0000
+++ b/lib-src/Makefile.in       2012-06-26 01:05:39 +0000
@@ -169,12 +169,9 @@
 ## Some systems define this to request special libraries.
 LIBS_SYSTEM = @LIBS_SYSTEM@
 
-# Those files shared with other GNU utilities need HAVE_CONFIG_H
-# defined before they know they can take advantage of the information
-# in ../src/config.h.
 BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \
              $(WARN_CFLAGS) $(WERROR_CFLAGS) \
-             -DHAVE_CONFIG_H -I. -I../src -I../lib \
+             -I. -I../src -I../lib \
              -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib
 
 ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} 
${CFLAGS}

=== modified file 'lib-src/etags.c'
--- a/lib-src/etags.c   2012-06-25 14:07:04 +0000
+++ b/lib-src/etags.c   2012-06-26 01:05:39 +0000
@@ -91,9 +91,7 @@
 #  define NDEBUG               /* disable assert */
 #endif
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif /* !HAVE_CONFIG_H */
+#include <config.h>
 
 #ifndef _GNU_SOURCE
 # define _GNU_SOURCE 1         /* enables some compiler checks on GNU */
@@ -113,10 +111,6 @@
 # include <fcntl.h>
 # include <sys/param.h>
 # include <io.h>
-# ifndef HAVE_CONFIG_H
-#   define DOS_NT
-#   include <sys/config.h>
-# endif
 #else
 # define MSDOS FALSE
 #endif /* MSDOS */
@@ -167,14 +161,6 @@
 # include <getopt.h>
 #endif /* NO_LONG_OPTIONS */
 
-#ifndef HAVE_CONFIG_H          /* this is a standalone compilation */
-# ifdef __CYGWIN__             /* compiling on Cygwin */
-                            !!! NOTICE !!!
- the regex.h distributed with Cygwin is not compatible with etags, alas!
-If you want regular expression support, you should delete this notice and
-             arrange to use the GNU regex.h and regex.c.
-# endif
-#endif
 #include <regex.h>
 
 /* Define CTAGS to make the program "ctags" compatible with the usual one.

=== modified file 'lib-src/hexl.c'
--- a/lib-src/hexl.c    2012-06-24 17:39:14 +0000
+++ b/lib-src/hexl.c    2012-06-26 01:05:39 +0000
@@ -20,9 +20,7 @@
 along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include <stdio.h>
 #include <ctype.h>

=== modified file 'lib-src/makefile.w32-in'
--- a/lib-src/makefile.w32-in   2012-06-05 17:56:38 +0000
+++ b/lib-src/makefile.w32-in   2012-06-26 01:05:39 +0000
@@ -24,7 +24,7 @@
 .PHONY: make-docfile
 
 LOCAL_FLAGS    = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \
-                 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../lib \
+                 -DNO_ARCHIVES=1 -I../lib \
                  -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS)
 
 LIBS           = $(BASE_LIBS) $(ADVAPI32)

=== modified file 'lib-src/pop.c'
--- a/lib-src/pop.c     2012-05-02 10:12:13 +0000
+++ b/lib-src/pop.c     2012-06-26 01:05:39 +0000
@@ -21,11 +21,7 @@
 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#else
-#define MAIL_USE_POP
-#endif
 
 #ifdef MAIL_USE_POP
 
@@ -101,7 +97,7 @@
 #endif /* KERBEROS */
 
 #ifndef WINDOWSNT
-#if !defined (HAVE_H_ERRNO) || !defined (HAVE_CONFIG_H)
+#ifndef HAVE_H_ERRNO
 extern int h_errno;
 #endif
 #endif

=== modified file 'lib/makefile.w32-in'
--- a/lib/makefile.w32-in       2012-06-24 17:21:20 +0000
+++ b/lib/makefile.w32-in       2012-06-26 01:05:39 +0000
@@ -20,7 +20,7 @@
 
 .PHONY: $(ALL)
 
-LOCAL_FLAGS    = -DHAVE_CONFIG_H=1 -I. -I../nt/inc -I../src
+LOCAL_FLAGS    = -I. -I../nt/inc -I../src
 LIBS           =
 
 GNULIBOBJS = $(BLD)/dtoastr.$(O) \

=== modified file 'lwlib/ChangeLog'
--- a/lwlib/ChangeLog   2012-06-25 14:07:04 +0000
+++ b/lwlib/ChangeLog   2012-06-26 01:05:39 +0000
@@ -1,3 +1,10 @@
+2012-06-26  Paul Eggert  <address@hidden>
+
+       Clean out last vestiges of the old HAVE_CONFIG_H stuff.
+       * Makefile.in (ALL_CFLAGS): Remove -DHAVE_CONFIG_H.
+       * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c:
+       * xlwmenu.c: Include <config.h> unconditionally.
+
 2012-06-25  Dmitry Antipov  <address@hidden>
 
        * lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which

=== modified file 'lwlib/Makefile.in'
--- a/lwlib/Makefile.in 2012-04-14 04:37:44 +0000
+++ b/lwlib/Makefile.in 2012-06-26 01:05:39 +0000
@@ -55,7 +55,7 @@
 ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
   $(C_SWITCH_MACHINE) \
   $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \
-  -DHAVE_CONFIG_H -Demacs -I../src \
+  -Demacs -I../src \
   -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib
 
 .c.o:

=== modified file 'lwlib/lwlib-Xaw.c'
--- a/lwlib/lwlib-Xaw.c 2012-01-19 07:21:25 +0000
+++ b/lwlib/lwlib-Xaw.c 2012-06-26 01:05:39 +0000
@@ -20,9 +20,7 @@
 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include <stdio.h>
 #include <setjmp.h>
@@ -148,7 +146,7 @@
 {
   int w = 0, h = 0;
   char *bp = text;
-  
+
   while (bp && *bp != '\0')
     {
       XGlyphInfo gi;
@@ -227,16 +225,16 @@
   Widget parent = XtParent (widget);
   struct widget_xft_data *data = NULL;
   int nr;
-  while (parent && !inst) 
+  while (parent && !inst)
     {
       inst = lw_get_widget_instance (parent);
       parent = XtParent (parent);
     }
   if (!inst || !inst->xft_data || !inst->xft_data[0].xft_font) return 0;
 
-  for (nr = 0; data == NULL && nr < inst->nr_xft_data; ++nr) 
+  for (nr = 0; data == NULL && nr < inst->nr_xft_data; ++nr)
     {
-      if (inst->xft_data[nr].widget == widget) 
+      if (inst->xft_data[nr].widget == widget)
         data = &inst->xft_data[nr];
     }
 
@@ -250,7 +248,7 @@
                Cardinal *num_params)
 {
   struct widget_xft_data *data = find_xft_data (widget);
-  if (data) 
+  if (data)
     {
       char *lbl;
       /* Since this isn't used for rectangle buttons, use it to for armed.  */
@@ -268,11 +266,11 @@
                Cardinal *num_params)
 {
   struct widget_xft_data *data = find_xft_data (widget);
-  if (data) 
+  if (data)
     {
       Dimension cr;
       XtVaGetValues (widget, XtNcornerRoundPercent, &cr, NULL);
-      if (cr == 1) 
+      if (cr == 1)
         {
           char *lbl;
           XtVaSetValues (widget, XtNcornerRoundPercent, 0, NULL);
@@ -366,14 +364,14 @@
 xaw_destroy_instance (widget_instance *instance)
 {
 #ifdef HAVE_XFT
-  if (instance->xft_data) 
+  if (instance->xft_data)
     {
       int i;
-      for (i = 0; i < instance->nr_xft_data; ++i) 
+      for (i = 0; i < instance->nr_xft_data; ++i)
         {
           if (instance->xft_data[i].xft_draw)
             XftDrawDestroy (instance->xft_data[i].xft_draw);
-          if (instance->xft_data[i].p != None) 
+          if (instance->xft_data[i].p != None)
             {
               XtVaSetValues (instance->xft_data[i].widget, XtNbitmap, None,
                              NULL);
@@ -483,7 +481,7 @@
 static Boolean actions_initted = False;
 
 #ifdef HAVE_XFT
-static XtActionsRec button_actions[] = 
+static XtActionsRec button_actions[] =
   {
     { "my_reset", command_reset },
     { "my_press", command_press },
@@ -563,7 +561,7 @@
     XtVaGetValues (dialog,
                    XtNnumChildren, &num,
                    XtNchildren, &ch, NULL);
-    for (i = 0; i < num; ++i) 
+    for (i = 0; i < num; ++i)
       {
         if (!XtIsSubclass (ch[i], commandWidgetClass)
             && XtIsSubclass (ch[i], labelWidgetClass))
@@ -574,9 +572,9 @@
       }
     instance->xft_data = 0;
     instance->nr_xft_data = 0;
-    if (w) 
+    if (w)
       {
-        XtResource rec[] = 
+        XtResource rec[] =
           { { "font", "Font", XtRString, sizeof(String), 0, XtRString,
               (XtPointer)"Sans-10" }};
         char *fontName = NULL;
@@ -590,8 +588,8 @@
             else
               XFreeFont (XtDisplay (dialog), xfn);
           }
-        
-        if (xft_font) 
+
+        if (xft_font)
           {
             instance->nr_xft_data = left_buttons + right_buttons + 1;
             instance->xft_data = calloc (instance->nr_xft_data,
@@ -639,7 +637,7 @@
     {
       ac = 0;
       XtSetArg (av [ac], XtNfromHoriz, button); ac++;
-      if (i == 0) 
+      if (i == 0)
         {
           /* Separator to the other buttons. */
           XtSetArg (av [ac], XtNhorizDistance, 30); ac++;

=== modified file 'lwlib/lwlib-Xlw.c'
--- a/lwlib/lwlib-Xlw.c 2012-01-19 07:21:25 +0000
+++ b/lwlib/lwlib-Xlw.c 2012-06-26 01:05:39 +0000
@@ -20,9 +20,7 @@
 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include <setjmp.h>
 #include <lisp.h>

=== modified file 'lwlib/lwlib-Xm.c'
--- a/lwlib/lwlib-Xm.c  2012-01-19 07:21:25 +0000
+++ b/lwlib/lwlib-Xm.c  2012-06-26 01:05:39 +0000
@@ -20,9 +20,7 @@
 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include <unistd.h>
 #include <stdio.h>

=== modified file 'lwlib/lwlib-utils.c'
--- a/lwlib/lwlib-utils.c       2012-01-19 07:21:25 +0000
+++ b/lwlib/lwlib-utils.c       2012-06-26 01:05:39 +0000
@@ -20,9 +20,7 @@
 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include <setjmp.h>
 #include <lisp.h>

=== modified file 'lwlib/lwlib.c'
--- a/lwlib/lwlib.c     2012-06-25 14:07:04 +0000
+++ b/lwlib/lwlib.c     2012-06-26 01:05:39 +0000
@@ -20,9 +20,7 @@
 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include <setjmp.h>
 #include <lisp.h>

=== modified file 'lwlib/xlwmenu.c'
--- a/lwlib/xlwmenu.c   2012-06-24 17:39:14 +0000
+++ b/lwlib/xlwmenu.c   2012-06-26 01:05:39 +0000
@@ -22,9 +22,7 @@
 
 /* Created by address@hidden */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include <setjmp.h>
 #include <lisp.h>

=== modified file 'msdos/ChangeLog'
--- a/msdos/ChangeLog   2012-06-11 23:17:11 +0000
+++ b/msdos/ChangeLog   2012-06-26 01:05:39 +0000
@@ -1,3 +1,8 @@
+2012-06-26  Paul Eggert  <address@hidden>
+
+       Clean out last vestiges of the old HAVE_CONFIG_H stuff.
+       * sedlibmk.inp (DEFS): Don't add -DHAVE_CONFIG_H.
+
 2012-06-11  Glenn Morris  <address@hidden>
 
        * sed2v2.inp (SYSTEM_TYPE): Set it.

=== modified file 'msdos/sedlibmk.inp'
--- a/msdos/sedlibmk.inp        2012-05-27 13:42:13 +0000
+++ b/msdos/sedlibmk.inp        2012-06-26 01:05:39 +0000
@@ -136,7 +136,7 @@
 /^GNULIB_WARN_CFLAGS *=/s/@GNULIB_WARN_CFLAGS@//
 /^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
 /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
-/^DEFS *=/s/@address@hidden@/-DHAVE_CONFIG_H/
+/^DEFS *=/s/@address@hidden@//
 /^DEPDIR *=/s/@address@hidden@/deps/
 /^DEPFLAGS *=/s/@address@hidden@/-MMD -MF ${DEPDIR}\/$*.d/
 /^ECHO_N *=/s/@address@hidden@/-n/

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-06-25 14:28:51 +0000
+++ b/src/ChangeLog     2012-06-26 01:05:39 +0000
@@ -1,3 +1,10 @@
+2012-06-26  Paul Eggert  <address@hidden>
+
+       Clean out last vestiges of the old HAVE_CONFIG_H stuff.
+       * Makefile.in (ALL_CFLAGS):
+       * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H.
+       * gmalloc.c, regex.c: Include <config.h> unconditionally.
+
 2012-06-25  Dmitry Antipov  <address@hidden>
 
        * dispextern.h (xstrcasecmp): Define to library function

=== modified file 'src/Makefile.in'
--- a/src/Makefile.in   2012-06-22 21:17:42 +0000
+++ b/src/Makefile.in   2012-06-26 01:05:39 +0000
@@ -303,11 +303,8 @@
 ## -Demacs is needed to make some files produce the correct version
 ## for use in Emacs.
 ##
-## -DHAVE_CONFIG_H is needed for some other files to take advantage of
-## the information in `config.h'.
-##
 ## FIXME? MYCPPFLAGS only referenced in etc/DEBUG.
-ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I$(srcdir) \
+ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \
   -I$(lib) -I$(srcdir)/../lib \
   $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \
   $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \

=== modified file 'src/gmalloc.c'
--- a/src/gmalloc.c     2012-05-21 15:36:54 +0000
+++ b/src/gmalloc.c     2012-06-26 01:05:39 +0000
@@ -21,9 +21,7 @@
    The author may be reached (Email) at the address address@hidden,
    or (US mail) as Mike Haertel c/o Free Software Foundation.  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #ifdef HAVE_PTHREAD
 #define USE_PTHREAD

=== modified file 'src/makefile.w32-in'
--- a/src/makefile.w32-in       2012-06-24 17:57:06 +0000
+++ b/src/makefile.w32-in       2012-06-26 01:05:39 +0000
@@ -27,11 +27,7 @@
 # Size in MBs of the static heap in temacs.exe.
 HEAPSIZE = 27
 
-#
-# HAVE_CONFIG_H is required by some generic gnu sources stuck into
-# the emacs source tree.
-#
-LOCAL_FLAGS     = -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc 
-DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
+LOCAL_FLAGS     = -Demacs=1 -I../lib -I../nt/inc -DHAVE_NTGUI=1 
$(EMACS_EXTRA_C_FLAGS)
 
 SRC             = .
 EMACS           = $(BLD)/emacs.exe

=== modified file 'src/regex.c'
--- a/src/regex.c       2012-06-16 12:24:15 +0000
+++ b/src/regex.c       2012-06-26 01:05:39 +0000
@@ -46,9 +46,7 @@
 # endif
 #endif
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include <stddef.h>
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]