From: Jan Djärv Date: Thu, 29 Jul 2010 06:59:29 +0000 (+0200) Subject: Fix some stuff that didn't compile. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~49^2~105 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8848b728cd609b4ed2667efc0d7eadf3595c8bf0;p=emacs.git Fix some stuff that didn't compile. * frame.h (Qtty_color_mode): Move declaration out of HAVE_WINDOW_SYSTEM. * vm-limit.c (POINTER): Add typedef for it. (start_of_data): Change return type from POINTER to char *. --- diff --git a/src/ChangeLog b/src/ChangeLog index a68019de4f0..83997354718 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2010-07-29 Jan Djärv + + * vm-limit.c (POINTER): Add typedef for it. + (start_of_data): Change return type from POINTER to char *. + + * frame.h (Qtty_color_mode): Move declaration out of ifdef + HAVE_WINDOW_SYSTEM. + 2010-07-29 Dan Nicolaescu * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it. diff --git a/src/frame.h b/src/frame.h index 04b754d4a5e..6ab2b07dd92 100644 --- a/src/frame.h +++ b/src/frame.h @@ -823,6 +823,7 @@ typedef struct frame *FRAME_PTR; extern Lisp_Object Qframep, Qframe_live_p; extern Lisp_Object Qtty, Qtty_type; +extern Lisp_Object Qtty_color_mode; extern Lisp_Object Qterminal, Qterminal_live_p; extern Lisp_Object Qnoelisp; @@ -1088,7 +1089,6 @@ extern Lisp_Object x_new_font (struct frame *, Lisp_Object, int); /* These are in frame.c */ -extern Lisp_Object Qtty_color_mode; extern Lisp_Object Vx_resource_name; extern Lisp_Object Vx_resource_class; diff --git a/src/vm-limit.c b/src/vm-limit.c index e0bd77a2516..63f0f47e2d0 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c @@ -33,9 +33,10 @@ along with GNU Emacs. If not, see . */ 3 -- 95% warning issued; keep warning frequently. */ enum warnlevel { not_warned, warned_75, warned_85, warned_95 }; - static enum warnlevel warnlevel; +typedef POINTER_TYPE *POINTER; + /* Function to call to issue a warning; 0 means don't issue them. */ static void (*warn_function) (const char *); @@ -256,7 +257,7 @@ check_memory_limits (void) * */ -POINTER +char * start_of_data (void) { #ifdef BSD_SYSTEM