aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2003-12-28 00:11:49 +0000
committerKim F. Storm2003-12-28 00:11:49 +0000
commit82cf95a792459f8dd7a1118f47c1a1dbec962bc9 (patch)
tree407067cec51343282a5c355362936f6b63030cc1 /src
parentdea9b52152ce21296c22e996c29e80d3b542b450 (diff)
downloademacs-82cf95a792459f8dd7a1118f47c1a1dbec962bc9.tar.gz
emacs-82cf95a792459f8dd7a1118f47c1a1dbec962bc9.zip
(Qimage): Remove extern (now in lisp.h).
(valid_image_p, parse_image_spec): Use IMAGEP macro.
Diffstat (limited to 'src')
-rw-r--r--src/macfns.c9
-rw-r--r--src/w32fns.c9
2 files changed, 4 insertions, 14 deletions
diff --git a/src/macfns.c b/src/macfns.c
index 1634809ca3e..0f87556fb1e 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -3460,11 +3460,6 @@ If DISPLAY is omitted or nil, that stands for the selected frame's display. */)
3460 3460
3461static struct image_type *image_types; 3461static struct image_type *image_types;
3462 3462
3463/* The symbol `image' which is the car of the lists used to represent
3464 images in Lisp. */
3465
3466extern Lisp_Object Qimage;
3467
3468/* The symbol `xbm' which is used as the type symbol for XBM images. */ 3463/* The symbol `xbm' which is used as the type symbol for XBM images. */
3469 3464
3470Lisp_Object Qxbm; 3465Lisp_Object Qxbm;
@@ -3543,7 +3538,7 @@ valid_image_p (object)
3543{ 3538{
3544 int valid_p = 0; 3539 int valid_p = 0;
3545 3540
3546 if (CONSP (object) && EQ (XCAR (object), Qimage)) 3541 if (IMAGEP (object))
3547 { 3542 {
3548 Lisp_Object symbol = Fplist_get (XCDR (object), QCtype); 3543 Lisp_Object symbol = Fplist_get (XCDR (object), QCtype);
3549 struct image_type *type = lookup_image_type (symbol); 3544 struct image_type *type = lookup_image_type (symbol);
@@ -3633,7 +3628,7 @@ parse_image_spec (spec, keywords, nkeywords, type)
3633 int i; 3628 int i;
3634 Lisp_Object plist; 3629 Lisp_Object plist;
3635 3630
3636 if (!CONSP (spec) || !EQ (XCAR (spec), Qimage)) 3631 if (!IMAGEP (spec))
3637 return 0; 3632 return 0;
3638 3633
3639 plist = XCDR (spec); 3634 plist = XCDR (spec);
diff --git a/src/w32fns.c b/src/w32fns.c
index d8572265bef..7bffea34a28 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6937,11 +6937,6 @@ DEFUN ("x-synchronize", Fx_synchronize, Sx_synchronize, 1, 2, 0,
6937 6937
6938static struct image_type *image_types; 6938static struct image_type *image_types;
6939 6939
6940/* The symbol `image' which is the car of the lists used to represent
6941 images in Lisp. */
6942
6943extern Lisp_Object Qimage;
6944
6945/* The symbol `xbm' which is used as the type symbol for XBM images. */ 6940/* The symbol `xbm' which is used as the type symbol for XBM images. */
6946 6941
6947Lisp_Object Qxbm; 6942Lisp_Object Qxbm;
@@ -7021,7 +7016,7 @@ valid_image_p (object)
7021{ 7016{
7022 int valid_p = 0; 7017 int valid_p = 0;
7023 7018
7024 if (CONSP (object) && EQ (XCAR (object), Qimage)) 7019 if (IMAGEP (object))
7025 { 7020 {
7026 Lisp_Object tem; 7021 Lisp_Object tem;
7027 7022
@@ -7123,7 +7118,7 @@ parse_image_spec (spec, keywords, nkeywords, type)
7123 int i; 7118 int i;
7124 Lisp_Object plist; 7119 Lisp_Object plist;
7125 7120
7126 if (!CONSP (spec) || !EQ (XCAR (spec), Qimage)) 7121 if (!IMAGEP (spec))
7127 return 0; 7122 return 0;
7128 7123
7129 plist = XCDR (spec); 7124 plist = XCDR (spec);