unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* recent int->bool change broke macosx build
@ 2012-10-11  0:19 chad
  2012-10-11  0:36 ` Paul Eggert
  0 siblings, 1 reply; 2+ messages in thread
From: chad @ 2012-10-11  0:19 UTC (permalink / raw)
  To: emacs-devel@gnu.org devel

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

2012-10-10  Paul Eggert  <eggert@cs.ucla.edu>
	[...]
	* nsmenu.m (ns_update_menubar):
	[...]
	Use bool for boolean.

nsmenu.m: In function ‘ns_update_menubar’:
nsmenu.m:131: error: conflicting types for ‘waiting_for_input’
keyboard.h:466: error: previous declaration of ‘waiting_for_input’ was here

Simple patch:

=== modified file 'src/nsmenu.m'
--- src/nsmenu.m	2012-10-10 20:09:47 +0000
+++ src/nsmenu.m	2012-10-11 00:12:07 +0000
@@ -128,7 +128,7 @@
   static EmacsMenu *last_submenu = nil;
   BOOL needsSet = NO;
   const char *submenuTitle = [[submenu title] UTF8String];
-  extern int waiting_for_input;
+  extern bool waiting_for_input;
   bool owfi;
   Lisp_Object items;
   widget_value *wv, *first_wv, *prev_wv = 0;

*Chad


[-- Attachment #2: Type: text/html, Size: 2010 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: recent int->bool change broke macosx build
  2012-10-11  0:19 recent int->bool change broke macosx build chad
@ 2012-10-11  0:36 ` Paul Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2012-10-11  0:36 UTC (permalink / raw)
  To: chad; +Cc: Eli Zaretskii, emacs-devel@gnu.org devel

Thanks, I fixed that as follows; this addresses a similar
issue in w32select.c so I am CC'ing this to Eli.

=== modified file 'src/ChangeLog'
--- src/ChangeLog	2012-10-10 20:09:47 +0000
+++ src/ChangeLog	2012-10-11 00:31:57 +0000
@@ -1,3 +1,9 @@
+2012-10-11  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* w32select.c (waiting_for_input): Declare by including "keyboard.h"
+	instead of having a wrong decl.
+	* nsmenu.m (waiting_for_input): Remove wrong decl.
+
 2012-10-10  Paul Eggert  <eggert@cs.ucla.edu>
 
 	keyboard.c, keymap.c: Use bool for booleans.

=== modified file 'src/nsmenu.m'
--- src/nsmenu.m	2012-10-10 20:09:47 +0000
+++ src/nsmenu.m	2012-10-11 00:25:06 +0000
@@ -128,7 +128,6 @@
   static EmacsMenu *last_submenu = nil;
   BOOL needsSet = NO;
   const char *submenuTitle = [[submenu title] UTF8String];
-  extern int waiting_for_input;
   bool owfi;
   Lisp_Object items;
   widget_value *wv, *first_wv, *prev_wv = 0;

=== modified file 'src/w32select.c'
--- src/w32select.c	2012-10-08 12:53:18 +0000
+++ src/w32select.c	2012-10-11 00:30:32 +0000
@@ -76,6 +76,7 @@
 #include "lisp.h"
 #include "w32term.h"	/* for all of the w32 includes */
 #include "w32common.h"	/* os_subtype */
+#include "keyboard.h"
 #include "blockinput.h"
 #include "charset.h"
 #include "coding.h"
@@ -393,7 +394,6 @@
      with global variables and calling strange looking functions.  Is
      this really the right way to run Lisp callbacks?  */
 
-  extern int waiting_for_input; /* from keyboard.c */
   int owfi;
 
   block_input ();





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-11  0:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11  0:19 recent int->bool change broke macosx build chad
2012-10-11  0:36 ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).