Branch: Tag:

2001-03-29

2001-03-29 02:54:12 by Per Hedbor <ph@opera.com>

IDs for the image-programs added to program_id.h, the image module now have constant IDs. This is not yet used in the types for it, though. Also added optimization for object( id<65536) in encode.c:encode_type and decode_type. Left to do is the code that encodes programs. It is possible to add that in the codec if int __program_to_id( program ) and program __id_to_program( int id ) or similar are added, otherwise the code has to go into encode.c

Rev: src/encode.c:1.95
Rev: src/modules/Gmp/mpz_glue.c:1.92
Rev: src/modules/Image/colors.c:1.48
Rev: src/modules/Image/image_module.c:1.11
Rev: src/modules/Image/initstuff.h:1.12
Rev: src/program.h:1.122
Rev: src/program_id.h:1.7

1:   /*   **! module Image   **! note - **! $Id: colors.c,v 1.47 2001/03/17 20:42:46 grubba Exp $ + **! $Id: colors.c,v 1.48 2001/03/29 02:54:11 per Exp $   **! submodule Color   **!   **! This module keeps names and easy handling
179:      #include "global.h"    - RCSID("$Id: colors.c,v 1.47 2001/03/17 20:42:46 grubba Exp $"); + RCSID("$Id: colors.c,v 1.48 2001/03/29 02:54:11 per Exp $");      #include "image_machine.h"   
199:   #include "operators.h"   #include "module_support.h"   #include "opcodes.h" + #include "program_id.h"      #include "image.h"   #include "colortable.h"
1757:    ADD_FUNCTION("_indices",image_colors_indices,tFunc(tNone,tArr(tStr)),0);    ADD_FUNCTION("_values",image_colors_values,tFunc(tNone,tArr(tObj)),0);    +  image_color_program->id = PROG_IMAGE_COLOR_COLOR_ID; +     add_program_constant("Color",image_color_program,0);   }