diff options
| author | Paul Eggert | 2012-12-04 12:42:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-12-04 12:42:29 -0800 |
| commit | 47a6e6df2b6430c1047538260750cdbe78c566d5 (patch) | |
| tree | 74a5a56fedf019b493e321682dd1dafdb5a905f8 /oldXMenu | |
| parent | aefa2ead351b5d22ef739b27108932acdf905ba5 (diff) | |
| download | emacs-47a6e6df2b6430c1047538260750cdbe78c566d5.tar.gz emacs-47a6e6df2b6430c1047538260750cdbe78c566d5.zip | |
Include <config.h> uniformly in oldXMenu sources.
* Activate.c, AddPane.c, AddSel.c, ChgPane.c, ChgSel.c, Create.c:
* InsPane.c, InsSel.c, Internal.c, XMakeAssoc.c:
Do not include <config.h>, since XMenuInt.h does that now.
* XLookAssoc.c, XMenuInt.h: Include <config.h>.
This avoids a build failure when configuring on Fedora 17
--with-x-toolkit=no, reported by Dmitry Andropov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00078.html>.
Diffstat (limited to 'oldXMenu')
| -rw-r--r-- | oldXMenu/Activate.c | 1 | ||||
| -rw-r--r-- | oldXMenu/AddPane.c | 1 | ||||
| -rw-r--r-- | oldXMenu/AddSel.c | 1 | ||||
| -rw-r--r-- | oldXMenu/ChangeLog | 11 | ||||
| -rw-r--r-- | oldXMenu/ChgPane.c | 2 | ||||
| -rw-r--r-- | oldXMenu/ChgSel.c | 2 | ||||
| -rw-r--r-- | oldXMenu/Create.c | 1 | ||||
| -rw-r--r-- | oldXMenu/InsPane.c | 1 | ||||
| -rw-r--r-- | oldXMenu/InsSel.c | 1 | ||||
| -rw-r--r-- | oldXMenu/Internal.c | 1 | ||||
| -rw-r--r-- | oldXMenu/XLookAssoc.c | 10 | ||||
| -rw-r--r-- | oldXMenu/XMakeAssoc.c | 1 | ||||
| -rw-r--r-- | oldXMenu/XMenuInt.h | 2 |
13 files changed, 17 insertions, 18 deletions
diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c index d4683da87f2..51ffc47f0c9 100644 --- a/oldXMenu/Activate.c +++ b/oldXMenu/Activate.c | |||
| @@ -95,7 +95,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 95 | * | 95 | * |
| 96 | */ | 96 | */ |
| 97 | 97 | ||
| 98 | #include <config.h> | ||
| 99 | #include "XMenuInt.h" | 98 | #include "XMenuInt.h" |
| 100 | #include <X11/keysym.h> | 99 | #include <X11/keysym.h> |
| 101 | 100 | ||
diff --git a/oldXMenu/AddPane.c b/oldXMenu/AddPane.c index 36b57fe8da6..2c8dda8cd11 100644 --- a/oldXMenu/AddPane.c +++ b/oldXMenu/AddPane.c | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | * | 12 | * |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| 15 | #include <config.h> | ||
| 16 | #include "XMenuInt.h" | 15 | #include "XMenuInt.h" |
| 17 | 16 | ||
| 18 | int | 17 | int |
diff --git a/oldXMenu/AddSel.c b/oldXMenu/AddSel.c index 2b1ff3d6c89..07eb1fed15b 100644 --- a/oldXMenu/AddSel.c +++ b/oldXMenu/AddSel.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | * | 13 | * |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | #include <config.h> | ||
| 17 | #include "XMenuInt.h" | 16 | #include "XMenuInt.h" |
| 18 | 17 | ||
| 19 | int | 18 | int |
diff --git a/oldXMenu/ChangeLog b/oldXMenu/ChangeLog index 133b18b4e3f..3601b980ab0 100644 --- a/oldXMenu/ChangeLog +++ b/oldXMenu/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2012-12-04 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Include <config.h> uniformly in oldXMenu sources. | ||
| 4 | * Activate.c, AddPane.c, AddSel.c, ChgPane.c, ChgSel.c, Create.c: | ||
| 5 | * InsPane.c, InsSel.c, Internal.c, XMakeAssoc.c: | ||
| 6 | Do not include <config.h>, since XMenuInt.h does that now. | ||
| 7 | * XLookAssoc.c, XMenuInt.h: Include <config.h>. | ||
| 8 | This avoids a build failure when configuring on Fedora 17 | ||
| 9 | --with-x-toolkit=no, reported by Dmitry Andropov in | ||
| 10 | <http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00078.html>. | ||
| 11 | |||
| 1 | 2012-10-06 Ulrich Müller <ulm@gentoo.org> | 12 | 2012-10-06 Ulrich Müller <ulm@gentoo.org> |
| 2 | 13 | ||
| 3 | * Makefile.in (AR, ARFLAGS): Get values from configure. | 14 | * Makefile.in (AR, ARFLAGS): Get values from configure. |
diff --git a/oldXMenu/ChgPane.c b/oldXMenu/ChgPane.c index 38b63820161..d2977b73faf 100644 --- a/oldXMenu/ChgPane.c +++ b/oldXMenu/ChgPane.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | * | 13 | * |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | #include <config.h> | ||
| 17 | #include "XMenuInt.h" | 16 | #include "XMenuInt.h" |
| 18 | 17 | ||
| 19 | int | 18 | int |
| @@ -65,4 +64,3 @@ XMenuChangePane(register XMenu *menu, register int p_num, char *label) | |||
| 65 | _XMErrorCode = XME_NO_ERROR; | 64 | _XMErrorCode = XME_NO_ERROR; |
| 66 | return(p_num); | 65 | return(p_num); |
| 67 | } | 66 | } |
| 68 | |||
diff --git a/oldXMenu/ChgSel.c b/oldXMenu/ChgSel.c index dcefb6c3a5d..d24e61f56d5 100644 --- a/oldXMenu/ChgSel.c +++ b/oldXMenu/ChgSel.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | * | 13 | * |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | #include <config.h> | ||
| 17 | #include "XMenuInt.h" | 16 | #include "XMenuInt.h" |
| 18 | 17 | ||
| 19 | int | 18 | int |
| @@ -87,4 +86,3 @@ XMenuChangeSelection(Display *display, register XMenu *menu, register int p_num, | |||
| 87 | _XMErrorCode = XME_NO_ERROR; | 86 | _XMErrorCode = XME_NO_ERROR; |
| 88 | return(s_num); | 87 | return(s_num); |
| 89 | } | 88 | } |
| 90 | |||
diff --git a/oldXMenu/Create.c b/oldXMenu/Create.c index 1d21e534300..6dda7d44ef4 100644 --- a/oldXMenu/Create.c +++ b/oldXMenu/Create.c | |||
| @@ -29,7 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | * | 29 | * |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #include <config.h> | ||
| 33 | #include "XMenuInt.h" | 32 | #include "XMenuInt.h" |
| 34 | #include <stdlib.h> | 33 | #include <stdlib.h> |
| 35 | 34 | ||
diff --git a/oldXMenu/InsPane.c b/oldXMenu/InsPane.c index bdbadbf1226..d8470f3a5bf 100644 --- a/oldXMenu/InsPane.c +++ b/oldXMenu/InsPane.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | * | 14 | * |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include <config.h> | ||
| 18 | #include "XMenuInt.h" | 17 | #include "XMenuInt.h" |
| 19 | 18 | ||
| 20 | int | 19 | int |
diff --git a/oldXMenu/InsSel.c b/oldXMenu/InsSel.c index 5db285f6408..66f4968197d 100644 --- a/oldXMenu/InsSel.c +++ b/oldXMenu/InsSel.c | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | * | 13 | * |
| 14 | */ | 14 | */ |
| 15 | 15 | ||
| 16 | #include <config.h> | ||
| 17 | #include "XMenuInt.h" | 16 | #include "XMenuInt.h" |
| 18 | 17 | ||
| 19 | int | 18 | int |
diff --git a/oldXMenu/Internal.c b/oldXMenu/Internal.c index dc8dc0120ef..ee1e88b396e 100644 --- a/oldXMenu/Internal.c +++ b/oldXMenu/Internal.c | |||
| @@ -29,7 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | * | 29 | * |
| 30 | */ | 30 | */ |
| 31 | 31 | ||
| 32 | #include <config.h> | ||
| 33 | #include "XMenuInt.h" | 32 | #include "XMenuInt.h" |
| 34 | 33 | ||
| 35 | /* | 34 | /* |
diff --git a/oldXMenu/XLookAssoc.c b/oldXMenu/XLookAssoc.c index e287ebbaa72..fad960d7a4c 100644 --- a/oldXMenu/XLookAssoc.c +++ b/oldXMenu/XLookAssoc.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | #include "copyright.h" | 3 | #include "copyright.h" |
| 4 | 4 | ||
| 5 | 5 | #include <config.h> | |
| 6 | #include <X11/Xlib.h> | 6 | #include <X11/Xlib.h> |
| 7 | #include <X11/Xresource.h> | 7 | #include <X11/Xresource.h> |
| 8 | #include "X10.h" | 8 | #include "X10.h" |
| @@ -18,10 +18,9 @@ | |||
| 18 | * in the table the routine will return a NULL pointer. All XId's are relative | 18 | * in the table the routine will return a NULL pointer. All XId's are relative |
| 19 | * to the currently active Display. | 19 | * to the currently active Display. |
| 20 | */ | 20 | */ |
| 21 | caddr_t XLookUpAssoc(register Display *dpy, register XAssocTable *table, register XID x_id) | 21 | caddr_t XLookUpAssoc(Display *dpy, |
| 22 | 22 | XAssocTable *table, /* XAssocTable to search in. */ | |
| 23 | /* XAssocTable to search in. */ | 23 | XID x_id) /* XId to search for. */ |
| 24 | /* XId to search for. */ | ||
| 25 | { | 24 | { |
| 26 | int hash; | 25 | int hash; |
| 27 | register XAssoc *bucket; | 26 | register XAssoc *bucket; |
| @@ -55,4 +54,3 @@ caddr_t XLookUpAssoc(register Display *dpy, register XAssocTable *table, registe | |||
| 55 | /* It is apparently not in the table. */ | 54 | /* It is apparently not in the table. */ |
| 56 | return(NULL); | 55 | return(NULL); |
| 57 | } | 56 | } |
| 58 | |||
diff --git a/oldXMenu/XMakeAssoc.c b/oldXMenu/XMakeAssoc.c index 143b2641112..9bbde2cf94d 100644 --- a/oldXMenu/XMakeAssoc.c +++ b/oldXMenu/XMakeAssoc.c | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | #include "copyright.h" | 3 | #include "copyright.h" |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include <config.h> | ||
| 7 | #include "XMenuInt.h" | 6 | #include "XMenuInt.h" |
| 8 | #include <X11/Xresource.h> | 7 | #include <X11/Xresource.h> |
| 9 | #include <errno.h> | 8 | #include <errno.h> |
diff --git a/oldXMenu/XMenuInt.h b/oldXMenu/XMenuInt.h index 721652c9539..1edef30bc5f 100644 --- a/oldXMenu/XMenuInt.h +++ b/oldXMenu/XMenuInt.h | |||
| @@ -17,6 +17,8 @@ | |||
| 17 | #ifndef _XMenuInternal_h_ | 17 | #ifndef _XMenuInternal_h_ |
| 18 | #define _XMenuInternal_h_ | 18 | #define _XMenuInternal_h_ |
| 19 | 19 | ||
| 20 | #include <config.h> | ||
| 21 | |||
| 20 | /* Avoid warnings about redefining NULL by including <stdio.h> first; | 22 | /* Avoid warnings about redefining NULL by including <stdio.h> first; |
| 21 | the other file which wants to define it (<stddef.h> on Ultrix | 23 | the other file which wants to define it (<stddef.h> on Ultrix |
| 22 | systems) can deal if NULL is already defined, but <stdio.h> can't. */ | 24 | systems) can deal if NULL is already defined, but <stdio.h> can't. */ |