diff options
| author | Paul Eggert | 2012-06-25 18:05:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-06-25 18:05:39 -0700 |
| commit | cf38a720e81b545f90dc7be81891d94df6ed059a (patch) | |
| tree | 421932c3315e5ded7dab371d26820ed3172bfd23 | |
| parent | 414e642ca92b569cd74d26a2879e0e8fe9f8d6be (diff) | |
| download | emacs-cf38a720e81b545f90dc7be81891d94df6ed059a.tar.gz emacs-cf38a720e81b545f90dc7be81891d94df6ed059a.zip | |
Clean out last vestiges of the old HAVE_CONFIG_H stuff.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/ChangeLog | 10 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 16 | ||||
| -rw-r--r-- | lib-src/hexl.c | 2 | ||||
| -rw-r--r-- | lib-src/makefile.w32-in | 2 | ||||
| -rw-r--r-- | lib-src/pop.c | 6 | ||||
| -rw-r--r-- | lib/makefile.w32-in | 2 | ||||
| -rw-r--r-- | lwlib/ChangeLog | 7 | ||||
| -rw-r--r-- | lwlib/Makefile.in | 2 | ||||
| -rw-r--r-- | lwlib/lwlib-Xaw.c | 36 | ||||
| -rw-r--r-- | lwlib/lwlib-Xlw.c | 2 | ||||
| -rw-r--r-- | lwlib/lwlib-Xm.c | 2 | ||||
| -rw-r--r-- | lwlib/lwlib-utils.c | 2 | ||||
| -rw-r--r-- | lwlib/lwlib.c | 2 | ||||
| -rw-r--r-- | lwlib/xlwmenu.c | 2 | ||||
| -rw-r--r-- | msdos/ChangeLog | 5 | ||||
| -rw-r--r-- | msdos/sedlibmk.inp | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/Makefile.in | 5 | ||||
| -rw-r--r-- | src/gmalloc.c | 2 | ||||
| -rw-r--r-- | src/makefile.w32-in | 6 | ||||
| -rw-r--r-- | src/regex.c | 4 |
23 files changed, 61 insertions, 73 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. | ||
| 4 | * lib/makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H. | ||
| 5 | |||
| 1 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | 6 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 7 | ||
| 3 | * configure.in (AC_CHECK_FUNCS): Detect library functions | 8 | * configure.in (AC_CHECK_FUNCS): Detect library functions |
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a04fe215f99..3b4465df607 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. | ||
| 4 | * Makefile.in (BASE_CFLAGS): | ||
| 5 | * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H. | ||
| 6 | * etags.c, hexl.c, pop.c: Include <config.h> unconditionally. | ||
| 7 | * etags.c (DOS_NT): | ||
| 8 | * pop.c (MAIL_USE_POP, h_errno): | ||
| 9 | Remove code that was conditioned on !HAVE_CONFIG_H. | ||
| 10 | |||
| 1 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | 11 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 12 | ||
| 3 | * etags.c (etags_strcasecmp, etags_strncasecmp): Define to | 13 | * etags.c (etags_strcasecmp, etags_strncasecmp): Define to |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index a325fc18aac..fe727c65730 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -169,12 +169,9 @@ LIBS_MOVE = $(LIBS_MAIL) $(KRB4LIB) $(DESLIB) $(KRB5LIB) $(CRYPTOLIB) \ | |||
| 169 | ## Some systems define this to request special libraries. | 169 | ## Some systems define this to request special libraries. |
| 170 | LIBS_SYSTEM = @LIBS_SYSTEM@ | 170 | LIBS_SYSTEM = @LIBS_SYSTEM@ |
| 171 | 171 | ||
| 172 | # Those files shared with other GNU utilities need HAVE_CONFIG_H | ||
| 173 | # defined before they know they can take advantage of the information | ||
| 174 | # in ../src/config.h. | ||
| 175 | BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ | 172 | BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ |
| 176 | $(WARN_CFLAGS) $(WERROR_CFLAGS) \ | 173 | $(WARN_CFLAGS) $(WERROR_CFLAGS) \ |
| 177 | -DHAVE_CONFIG_H -I. -I../src -I../lib \ | 174 | -I. -I../src -I../lib \ |
| 178 | -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib | 175 | -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib |
| 179 | 176 | ||
| 180 | ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} | 177 | ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
diff --git a/lib-src/etags.c b/lib-src/etags.c index f44c1c05393..2e05e37e80f 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -91,9 +91,7 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; | |||
| 91 | # define NDEBUG /* disable assert */ | 91 | # define NDEBUG /* disable assert */ |
| 92 | #endif | 92 | #endif |
| 93 | 93 | ||
| 94 | #ifdef HAVE_CONFIG_H | 94 | #include <config.h> |
| 95 | # include <config.h> | ||
| 96 | #endif /* !HAVE_CONFIG_H */ | ||
| 97 | 95 | ||
| 98 | #ifndef _GNU_SOURCE | 96 | #ifndef _GNU_SOURCE |
| 99 | # define _GNU_SOURCE 1 /* enables some compiler checks on GNU */ | 97 | # define _GNU_SOURCE 1 /* enables some compiler checks on GNU */ |
| @@ -113,10 +111,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; | |||
| 113 | # include <fcntl.h> | 111 | # include <fcntl.h> |
| 114 | # include <sys/param.h> | 112 | # include <sys/param.h> |
| 115 | # include <io.h> | 113 | # include <io.h> |
| 116 | # ifndef HAVE_CONFIG_H | ||
| 117 | # define DOS_NT | ||
| 118 | # include <sys/config.h> | ||
| 119 | # endif | ||
| 120 | #else | 114 | #else |
| 121 | # define MSDOS FALSE | 115 | # define MSDOS FALSE |
| 122 | #endif /* MSDOS */ | 116 | #endif /* MSDOS */ |
| @@ -167,14 +161,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4"; | |||
| 167 | # include <getopt.h> | 161 | # include <getopt.h> |
| 168 | #endif /* NO_LONG_OPTIONS */ | 162 | #endif /* NO_LONG_OPTIONS */ |
| 169 | 163 | ||
| 170 | #ifndef HAVE_CONFIG_H /* this is a standalone compilation */ | ||
| 171 | # ifdef __CYGWIN__ /* compiling on Cygwin */ | ||
| 172 | !!! NOTICE !!! | ||
| 173 | the regex.h distributed with Cygwin is not compatible with etags, alas! | ||
| 174 | If you want regular expression support, you should delete this notice and | ||
| 175 | arrange to use the GNU regex.h and regex.c. | ||
| 176 | # endif | ||
| 177 | #endif | ||
| 178 | #include <regex.h> | 164 | #include <regex.h> |
| 179 | 165 | ||
| 180 | /* Define CTAGS to make the program "ctags" compatible with the usual one. | 166 | /* Define CTAGS to make the program "ctags" compatible with the usual one. |
diff --git a/lib-src/hexl.c b/lib-src/hexl.c index d418eca78c2..08da0075269 100644 --- a/lib-src/hexl.c +++ b/lib-src/hexl.c | |||
| @@ -20,9 +20,7 @@ You should have received a copy of the GNU General Public License | |||
| 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 21 | 21 | ||
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | ||
| 24 | #include <config.h> | 23 | #include <config.h> |
| 25 | #endif | ||
| 26 | 24 | ||
| 27 | #include <stdio.h> | 25 | #include <stdio.h> |
| 28 | #include <ctype.h> | 26 | #include <ctype.h> |
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in index fea1d29592e..f1f42bccb68 100644 --- a/lib-src/makefile.w32-in +++ b/lib-src/makefile.w32-in | |||
| @@ -24,7 +24,7 @@ ALL = $(BLD)/test-distrib.exe $(BLD)/make-docfile.exe $(BLD)/hexl.exe\ | |||
| 24 | .PHONY: make-docfile | 24 | .PHONY: make-docfile |
| 25 | 25 | ||
| 26 | LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \ | 26 | LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DNO_LDAV=1 \ |
| 27 | -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../lib \ | 27 | -DNO_ARCHIVES=1 -I../lib \ |
| 28 | -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS) | 28 | -I../nt/inc -I../src $(EMACS_EXTRA_C_FLAGS) |
| 29 | 29 | ||
| 30 | LIBS = $(BASE_LIBS) $(ADVAPI32) | 30 | LIBS = $(BASE_LIBS) $(ADVAPI32) |
diff --git a/lib-src/pop.c b/lib-src/pop.c index c4c7f2b4e2f..b8ed65c3eac 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c | |||
| @@ -21,11 +21,7 @@ You should have received a copy of the GNU General Public License | |||
| 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 21 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | #ifdef HAVE_CONFIG_H | ||
| 25 | #include <config.h> | 24 | #include <config.h> |
| 26 | #else | ||
| 27 | #define MAIL_USE_POP | ||
| 28 | #endif | ||
| 29 | 25 | ||
| 30 | #ifdef MAIL_USE_POP | 26 | #ifdef MAIL_USE_POP |
| 31 | 27 | ||
| @@ -101,7 +97,7 @@ extern char *krb_realmofhost (/* char * */); | |||
| 101 | #endif /* KERBEROS */ | 97 | #endif /* KERBEROS */ |
| 102 | 98 | ||
| 103 | #ifndef WINDOWSNT | 99 | #ifndef WINDOWSNT |
| 104 | #if !defined (HAVE_H_ERRNO) || !defined (HAVE_CONFIG_H) | 100 | #ifndef HAVE_H_ERRNO |
| 105 | extern int h_errno; | 101 | extern int h_errno; |
| 106 | #endif | 102 | #endif |
| 107 | #endif | 103 | #endif |
diff --git a/lib/makefile.w32-in b/lib/makefile.w32-in index b7ce6dd3b01..92fd7a81848 100644 --- a/lib/makefile.w32-in +++ b/lib/makefile.w32-in | |||
| @@ -20,7 +20,7 @@ ALL = gnulib | |||
| 20 | 20 | ||
| 21 | .PHONY: $(ALL) | 21 | .PHONY: $(ALL) |
| 22 | 22 | ||
| 23 | LOCAL_FLAGS = -DHAVE_CONFIG_H=1 -I. -I../nt/inc -I../src | 23 | LOCAL_FLAGS = -I. -I../nt/inc -I../src |
| 24 | LIBS = | 24 | LIBS = |
| 25 | 25 | ||
| 26 | GNULIBOBJS = $(BLD)/dtoastr.$(O) \ | 26 | GNULIBOBJS = $(BLD)/dtoastr.$(O) \ |
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 13b4b3bb351..7f87c5d8e6a 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. | ||
| 4 | * Makefile.in (ALL_CFLAGS): Remove -DHAVE_CONFIG_H. | ||
| 5 | * lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib-utils.c, lwlib.c: | ||
| 6 | * xlwmenu.c: Include <config.h> unconditionally. | ||
| 7 | |||
| 1 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | 8 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 9 | ||
| 3 | * lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which | 10 | * lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which |
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in index d43d9ca211e..d49f69b58a4 100644 --- a/lwlib/Makefile.in +++ b/lwlib/Makefile.in | |||
| @@ -55,7 +55,7 @@ OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o | |||
| 55 | ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ | 55 | ALL_CFLAGS= $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ |
| 56 | $(C_SWITCH_MACHINE) \ | 56 | $(C_SWITCH_MACHINE) \ |
| 57 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \ | 57 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(PROFILING_CFLAGS) $(CFLAGS) \ |
| 58 | -DHAVE_CONFIG_H -Demacs -I../src \ | 58 | -Demacs -I../src \ |
| 59 | -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib | 59 | -I$(srcdir) -I$(srcdir)/../src -I../lib -I$(srcdir)/../lib |
| 60 | 60 | ||
| 61 | .c.o: | 61 | .c.o: |
diff --git a/lwlib/lwlib-Xaw.c b/lwlib/lwlib-Xaw.c index 0a759e1a0a0..7f834df1aad 100644 --- a/lwlib/lwlib-Xaw.c +++ b/lwlib/lwlib-Xaw.c | |||
| @@ -20,9 +20,7 @@ along with GNU Emacs; see the file COPYING. If not, write to | |||
| 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 | Boston, MA 02110-1301, USA. */ | 21 | Boston, MA 02110-1301, USA. */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | ||
| 24 | #include <config.h> | 23 | #include <config.h> |
| 25 | #endif | ||
| 26 | 24 | ||
| 27 | #include <stdio.h> | 25 | #include <stdio.h> |
| 28 | #include <setjmp.h> | 26 | #include <setjmp.h> |
| @@ -148,7 +146,7 @@ get_text_width_and_height (Widget widget, char *text, | |||
| 148 | { | 146 | { |
| 149 | int w = 0, h = 0; | 147 | int w = 0, h = 0; |
| 150 | char *bp = text; | 148 | char *bp = text; |
| 151 | 149 | ||
| 152 | while (bp && *bp != '\0') | 150 | while (bp && *bp != '\0') |
| 153 | { | 151 | { |
| 154 | XGlyphInfo gi; | 152 | XGlyphInfo gi; |
| @@ -227,16 +225,16 @@ find_xft_data (Widget widget) | |||
| 227 | Widget parent = XtParent (widget); | 225 | Widget parent = XtParent (widget); |
| 228 | struct widget_xft_data *data = NULL; | 226 | struct widget_xft_data *data = NULL; |
| 229 | int nr; | 227 | int nr; |
| 230 | while (parent && !inst) | 228 | while (parent && !inst) |
| 231 | { | 229 | { |
| 232 | inst = lw_get_widget_instance (parent); | 230 | inst = lw_get_widget_instance (parent); |
| 233 | parent = XtParent (parent); | 231 | parent = XtParent (parent); |
| 234 | } | 232 | } |
| 235 | if (!inst || !inst->xft_data || !inst->xft_data[0].xft_font) return 0; | 233 | if (!inst || !inst->xft_data || !inst->xft_data[0].xft_font) return 0; |
| 236 | 234 | ||
| 237 | for (nr = 0; data == NULL && nr < inst->nr_xft_data; ++nr) | 235 | for (nr = 0; data == NULL && nr < inst->nr_xft_data; ++nr) |
| 238 | { | 236 | { |
| 239 | if (inst->xft_data[nr].widget == widget) | 237 | if (inst->xft_data[nr].widget == widget) |
| 240 | data = &inst->xft_data[nr]; | 238 | data = &inst->xft_data[nr]; |
| 241 | } | 239 | } |
| 242 | 240 | ||
| @@ -250,7 +248,7 @@ command_press (Widget widget, | |||
| 250 | Cardinal *num_params) | 248 | Cardinal *num_params) |
| 251 | { | 249 | { |
| 252 | struct widget_xft_data *data = find_xft_data (widget); | 250 | struct widget_xft_data *data = find_xft_data (widget); |
| 253 | if (data) | 251 | if (data) |
| 254 | { | 252 | { |
| 255 | char *lbl; | 253 | char *lbl; |
| 256 | /* Since this isn't used for rectangle buttons, use it to for armed. */ | 254 | /* Since this isn't used for rectangle buttons, use it to for armed. */ |
| @@ -268,11 +266,11 @@ command_reset (Widget widget, | |||
| 268 | Cardinal *num_params) | 266 | Cardinal *num_params) |
| 269 | { | 267 | { |
| 270 | struct widget_xft_data *data = find_xft_data (widget); | 268 | struct widget_xft_data *data = find_xft_data (widget); |
| 271 | if (data) | 269 | if (data) |
| 272 | { | 270 | { |
| 273 | Dimension cr; | 271 | Dimension cr; |
| 274 | XtVaGetValues (widget, XtNcornerRoundPercent, &cr, NULL); | 272 | XtVaGetValues (widget, XtNcornerRoundPercent, &cr, NULL); |
| 275 | if (cr == 1) | 273 | if (cr == 1) |
| 276 | { | 274 | { |
| 277 | char *lbl; | 275 | char *lbl; |
| 278 | XtVaSetValues (widget, XtNcornerRoundPercent, 0, NULL); | 276 | XtVaSetValues (widget, XtNcornerRoundPercent, 0, NULL); |
| @@ -366,14 +364,14 @@ void | |||
| 366 | xaw_destroy_instance (widget_instance *instance) | 364 | xaw_destroy_instance (widget_instance *instance) |
| 367 | { | 365 | { |
| 368 | #ifdef HAVE_XFT | 366 | #ifdef HAVE_XFT |
| 369 | if (instance->xft_data) | 367 | if (instance->xft_data) |
| 370 | { | 368 | { |
| 371 | int i; | 369 | int i; |
| 372 | for (i = 0; i < instance->nr_xft_data; ++i) | 370 | for (i = 0; i < instance->nr_xft_data; ++i) |
| 373 | { | 371 | { |
| 374 | if (instance->xft_data[i].xft_draw) | 372 | if (instance->xft_data[i].xft_draw) |
| 375 | XftDrawDestroy (instance->xft_data[i].xft_draw); | 373 | XftDrawDestroy (instance->xft_data[i].xft_draw); |
| 376 | if (instance->xft_data[i].p != None) | 374 | if (instance->xft_data[i].p != None) |
| 377 | { | 375 | { |
| 378 | XtVaSetValues (instance->xft_data[i].widget, XtNbitmap, None, | 376 | XtVaSetValues (instance->xft_data[i].widget, XtNbitmap, None, |
| 379 | NULL); | 377 | NULL); |
| @@ -483,7 +481,7 @@ static XtActionsRec xaw_actions [] = { | |||
| 483 | static Boolean actions_initted = False; | 481 | static Boolean actions_initted = False; |
| 484 | 482 | ||
| 485 | #ifdef HAVE_XFT | 483 | #ifdef HAVE_XFT |
| 486 | static XtActionsRec button_actions[] = | 484 | static XtActionsRec button_actions[] = |
| 487 | { | 485 | { |
| 488 | { "my_reset", command_reset }, | 486 | { "my_reset", command_reset }, |
| 489 | { "my_press", command_press }, | 487 | { "my_press", command_press }, |
| @@ -563,7 +561,7 @@ make_dialog (char* name, | |||
| 563 | XtVaGetValues (dialog, | 561 | XtVaGetValues (dialog, |
| 564 | XtNnumChildren, &num, | 562 | XtNnumChildren, &num, |
| 565 | XtNchildren, &ch, NULL); | 563 | XtNchildren, &ch, NULL); |
| 566 | for (i = 0; i < num; ++i) | 564 | for (i = 0; i < num; ++i) |
| 567 | { | 565 | { |
| 568 | if (!XtIsSubclass (ch[i], commandWidgetClass) | 566 | if (!XtIsSubclass (ch[i], commandWidgetClass) |
| 569 | && XtIsSubclass (ch[i], labelWidgetClass)) | 567 | && XtIsSubclass (ch[i], labelWidgetClass)) |
| @@ -574,9 +572,9 @@ make_dialog (char* name, | |||
| 574 | } | 572 | } |
| 575 | instance->xft_data = 0; | 573 | instance->xft_data = 0; |
| 576 | instance->nr_xft_data = 0; | 574 | instance->nr_xft_data = 0; |
| 577 | if (w) | 575 | if (w) |
| 578 | { | 576 | { |
| 579 | XtResource rec[] = | 577 | XtResource rec[] = |
| 580 | { { "font", "Font", XtRString, sizeof(String), 0, XtRString, | 578 | { { "font", "Font", XtRString, sizeof(String), 0, XtRString, |
| 581 | (XtPointer)"Sans-10" }}; | 579 | (XtPointer)"Sans-10" }}; |
| 582 | char *fontName = NULL; | 580 | char *fontName = NULL; |
| @@ -590,8 +588,8 @@ make_dialog (char* name, | |||
| 590 | else | 588 | else |
| 591 | XFreeFont (XtDisplay (dialog), xfn); | 589 | XFreeFont (XtDisplay (dialog), xfn); |
| 592 | } | 590 | } |
| 593 | 591 | ||
| 594 | if (xft_font) | 592 | if (xft_font) |
| 595 | { | 593 | { |
| 596 | instance->nr_xft_data = left_buttons + right_buttons + 1; | 594 | instance->nr_xft_data = left_buttons + right_buttons + 1; |
| 597 | instance->xft_data = calloc (instance->nr_xft_data, | 595 | instance->xft_data = calloc (instance->nr_xft_data, |
| @@ -639,7 +637,7 @@ make_dialog (char* name, | |||
| 639 | { | 637 | { |
| 640 | ac = 0; | 638 | ac = 0; |
| 641 | XtSetArg (av [ac], XtNfromHoriz, button); ac++; | 639 | XtSetArg (av [ac], XtNfromHoriz, button); ac++; |
| 642 | if (i == 0) | 640 | if (i == 0) |
| 643 | { | 641 | { |
| 644 | /* Separator to the other buttons. */ | 642 | /* Separator to the other buttons. */ |
| 645 | XtSetArg (av [ac], XtNhorizDistance, 30); ac++; | 643 | XtSetArg (av [ac], XtNhorizDistance, 30); ac++; |
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c index a4467900f8c..e8c59905ab9 100644 --- a/lwlib/lwlib-Xlw.c +++ b/lwlib/lwlib-Xlw.c | |||
| @@ -20,9 +20,7 @@ along with GNU Emacs; see the file COPYING. If not, write to | |||
| 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 | Boston, MA 02110-1301, USA. */ | 21 | Boston, MA 02110-1301, USA. */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | ||
| 24 | #include <config.h> | 23 | #include <config.h> |
| 25 | #endif | ||
| 26 | 24 | ||
| 27 | #include <setjmp.h> | 25 | #include <setjmp.h> |
| 28 | #include <lisp.h> | 26 | #include <lisp.h> |
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index 4f6276850a3..acd11aec6b5 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c | |||
| @@ -20,9 +20,7 @@ along with GNU Emacs; see the file COPYING. If not, write to | |||
| 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 | Boston, MA 02110-1301, USA. */ | 21 | Boston, MA 02110-1301, USA. */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | ||
| 24 | #include <config.h> | 23 | #include <config.h> |
| 25 | #endif | ||
| 26 | 24 | ||
| 27 | #include <unistd.h> | 25 | #include <unistd.h> |
| 28 | #include <stdio.h> | 26 | #include <stdio.h> |
diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c index 9286691639f..65cda72fdd8 100644 --- a/lwlib/lwlib-utils.c +++ b/lwlib/lwlib-utils.c | |||
| @@ -20,9 +20,7 @@ along with GNU Emacs; see the file COPYING. If not, write to | |||
| 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 | Boston, MA 02110-1301, USA. */ | 21 | Boston, MA 02110-1301, USA. */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | ||
| 24 | #include <config.h> | 23 | #include <config.h> |
| 25 | #endif | ||
| 26 | 24 | ||
| 27 | #include <setjmp.h> | 25 | #include <setjmp.h> |
| 28 | #include <lisp.h> | 26 | #include <lisp.h> |
diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index d1686ecd048..d436b18d222 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c | |||
| @@ -20,9 +20,7 @@ along with GNU Emacs; see the file COPYING. If not, write to | |||
| 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 21 | Boston, MA 02110-1301, USA. */ | 21 | Boston, MA 02110-1301, USA. */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | ||
| 24 | #include <config.h> | 23 | #include <config.h> |
| 25 | #endif | ||
| 26 | 24 | ||
| 27 | #include <setjmp.h> | 25 | #include <setjmp.h> |
| 28 | #include <lisp.h> | 26 | #include <lisp.h> |
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 31e041d3dad..e8831c37f8f 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c | |||
| @@ -22,9 +22,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 22 | 22 | ||
| 23 | /* Created by devin@lucid.com */ | 23 | /* Created by devin@lucid.com */ |
| 24 | 24 | ||
| 25 | #ifdef HAVE_CONFIG_H | ||
| 26 | #include <config.h> | 25 | #include <config.h> |
| 27 | #endif | ||
| 28 | 26 | ||
| 29 | #include <setjmp.h> | 27 | #include <setjmp.h> |
| 30 | #include <lisp.h> | 28 | #include <lisp.h> |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index 2b981168fea..1e156563e06 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. | ||
| 4 | * sedlibmk.inp (DEFS): Don't add -DHAVE_CONFIG_H. | ||
| 5 | |||
| 1 | 2012-06-11 Glenn Morris <rgm@gnu.org> | 6 | 2012-06-11 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * sed2v2.inp (SYSTEM_TYPE): Set it. | 8 | * sed2v2.inp (SYSTEM_TYPE): Set it. |
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index e4dd5c5299b..31335e1e8c6 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp | |||
| @@ -136,7 +136,7 @@ am__cd = cd | |||
| 136 | /^GNULIB_WARN_CFLAGS *=/s/@GNULIB_WARN_CFLAGS@// | 136 | /^GNULIB_WARN_CFLAGS *=/s/@GNULIB_WARN_CFLAGS@// |
| 137 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// | 137 | /^WARN_CFLAGS *=/s/@WARN_CFLAGS@// |
| 138 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// | 138 | /^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// |
| 139 | /^DEFS *=/s/@[^@\n]*@/-DHAVE_CONFIG_H/ | 139 | /^DEFS *=/s/@[^@\n]*@// |
| 140 | /^DEPDIR *=/s/@[^@\n]*@/deps/ | 140 | /^DEPDIR *=/s/@[^@\n]*@/deps/ |
| 141 | /^DEPFLAGS *=/s/@[^@\n]*@/-MMD -MF ${DEPDIR}\/$*.d/ | 141 | /^DEPFLAGS *=/s/@[^@\n]*@/-MMD -MF ${DEPDIR}\/$*.d/ |
| 142 | /^ECHO_N *=/s/@[^@\n]*@/-n/ | 142 | /^ECHO_N *=/s/@[^@\n]*@/-n/ |
diff --git a/src/ChangeLog b/src/ChangeLog index 913a5376f22..dec5ee328a7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-06-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Clean out last vestiges of the old HAVE_CONFIG_H stuff. | ||
| 4 | * Makefile.in (ALL_CFLAGS): | ||
| 5 | * makefile.w32-in (LOCAL_FLAGS): Remove -DHAVE_CONFIG_H. | ||
| 6 | * gmalloc.c, regex.c: Include <config.h> unconditionally. | ||
| 7 | |||
| 1 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | 8 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 9 | ||
| 3 | * dispextern.h (xstrcasecmp): Define to library function | 10 | * dispextern.h (xstrcasecmp): Define to library function |
diff --git a/src/Makefile.in b/src/Makefile.in index 40cfe94c707..b0adf53a9b1 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -303,11 +303,8 @@ MKDEPDIR=@MKDEPDIR@ | |||
| 303 | ## -Demacs is needed to make some files produce the correct version | 303 | ## -Demacs is needed to make some files produce the correct version |
| 304 | ## for use in Emacs. | 304 | ## for use in Emacs. |
| 305 | ## | 305 | ## |
| 306 | ## -DHAVE_CONFIG_H is needed for some other files to take advantage of | ||
| 307 | ## the information in `config.h'. | ||
| 308 | ## | ||
| 309 | ## FIXME? MYCPPFLAGS only referenced in etc/DEBUG. | 306 | ## FIXME? MYCPPFLAGS only referenced in etc/DEBUG. |
| 310 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I$(srcdir) \ | 307 | ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ |
| 311 | -I$(lib) -I$(srcdir)/../lib \ | 308 | -I$(lib) -I$(srcdir)/../lib \ |
| 312 | $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ | 309 | $(C_SWITCH_MACHINE) $(C_SWITCH_SYSTEM) $(C_SWITCH_X_SITE) \ |
| 313 | $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ | 310 | $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ |
diff --git a/src/gmalloc.c b/src/gmalloc.c index 0df050e127a..3de3733d55f 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c | |||
| @@ -21,9 +21,7 @@ Fifth Floor, Boston, MA 02110-1301, USA. | |||
| 21 | The author may be reached (Email) at the address mike@ai.mit.edu, | 21 | The author may be reached (Email) at the address mike@ai.mit.edu, |
| 22 | or (US mail) as Mike Haertel c/o Free Software Foundation. */ | 22 | or (US mail) as Mike Haertel c/o Free Software Foundation. */ |
| 23 | 23 | ||
| 24 | #ifdef HAVE_CONFIG_H | ||
| 25 | #include <config.h> | 24 | #include <config.h> |
| 26 | #endif | ||
| 27 | 25 | ||
| 28 | #ifdef HAVE_PTHREAD | 26 | #ifdef HAVE_PTHREAD |
| 29 | #define USE_PTHREAD | 27 | #define USE_PTHREAD |
diff --git a/src/makefile.w32-in b/src/makefile.w32-in index 01f8a1a4ac5..c9077cc84dd 100644 --- a/src/makefile.w32-in +++ b/src/makefile.w32-in | |||
| @@ -27,11 +27,7 @@ EMACSLOADPATH=$(CURDIR)/../lisp | |||
| 27 | # Size in MBs of the static heap in temacs.exe. | 27 | # Size in MBs of the static heap in temacs.exe. |
| 28 | HEAPSIZE = 27 | 28 | HEAPSIZE = 27 |
| 29 | 29 | ||
| 30 | # | 30 | LOCAL_FLAGS = -Demacs=1 -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS) |
| 31 | # HAVE_CONFIG_H is required by some generic gnu sources stuck into | ||
| 32 | # the emacs source tree. | ||
| 33 | # | ||
| 34 | LOCAL_FLAGS = -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS) | ||
| 35 | 31 | ||
| 36 | SRC = . | 32 | SRC = . |
| 37 | EMACS = $(BLD)/emacs.exe | 33 | EMACS = $(BLD)/emacs.exe |
diff --git a/src/regex.c b/src/regex.c index 7ef53c606c9..0b09e508b37 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -46,9 +46,7 @@ | |||
| 46 | # endif | 46 | # endif |
| 47 | #endif | 47 | #endif |
| 48 | 48 | ||
| 49 | #ifdef HAVE_CONFIG_H | 49 | #include <config.h> |
| 50 | # include <config.h> | ||
| 51 | #endif | ||
| 52 | 50 | ||
| 53 | #include <stddef.h> | 51 | #include <stddef.h> |
| 54 | 52 | ||