Mercurial > emacs
comparison src/xfns.c @ 25620:1c991744ce13
(QCindex): New.
(syms_of_xfns): Initialize QCindex.
(gif_load): Use it instead of `:image'.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 09 Sep 1999 14:54:29 +0000 |
parents | 9aecfcf3cb43 |
children | 98e238950125 |
comparison
equal
deleted
inserted
replaced
25619:f25a14690a18 | 25620:1c991744ce13 |
---|---|
5449 /* Keywords. */ | 5449 /* Keywords. */ |
5450 | 5450 |
5451 Lisp_Object QCtype, QCdata, QCfile, QCascent, QCmargin, QCrelief; | 5451 Lisp_Object QCtype, QCdata, QCfile, QCascent, QCmargin, QCrelief; |
5452 extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground; | 5452 extern Lisp_Object QCwidth, QCheight, QCforeground, QCbackground; |
5453 Lisp_Object QCalgorithm, QCcolor_symbols, QCheuristic_mask; | 5453 Lisp_Object QCalgorithm, QCcolor_symbols, QCheuristic_mask; |
5454 extern Lisp_Object QCimage; | 5454 Lisp_Object QCindex; |
5455 | 5455 |
5456 /* Other symbols. */ | 5456 /* Other symbols. */ |
5457 | 5457 |
5458 Lisp_Object Qlaplace; | 5458 Lisp_Object Qlaplace; |
5459 | 5459 |
8867 DGifCloseFile (gif); | 8867 DGifCloseFile (gif); |
8868 UNGCPRO; | 8868 UNGCPRO; |
8869 return 0; | 8869 return 0; |
8870 } | 8870 } |
8871 | 8871 |
8872 image = image_spec_value (img->spec, QCimage, NULL); | 8872 image = image_spec_value (img->spec, QCindex, NULL); |
8873 ino = INTEGERP (image) ? XFASTINT (image) : 0; | 8873 ino = INTEGERP (image) ? XFASTINT (image) : 0; |
8874 if (ino >= gif->ImageCount) | 8874 if (ino >= gif->ImageCount) |
8875 { | 8875 { |
8876 image_error ("Invalid image number `%s'", image, Qnil); | 8876 image_error ("Invalid image number `%s'", image, Qnil); |
8877 DGifCloseFile (gif); | 8877 DGifCloseFile (gif); |
10398 staticpro (&QCbounding_box); | 10398 staticpro (&QCbounding_box); |
10399 QCpt_width = intern (":pt-width"); | 10399 QCpt_width = intern (":pt-width"); |
10400 staticpro (&QCpt_width); | 10400 staticpro (&QCpt_width); |
10401 QCpt_height = intern (":pt-height"); | 10401 QCpt_height = intern (":pt-height"); |
10402 staticpro (&QCpt_height); | 10402 staticpro (&QCpt_height); |
10403 QCindex = intern (":index"); | |
10404 staticpro (&QCindex); | |
10403 Qpbm = intern ("pbm"); | 10405 Qpbm = intern ("pbm"); |
10404 staticpro (&Qpbm); | 10406 staticpro (&Qpbm); |
10405 | 10407 |
10406 #if HAVE_XPM | 10408 #if HAVE_XPM |
10407 Qxpm = intern ("xpm"); | 10409 Qxpm = intern ("xpm"); |