aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorDan Nicolaescu2009-11-06 06:50:52 +0000
committerDan Nicolaescu2009-11-06 06:50:52 +0000
commitd67b4f80dbe514d6e351e7d89c78921c85e7dbe7 (patch)
treeda83a5dc49e499e330365feaa8123709fdf0cc88 /src/image.c
parent495bd5ca19cf79a9e91b77bf2e2ea37b8be3ef1f (diff)
downloademacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.tar.gz
emacs-d67b4f80dbe514d6e351e7d89c78921c85e7dbe7.zip
* xterm.c (syms_of_xterm):
* xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/image.c b/src/image.c
index 62e69b330d0..55ceec326c4 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8373,7 +8373,7 @@ list; if none is loaded, the running session of Emacs won't
8373support the image type. Types 'pbm and 'xbm don't need to be 8373support the image type. Types 'pbm and 'xbm don't need to be
8374listed; they are always supported. */); 8374listed; they are always supported. */);
8375 Vimage_library_alist = Qnil; 8375 Vimage_library_alist = Qnil;
8376 Fput (intern ("image-library-alist"), Qrisky_local_variable, Qt); 8376 Fput (intern_c_string ("image-library-alist"), Qrisky_local_variable, Qt);
8377 8377
8378 DEFVAR_LISP ("max-image-size", &Vmax_image_size, 8378 DEFVAR_LISP ("max-image-size", &Vmax_image_size,
8379 doc: /* Maximum size of images. 8379 doc: /* Maximum size of images.
@@ -8390,105 +8390,105 @@ non-numeric, there is no explicit limit on the size of images. */);
8390 Vimage_type_cache = Qnil; 8390 Vimage_type_cache = Qnil;
8391 staticpro (&Vimage_type_cache); 8391 staticpro (&Vimage_type_cache);
8392 8392
8393 Qpbm = intern ("pbm"); 8393 Qpbm = intern_c_string ("pbm");
8394 staticpro (&Qpbm); 8394 staticpro (&Qpbm);
8395 ADD_IMAGE_TYPE (Qpbm); 8395 ADD_IMAGE_TYPE (Qpbm);
8396 8396
8397 Qxbm = intern ("xbm"); 8397 Qxbm = intern_c_string ("xbm");
8398 staticpro (&Qxbm); 8398 staticpro (&Qxbm);
8399 ADD_IMAGE_TYPE (Qxbm); 8399 ADD_IMAGE_TYPE (Qxbm);
8400 8400
8401 define_image_type (&xbm_type, 1); 8401 define_image_type (&xbm_type, 1);
8402 define_image_type (&pbm_type, 1); 8402 define_image_type (&pbm_type, 1);
8403 8403
8404 Qcount = intern ("count"); 8404 Qcount = intern_c_string ("count");
8405 staticpro (&Qcount); 8405 staticpro (&Qcount);
8406 8406
8407 QCascent = intern (":ascent"); 8407 QCascent = intern_c_string (":ascent");
8408 staticpro (&QCascent); 8408 staticpro (&QCascent);
8409 QCmargin = intern (":margin"); 8409 QCmargin = intern_c_string (":margin");
8410 staticpro (&QCmargin); 8410 staticpro (&QCmargin);
8411 QCrelief = intern (":relief"); 8411 QCrelief = intern_c_string (":relief");
8412 staticpro (&QCrelief); 8412 staticpro (&QCrelief);
8413 QCconversion = intern (":conversion"); 8413 QCconversion = intern_c_string (":conversion");
8414 staticpro (&QCconversion); 8414 staticpro (&QCconversion);
8415 QCcolor_symbols = intern (":color-symbols"); 8415 QCcolor_symbols = intern_c_string (":color-symbols");
8416 staticpro (&QCcolor_symbols); 8416 staticpro (&QCcolor_symbols);
8417 QCheuristic_mask = intern (":heuristic-mask"); 8417 QCheuristic_mask = intern_c_string (":heuristic-mask");
8418 staticpro (&QCheuristic_mask); 8418 staticpro (&QCheuristic_mask);
8419 QCindex = intern (":index"); 8419 QCindex = intern_c_string (":index");
8420 staticpro (&QCindex); 8420 staticpro (&QCindex);
8421 QCmatrix = intern (":matrix"); 8421 QCmatrix = intern_c_string (":matrix");
8422 staticpro (&QCmatrix); 8422 staticpro (&QCmatrix);
8423 QCcolor_adjustment = intern (":color-adjustment"); 8423 QCcolor_adjustment = intern_c_string (":color-adjustment");
8424 staticpro (&QCcolor_adjustment); 8424 staticpro (&QCcolor_adjustment);
8425 QCmask = intern (":mask"); 8425 QCmask = intern_c_string (":mask");
8426 staticpro (&QCmask); 8426 staticpro (&QCmask);
8427 8427
8428 Qlaplace = intern ("laplace"); 8428 Qlaplace = intern_c_string ("laplace");
8429 staticpro (&Qlaplace); 8429 staticpro (&Qlaplace);
8430 Qemboss = intern ("emboss"); 8430 Qemboss = intern_c_string ("emboss");
8431 staticpro (&Qemboss); 8431 staticpro (&Qemboss);
8432 Qedge_detection = intern ("edge-detection"); 8432 Qedge_detection = intern_c_string ("edge-detection");
8433 staticpro (&Qedge_detection); 8433 staticpro (&Qedge_detection);
8434 Qheuristic = intern ("heuristic"); 8434 Qheuristic = intern_c_string ("heuristic");
8435 staticpro (&Qheuristic); 8435 staticpro (&Qheuristic);
8436 8436
8437 Qpostscript = intern ("postscript"); 8437 Qpostscript = intern_c_string ("postscript");
8438 staticpro (&Qpostscript); 8438 staticpro (&Qpostscript);
8439#ifdef HAVE_GHOSTSCRIPT 8439#ifdef HAVE_GHOSTSCRIPT
8440 ADD_IMAGE_TYPE (Qpostscript); 8440 ADD_IMAGE_TYPE (Qpostscript);
8441 QCloader = intern (":loader"); 8441 QCloader = intern_c_string (":loader");
8442 staticpro (&QCloader); 8442 staticpro (&QCloader);
8443 QCbounding_box = intern (":bounding-box"); 8443 QCbounding_box = intern_c_string (":bounding-box");
8444 staticpro (&QCbounding_box); 8444 staticpro (&QCbounding_box);
8445 QCpt_width = intern (":pt-width"); 8445 QCpt_width = intern_c_string (":pt-width");
8446 staticpro (&QCpt_width); 8446 staticpro (&QCpt_width);
8447 QCpt_height = intern (":pt-height"); 8447 QCpt_height = intern_c_string (":pt-height");
8448 staticpro (&QCpt_height); 8448 staticpro (&QCpt_height);
8449#endif /* HAVE_GHOSTSCRIPT */ 8449#endif /* HAVE_GHOSTSCRIPT */
8450 8450
8451#if defined (HAVE_XPM) || defined (HAVE_NS) 8451#if defined (HAVE_XPM) || defined (HAVE_NS)
8452 Qxpm = intern ("xpm"); 8452 Qxpm = intern_c_string ("xpm");
8453 staticpro (&Qxpm); 8453 staticpro (&Qxpm);
8454 ADD_IMAGE_TYPE (Qxpm); 8454 ADD_IMAGE_TYPE (Qxpm);
8455#endif 8455#endif
8456 8456
8457#if defined (HAVE_JPEG) || defined (HAVE_NS) 8457#if defined (HAVE_JPEG) || defined (HAVE_NS)
8458 Qjpeg = intern ("jpeg"); 8458 Qjpeg = intern_c_string ("jpeg");
8459 staticpro (&Qjpeg); 8459 staticpro (&Qjpeg);
8460 ADD_IMAGE_TYPE (Qjpeg); 8460 ADD_IMAGE_TYPE (Qjpeg);
8461#endif 8461#endif
8462 8462
8463#if defined (HAVE_TIFF) || defined (HAVE_NS) 8463#if defined (HAVE_TIFF) || defined (HAVE_NS)
8464 Qtiff = intern ("tiff"); 8464 Qtiff = intern_c_string ("tiff");
8465 staticpro (&Qtiff); 8465 staticpro (&Qtiff);
8466 ADD_IMAGE_TYPE (Qtiff); 8466 ADD_IMAGE_TYPE (Qtiff);
8467#endif 8467#endif
8468 8468
8469#if defined (HAVE_GIF) || defined (HAVE_NS) 8469#if defined (HAVE_GIF) || defined (HAVE_NS)
8470 Qgif = intern ("gif"); 8470 Qgif = intern_c_string ("gif");
8471 staticpro (&Qgif); 8471 staticpro (&Qgif);
8472 ADD_IMAGE_TYPE (Qgif); 8472 ADD_IMAGE_TYPE (Qgif);
8473#endif 8473#endif
8474 8474
8475#if defined (HAVE_PNG) || defined (HAVE_NS) 8475#if defined (HAVE_PNG) || defined (HAVE_NS)
8476 Qpng = intern ("png"); 8476 Qpng = intern_c_string ("png");
8477 staticpro (&Qpng); 8477 staticpro (&Qpng);
8478 ADD_IMAGE_TYPE (Qpng); 8478 ADD_IMAGE_TYPE (Qpng);
8479#endif 8479#endif
8480 8480
8481#if defined (HAVE_RSVG) 8481#if defined (HAVE_RSVG)
8482 Qsvg = intern ("svg"); 8482 Qsvg = intern_c_string ("svg");
8483 staticpro (&Qsvg); 8483 staticpro (&Qsvg);
8484 ADD_IMAGE_TYPE (Qsvg); 8484 ADD_IMAGE_TYPE (Qsvg);
8485#ifdef HAVE_NTGUI 8485#ifdef HAVE_NTGUI
8486 /* Other libraries used directly by svg code. */ 8486 /* Other libraries used directly by svg code. */
8487 Qgdk_pixbuf = intern ("gdk-pixbuf"); 8487 Qgdk_pixbuf = intern_c_string ("gdk-pixbuf");
8488 staticpro (&Qgdk_pixbuf); 8488 staticpro (&Qgdk_pixbuf);
8489 Qglib = intern ("glib"); 8489 Qglib = intern_c_string ("glib");
8490 staticpro (&Qglib); 8490 staticpro (&Qglib);
8491 Qgobject = intern ("gobject"); 8491 Qgobject = intern_c_string ("gobject");
8492 staticpro (&Qgobject); 8492 staticpro (&Qgobject);
8493#endif /* HAVE_NTGUI */ 8493#endif /* HAVE_NTGUI */
8494#endif /* HAVE_RSVG */ 8494#endif /* HAVE_RSVG */