Branch: Tag:

1999-05-23

1999-05-23 17:47:04 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

image module startup changed, using headerfile initstuff.h

Rev: src/modules/Image/Makefile.in:1.23
Rev: src/modules/Image/colors.c:1.17
Rev: src/modules/Image/colortable.c:1.67
Rev: src/modules/Image/encodings/Makefile.in:1.26
Rev: src/modules/Image/encodings/_xpm.c:1.7
Rev: src/modules/Image/encodings/any.c:1.9
Rev: src/modules/Image/encodings/avs.c:1.6
Rev: src/modules/Image/encodings/bmp.c:1.14
Rev: src/modules/Image/encodings/gif.c:1.48
Rev: src/modules/Image/encodings/hrz.c:1.2
Rev: src/modules/Image/encodings/ilbm.c:1.11
Rev: src/modules/Image/encodings/pcx.c:1.6
Rev: src/modules/Image/encodings/png.c:1.24
Rev: src/modules/Image/encodings/pnm.c:1.19
Rev: src/modules/Image/encodings/psd.c:1.10
Rev: src/modules/Image/encodings/tga.c:1.7
Rev: src/modules/Image/encodings/x.c:1.22
Rev: src/modules/Image/encodings/xbm.c:1.5
Rev: src/modules/Image/encodings/xcf.c:1.8
Rev: src/modules/Image/encodings/xwd.c:1.12
Rev: src/modules/Image/font.c:1.48
Rev: src/modules/Image/image.c:1.136
Rev: src/modules/Image/image.h:1.32
Rev: src/modules/Image/image_module.c:1.1
Rev: src/modules/Image/initstuff.h:1.1
Rev: src/modules/Image/layers.c:1.12
Rev: src/modules/Image/pattern.c:1.16

1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.11 1999/05/08 00:42:12 hubbe Exp $ + **! $Id: layers.c,v 1.12 1999/05/23 17:46:44 mirar Exp $   **! class Layer   */   
10:      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.11 1999/05/08 00:42:12 hubbe Exp $"); + RCSID("$Id: layers.c,v 1.12 1999/05/23 17:46:44 mirar Exp $");      #include "config.h"   
2060:    for (i=0; i<LAYER_MODES; i++)    layer_mode[i].ps=make_shared_string(layer_mode[i].name);    -  start_new_program(); +  /* layer object */       ADD_STORAGE(struct layer);    set_init_callback(init_layer);    set_exit_callback(exit_layer);    - #define tLayerMap tMap(tString,tOr4(tString,tColor,tFloat,tInt)) -  +     ADD_FUNCTION("create",image_layer_create,    tOr4(tFunc(,tVoid),    tFunc(tObj tOr(tObj,tVoid) tOr(tString,tVoid),tVoid),
2109:    ADD_FUNCTION("fill_alpha",image_layer_fill_alpha,tFunc(,tObj),0);       ADD_FUNCTION("tiled",image_layer_tiled,tFunc(,tInt01),0); -  -  image_layer_program=end_program(); -  -  add_program_constant("Layer",image_layer_program,0); -  -  ADD_FUNCTION("lay",image_lay, -  tOr(tFunc(tArr(tOr(tObj,tLayerMap)),tObj), -  tFunc(tArr(tOr(tObj,tLayerMap)) -  tInt tInt tInt tInt,tObj)),0); +    }      void exit_image_layers(void)
2126:       for (i=0; i<LAYER_MODES; i++)    free_string(layer_mode[i].ps); -  -  if (image_layer_program) -  { -  free_program(image_layer_program); -  image_layer_program=NULL; +    } - } +