Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
cbe0b5bf
Commit
cbe0b5bf
authored
Jan 21, 2009
by
Adrian Robert
Browse files
* nsmenu.m (NSMENUPROFILE): Change #if style.
parent
24c7b460
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
src/ChangeLog
src/ChangeLog
+5
-0
src/nsmenu.m
src/nsmenu.m
+8
-6
No files found.
src/ChangeLog
View file @
cbe0b5bf
2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
* nsmenu.m (NSMENUPROFILE): Change #if style.
2009-01-19 Chong Yidong <cyd@stupidchicken.com>
* xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
...
...
src/nsmenu.m
View file @
cbe0b5bf
...
...
@@ -36,9 +36,12 @@
#include "termhooks.h"
#include "keyboard.h"
/* for profiling */
#define NSMENUPROFILE 0
#if NSMENUPROFILE
#include <sys/timeb.h>
#include <sys/types.h>
#endif
#define MenuStagger 10.0
...
...
@@ -114,7 +117,6 @@
2) deep_p = 1, submenu = nil: Recompute all submenus.
3) deep_p = 1, submenu = non-nil: Update contents of a single submenu.
-------------------------------------------------------------------------- */
/*#define NSMENUPROFILE 1 */
void
ns_update_menubar
(
struct
frame
*
f
,
int
deep_p
,
EmacsMenu
*
submenu
)
{
...
...
@@ -129,7 +131,7 @@
widget_value
*
wv
,
*
first_wv
,
*
prev_wv
=
0
;
int
i
;
#if
def
NSMENUPROFILE
#if NSMENUPROFILE
struct
timeb
tb
;
long
t
;
#endif
...
...
@@ -163,7 +165,7 @@
[
attMenu
close
];
}
#if
def
NSMENUPROFILE
#if NSMENUPROFILE
ftime
(
&
tb
);
t
=
-
(
1000
*
tb
.
time
+
tb
.
millitm
);
#endif
...
...
@@ -329,7 +331,7 @@
{
/* No change.. */
#if
def
NSMENUPROFILE
#if NSMENUPROFILE
ftime
(
&
tb
);
t
+=
1000
*
tb
.
time
+
tb
.
millitm
;
fprintf
(
stderr
,
"NO CHANGE! CUTTING OUT after %ld msec.
\n
"
,
t
);
...
...
@@ -480,7 +482,7 @@
free_menubar_widget_value_tree
(
first_wv
);
#if
def
NSMENUPROFILE
#if NSMENUPROFILE
ftime
(
&
tb
);
t
+=
1000
*
tb
.
time
+
tb
.
millitm
;
fprintf
(
stderr
,
"Menu update took %ld msec.
\n
"
,
t
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment