Branch: Tag:

2005-12-29

2005-12-29 00:00:53 by Martin Nilsson <mani@lysator.liu.se>

Load image and color programs at startup.

Rev: src/post_modules/GTK2/source/global.pre:1.4
Rev: src/post_modules/GTK2/source/support.c:1.5

737:   }   endrequire;    + %{ + #ifdef DYNAMIC_MODULE + struct program *image_color_program = NULL; + struct program *image_program = NULL; + #else + extern struct program *image_color_program; + extern struct program *image_program; + #endif + %} +  + INIT { + #ifdef DYNAMIC_MODULE +  image_color_program = PIKE_MODULE_IMPORT(Image, image_color_program); +  if(!image_color_program) +  Pike_error("Could not load Image module.\n"); +  +  image_program = PIKE_MODULE_IMPORT(Image, image_program); +  if(!image_program) +  Pike_error("Could not load Image module.\n"); + #endif + } +