aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2014-06-06 12:33:19 -0700
committerPaul Eggert2014-06-06 12:33:19 -0700
commit5dda54d600664bdff6b9e76773c4f29fd7e39915 (patch)
tree62571d3a96008b020a7edea83673e16eef4dbd15 /src
parent3112e4002cb1a29861bd7ae1b7ddff0dbdaa38a7 (diff)
downloademacs-5dda54d600664bdff6b9e76773c4f29fd7e39915.tar.gz
emacs-5dda54d600664bdff6b9e76773c4f29fd7e39915.zip
* term.c (tty_menu_show) [!HAVE_NTGUI]: Now static.
* menu.h (tty_menu_show) [!HAVE_NTGUI]: Omit extern decl.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/menu.h6
-rw-r--r--src/term.c3
3 files changed, 11 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9c17d3d1dbc..0ba73e59553 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-06-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 * term.c (tty_menu_show) [!HAVE_NTGUI]: Now static.
4 * menu.h (tty_menu_show) [!HAVE_NTGUI]: Omit extern decl.
5
12014-06-06 Stefan Monnier <monnier@iro.umontreal.ca> 62014-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * window.c (Frecenter): Signal an error if window-buffer is not 8 * window.c (Frecenter): Signal an error if window-buffer is not
diff --git a/src/menu.h b/src/menu.h
index e2d7601378e..5b15294754d 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -29,7 +29,7 @@ extern Lisp_Object Qunsupported__w32_dialog;
29/* Bit fields used by terminal-specific menu_show_hook. */ 29/* Bit fields used by terminal-specific menu_show_hook. */
30 30
31enum { 31enum {
32 MENU_KEYMAPS = 0x1, 32 MENU_KEYMAPS = 0x1,
33 MENU_FOR_CLICK = 0x2, 33 MENU_FOR_CLICK = 0x2,
34 MENU_KBD_NAVIGATION = 0x4 34 MENU_KBD_NAVIGATION = 0x4
35}; 35};
@@ -64,12 +64,12 @@ extern Lisp_Object x_menu_show (struct frame *, int, int, int,
64#ifdef HAVE_NTGUI 64#ifdef HAVE_NTGUI
65extern Lisp_Object w32_menu_show (struct frame *, int, int, int, 65extern Lisp_Object w32_menu_show (struct frame *, int, int, int,
66 Lisp_Object, const char **); 66 Lisp_Object, const char **);
67extern Lisp_Object tty_menu_show (struct frame *, int, int, int,
68 Lisp_Object, const char **);
67#endif 69#endif
68#ifdef HAVE_NS 70#ifdef HAVE_NS
69extern Lisp_Object ns_menu_show (struct frame *, int, int, int, 71extern Lisp_Object ns_menu_show (struct frame *, int, int, int,
70 Lisp_Object, const char **); 72 Lisp_Object, const char **);
71#endif 73#endif
72extern Lisp_Object tty_menu_show (struct frame *, int, int, int,
73 Lisp_Object, const char **);
74extern ptrdiff_t menu_item_width (const unsigned char *); 74extern ptrdiff_t menu_item_width (const unsigned char *);
75#endif /* MENU_H */ 75#endif /* MENU_H */
diff --git a/src/term.c b/src/term.c
index aa0be9871c8..f38deb8f4f1 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3582,6 +3582,9 @@ tty_menu_new_item_coords (struct frame *f, int which, int *x, int *y)
3582 } 3582 }
3583} 3583}
3584 3584
3585#ifndef HAVE_NTGUI
3586static
3587#endif
3585Lisp_Object 3588Lisp_Object
3586tty_menu_show (struct frame *f, int x, int y, int menuflags, 3589tty_menu_show (struct frame *f, int x, int y, int menuflags,
3587 Lisp_Object title, const char **error_name) 3590 Lisp_Object title, const char **error_name)