1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
/* 
|| This file is part of Pike. For copyright information see COPYRIGHT. 
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING 
|| for more information. 
*/ 
 
#ifndef IMAGE_INITER 
#define IMAGE_CLASS(a,b,c,what) extern struct program *what; 
#define IMAGE_SUBMODULE(a,b,c) 
#define IMAGE_SUBMODMAG(a,b,c) 
#define IMAGE_FUNCTION(a,name,c,d) void name(INT32 args); 
#endif 
 
/* Do not change the order here unless you also change 
 * things in program_id.h 
 */ 
 
IMAGE_CLASS("Image",      init_image_image,      exit_image_image, 
            image_program ) 
 
IMAGE_CLASS("Colortable", init_image_colortable, exit_image_colortable, 
            image_colortable_program ) 
 
IMAGE_CLASS("Layer",      init_image_layers,     exit_image_layers, 
            image_layer_program ) 
 
IMAGE_CLASS("Font",       init_image_font,       exit_image_font, 
            image_font_program ) 
 
IMAGE_SUBMODULE("Color", init_image_colors, exit_image_colors ) 
 
IMAGE_SUBMODULE("ANY",   init_image_any,  exit_image_any  ) 
IMAGE_SUBMODULE("AVS",   init_image_avs,  exit_image_avs  ) 
IMAGE_SUBMODULE("BMP",   init_image_bmp,  exit_image_bmp  ) 
IMAGE_SUBMODULE("HRZ",   init_image_hrz,  exit_image_hrz  ) 
IMAGE_SUBMODULE("ILBM",  init_image_ilbm, exit_image_ilbm ) 
IMAGE_SUBMODULE("PCX",   init_image_pcx,  exit_image_pcx  ) 
IMAGE_SUBMODULE("PNM",   init_image_pnm,  exit_image_pnm  ) 
IMAGE_SUBMODULE("_PSD",  init_image_psd,  exit_image_psd  ) 
IMAGE_SUBMODULE("PVR",   init_image_pvr,  exit_image_pvr  ) 
IMAGE_SUBMODULE("RAS",   init_image_ras,  exit_image_ras  ) 
IMAGE_SUBMODULE("TGA",   init_image_tga,  exit_image_tga  ) 
IMAGE_SUBMODULE("TIM",   init_image_tim,  exit_image_tim  ) 
IMAGE_SUBMODULE("X",     init_image_x,    exit_image_x    ) 
IMAGE_SUBMODULE("XBM",   init_image_xbm,  exit_image_xbm  ) 
IMAGE_SUBMODULE("_XCF",  init_image_xcf,  exit_image_xcf  ) 
IMAGE_SUBMODULE("DSI",   init_image_dsi,  exit_image_dsi  ) 
IMAGE_SUBMODULE("XWD",   init_image_xwd,  exit_image_xwd  ) 
IMAGE_SUBMODULE("_XPM",  init_image__xpm, exit_image__xpm ) 
IMAGE_SUBMODULE("WBF",   init_image_wbf,  exit_image_wbf ) 
IMAGE_SUBMODULE("WBMP",  init_image_wbf,  exit_image_wbf ) 
IMAGE_SUBMODULE("NEO",   init_image_neo,  exit_image_neo ) 
 
IMAGE_SUBMODMAG("PNG",   init_image_png,  exit_image_png  ) 
 
IMAGE_FUNCTION("lay",image_lay, 
               tOr(tFunc(tArr(tOr(tObj,tLayerMap)),tObj), 
                   tFunc(tArr(tOr(tObj,tLayerMap)) 
                         tInt tInt tInt tInt,tObj)),0)