[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r113609: * frame.c (make_frame, x_set_frame_paramete
From: |
Dmitry Antipov |
Subject: |
[Emacs-diffs] trunk r113609: * frame.c (make_frame, x_set_frame_parameters): Use bool for boolean. |
Date: |
Wed, 31 Jul 2013 06:06:24 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 113609
revision-id: address@hidden
parent: address@hidden
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Wed 2013-07-31 10:05:05 +0400
message:
* frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.
(x_figure_window_size): Likewise. Adjust to return long.
(syms_of_frame): Do not DEFSYM Qterminal_live_p.
(toplevel): Move Qterminal_live_p to...
* terminal.c (toplevel): ...here, make it static, and...
(syms_of_terminal): ...DEFSYM here.
* frame.h (Qterminal_live_p): Remove declaration.
(make_frame, x_figure_window_size): Adjust prototype.
* nsfns.m (Fx_create_frame): Use long for window flags.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/frame.c frame.c-20091113204419-o5vbwnq5f7feedwu-243
src/frame.h frame.h-20091113204419-o5vbwnq5f7feedwu-229
src/nsfns.m nsfns.m-20091113204419-o5vbwnq5f7feedwu-8741
src/terminal.c terminal.c-20091113204419-o5vbwnq5f7feedwu-6118
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-07-30 21:44:43 +0000
+++ b/src/ChangeLog 2013-07-31 06:05:05 +0000
@@ -1,3 +1,15 @@
+2013-07-31 Dmitry Antipov <address@hidden>
+
+ * frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.
+ (x_figure_window_size): Likewise. Adjust to return long.
+ (syms_of_frame): Do not DEFSYM Qterminal_live_p.
+ (toplevel): Move Qterminal_live_p to...
+ * terminal.c (toplevel): ...here, make it static, and...
+ (syms_of_terminal): ...DEFSYM here.
+ * frame.h (Qterminal_live_p): Remove declaration.
+ (make_frame, x_figure_window_size): Adjust prototype.
+ * nsfns.m (Fx_create_frame): Use long for window flags.
+
2013-07-30 Paul Eggert <address@hidden>
Fix tempfile bug on platforms lacking mkostemp and mkstemp (Bug#14986).
=== modified file 'src/frame.c'
--- a/src/frame.c 2013-07-30 04:35:44 +0000
+++ b/src/frame.c 2013-07-31 06:05:05 +0000
@@ -69,7 +69,6 @@
static Lisp_Object Qx_frame_parameter;
Lisp_Object Qx_resource_name;
Lisp_Object Qterminal;
-Lisp_Object Qterminal_live_p;
/* Frame parameters (set or reported). */
@@ -310,7 +309,7 @@
}
struct frame *
-make_frame (int mini_p)
+make_frame (bool mini_p)
{
Lisp_Object frame;
register struct frame *f;
@@ -2633,9 +2632,9 @@
Lisp_Object *parms;
Lisp_Object *values;
ptrdiff_t i, p;
- int left_no_change = 0, top_no_change = 0;
- int icon_left_no_change = 0, icon_top_no_change = 0;
- int size_changed = 0;
+ bool left_no_change = 0, top_no_change = 0;
+ bool icon_left_no_change = 0, icon_top_no_change = 0;
+ bool size_changed = 0;
struct gcpro gcpro1, gcpro2;
i = 0;
@@ -3939,8 +3938,8 @@
#define DEFAULT_ROWS 35
#define DEFAULT_COLS 80
-int
-x_figure_window_size (struct frame *f, Lisp_Object parms, int toolbar_p)
+long
+x_figure_window_size (struct frame *f, Lisp_Object parms, bool toolbar_p)
{
register Lisp_Object tem0, tem1, tem2;
long window_prompting = 0;
@@ -4291,7 +4290,6 @@
DEFSYM (Qx_frame_parameter, "x-frame-parameter");
DEFSYM (Qterminal, "terminal");
- DEFSYM (Qterminal_live_p, "terminal-live-p");
DEFSYM (Qgeometry, "geometry");
DEFSYM (Qworkarea, "workarea");
=== modified file 'src/frame.h'
--- a/src/frame.h 2013-06-03 18:29:30 +0000
+++ b/src/frame.h 2013-07-31 06:05:05 +0000
@@ -952,7 +952,7 @@
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 Qterminal;
extern Lisp_Object Qnoelisp;
extern struct frame *last_nonminibuf_frame;
@@ -962,7 +962,7 @@
extern struct frame *decode_live_frame (Lisp_Object);
extern struct frame *decode_any_frame (Lisp_Object);
extern struct frame *make_initial_frame (void);
-extern struct frame *make_frame (int);
+extern struct frame *make_frame (bool);
#ifdef HAVE_WINDOW_SYSTEM
extern struct frame *make_minibuffer_frame (void);
extern struct frame *make_frame_without_minibuffer (Lisp_Object,
@@ -1242,7 +1242,7 @@
extern Lisp_Object x_icon_type (struct frame *);
-extern int x_figure_window_size (struct frame *, Lisp_Object, int);
+extern long x_figure_window_size (struct frame *, Lisp_Object, bool);
extern void x_set_alpha (struct frame *, Lisp_Object, Lisp_Object);
=== modified file 'src/nsfns.m'
--- a/src/nsfns.m 2013-07-16 21:35:45 +0000
+++ b/src/nsfns.m 2013-07-31 06:05:05 +0000
@@ -1068,7 +1068,7 @@
Lisp_Object frame, tem;
Lisp_Object name;
int minibuffer_only = 0;
- int window_prompting = 0;
+ long window_prompting = 0;
int width, height;
ptrdiff_t count = specpdl_ptr - specpdl;
struct gcpro gcpro1, gcpro2, gcpro3, gcpro4;
=== modified file 'src/terminal.c'
--- a/src/terminal.c 2013-07-11 02:17:47 +0000
+++ b/src/terminal.c 2013-07-31 06:05:05 +0000
@@ -39,6 +39,8 @@
/* The initial terminal device, created by initial_term_init. */
struct terminal *initial_terminal;
+static Lisp_Object Qterminal_live_p;
+
static void delete_initial_terminal (struct terminal *);
/* This setter is used only in this file, so it can be private. */
@@ -549,6 +551,8 @@
This may be called just before actually deleting the terminal,
or some time later. */);
Vdelete_terminal_functions = Qnil;
+
+ DEFSYM (Qterminal_live_p, "terminal-live-p");
DEFSYM (Qdelete_terminal_functions, "delete-terminal-functions");
DEFSYM (Qrun_hook_with_args, "run-hook-with-args");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r113609: * frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.,
Dmitry Antipov <=