summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan D <jan.h.d@swipnet.se>2010-06-29 11:49:20 +0200
committerJan D <jan.h.d@swipnet.se>2010-06-29 11:49:20 +0200
commit5d1d3d04611aa010a6bc97bb39d499f28131454c (patch)
tree096619e06060d28ce931049918b48a704524887d /src
parent62d115efc9a78cd09bafbc35d5c198ba01a6e00d (diff)
downloademacs-5d1d3d04611aa010a6bc97bb39d499f28131454c.tar.gz
Fix some compilation errors in nsfns.c
* nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode. (ns_get_screen): Don't assign integer to f. (Fx_display_color_cells): Declarations before statements.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/nsfns.m12
2 files changed, 15 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f727dc73f1f..12af1e6908a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
+2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
+
+ * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
+ (ns_get_screen): Don't assign integer to f.
+ (Fx_display_color_cells): Declarations before statements.
+
2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
* xfns.c (x_default_font_parameter): Remove got_from_system
diff --git a/src/nsfns.m b/src/nsfns.m
index d05fcf451e7..b52f839a078 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -83,6 +83,10 @@ extern Lisp_Object Qunsplittable, Qmenu_bar_lines, Qbuffer_predicate, Qtitle;
extern Lisp_Object Qnone;
extern Lisp_Object Vframe_title_format;
+/* The below are defined in frame.c. */
+
+extern Lisp_Object Vmenu_bar_mode, Vtool_bar_mode;
+
Lisp_Object Qbuffered;
Lisp_Object Qfontsize;
@@ -224,7 +228,8 @@ ns_get_screen (Lisp_Object screen)
else
{
struct ns_display_info *dpyinfo = terminal->display_info.ns;
- f = (dpyinfo->x_focus_frame || dpyinfo->x_highlight_frame);
+ f = dpyinfo->x_focus_frame
+ ? dpyinfo->x_focus_frame : dpyinfo->x_highlight_frame;
}
return ((f && FRAME_NS_P (f)) ? [[FRAME_NS_VIEW (f) window] screen]
@@ -2381,9 +2386,10 @@ If omitted or nil, that stands for the selected frame's display. */)
(display)
Lisp_Object display;
{
+ struct ns_display_info *dpyinfo;
check_ns ();
- struct ns_display_info *dpyinfo = check_ns_display_info (display);
-
+
+ dpyinfo = check_ns_display_info (display);
/* We force 24+ bit depths to 24-bit to prevent an overflow. */
return make_number (1 << min (dpyinfo->n_planes, 24));
}