comparison src/image.c @ 56132:56c3ef9caeed

Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-410 Make sure image types are initialized for lookup too
author Miles Bader <miles@gnu.org>
date Wed, 16 Jun 2004 02:45:09 +0000
parents a450e67752ed
children 7acb38a05354 4c90ffeb71c5
comparison
equal deleted inserted replaced
56131:0806d31e3c9c 56132:56c3ef9caeed
686 static INLINE struct image_type * 686 static INLINE struct image_type *
687 lookup_image_type (symbol) 687 lookup_image_type (symbol)
688 Lisp_Object symbol; 688 Lisp_Object symbol;
689 { 689 {
690 struct image_type *type; 690 struct image_type *type;
691
692 /* We must initialize the image-type if it hasn't been already. */
693 if (NILP (Finit_image_library (symbol)))
694 return 0; /* unimplemented */
691 695
692 for (type = image_types; type; type = type->next) 696 for (type = image_types; type; type = type->next)
693 if (EQ (symbol, *type->type)) 697 if (EQ (symbol, *type->type))
694 break; 698 break;
695 699