mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 07:41:28 -08:00
(sun_item_create): Use type test macros.
This commit is contained in:
parent
330cf232bf
commit
b442163d0d
1 changed files with 2 additions and 2 deletions
|
|
@ -364,9 +364,9 @@ sun_item_create (Pair)
|
|||
String = Fcar(Pair);
|
||||
CHECK_STRING(String, 0);
|
||||
Value = Fcdr(Pair);
|
||||
if(XTYPE(Value) == Lisp_Symbol)
|
||||
if (SYMBOLP (Value))
|
||||
Value = XSYMBOL(Value)->value;
|
||||
if(XTYPE(Value) == Lisp_Vector) {
|
||||
if (VECTORP (Value)) {
|
||||
submenu = sun_menu_create (Value);
|
||||
menu_item = menu_create_item
|
||||
(MENU_RELEASE, MENU_PULLRIGHT_ITEM, XSTRING(String)->data, submenu, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue