Branch: Tag:

1998-04-20

1998-04-20 18:54:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Changed a lot of ->refs++ to use add_ref() or ref_push_*() instead.

Rev: src/cpp.c:1.23
Rev: src/encode.c:1.19
Rev: src/gc.c:1.35
Rev: src/mapping.c:1.29
Rev: src/modules/Gmp/mpz_glue.c:1.32
Rev: src/modules/Image/blit.c:1.28
Rev: src/modules/Image/colortable.c:1.44
Rev: src/modules/Image/encodings/png.c:1.14
Rev: src/modules/Image/encodings/pnm.c:1.16
Rev: src/modules/Image/encodings/x.c:1.16
Rev: src/modules/Image/encodings/xwd.c:1.5
Rev: src/modules/Image/font.c:1.34
Rev: src/modules/Image/image.c:1.104
Rev: src/modules/Image/pnm.c:1.10
Rev: src/modules/Image/polyfill.c:1.25
Rev: src/modules/Image/togif.c:1.31
Rev: src/modules/Mysql/mysql.c:1.19
Rev: src/modules/Mysql/result.c:1.11
Rev: src/modules/Odbc/odbc.c:1.7
Rev: src/modules/Odbc/odbc_result.c:1.8
Rev: src/modules/Oracle/oracle.c:1.10
Rev: src/modules/Pipe/pipe.c:1.21
Rev: src/modules/Postgres/pgresult.c:1.6
Rev: src/modules/Postgres/postgres.c:1.6
Rev: src/modules/Regexp/glue.c:1.11
Rev: src/modules/Ssleay/ssleay.c:1.8
Rev: src/modules/_Crypto/cbc.c:1.11
Rev: src/modules/_Crypto/crypto.c:1.25
Rev: src/modules/_Crypto/md2.c:1.4
Rev: src/modules/_Crypto/pipe.c:1.12
Rev: src/modules/call_out/call_out.c:1.20
Rev: src/modules/spider/spider.c:1.67
Rev: src/modules/spider/streamed_parser.c:1.10
Rev: src/multiset.c:1.11
Rev: src/object.h:1.18
Rev: src/opcodes.c:1.20
Rev: src/signal_handler.c:1.48
Rev: src/stralloc.c:1.34
Rev: src/threads.c:1.69

1: - /* $Id: blit.c,v 1.27 1998/01/16 22:09:07 grubba Exp $ */ + /* $Id: blit.c,v 1.28 1998/04/20 18:53:27 grubba Exp $ */   #include "global.h"      /*   **! module Image   **! note - **! $Id: blit.c,v 1.27 1998/01/16 22:09:07 grubba Exp $ + **! $Id: blit.c,v 1.28 1998/04/20 18:53:27 grubba Exp $   **! class image   */   
296:    if(x1 >= THIS->xsize || y1 >= THIS->ysize) /* Per */    {    pop_n_elems(args); -  THISOBJ->refs++; -  push_object(THISOBJ); +  ref_push_object(THISOBJ);    return;    }    x2=x1+img->xsize-1;
306:    if(x2 < 0 || y2 < 0) /* Per */    {    pop_n_elems(args); -  THISOBJ->refs++; -  push_object(THISOBJ); +  ref_push_object(THISOBJ);    return;    }    blitwidth=MINIMUM(x2,THIS->xsize-1)-MAXIMUM(x1,0)+1;
321:    img->xsize);       pop_n_elems(args); -  THISOBJ->refs++; -  push_object(THISOBJ); +  ref_push_object(THISOBJ);   }      /*
376:    if(x1 >= THIS->xsize || y1 >= THIS->ysize) /* Per */    {    pop_n_elems(args); -  THISOBJ->refs++; -  push_object(THISOBJ); +  ref_push_object(THISOBJ);    return;    }   
405:    THREADS_DISALLOW();    }    pop_n_elems(args); -  THISOBJ->refs++; -  push_object(THISOBJ); +  ref_push_object(THISOBJ);   }      /*
502:   CHRONO("image_paste_mask end");       pop_n_elems(args); -  THISOBJ->refs++; -  push_object(THISOBJ); +  ref_push_object(THISOBJ);   }      /*
609:   CHRONO("image_paste_alpha_color end");       pop_n_elems(args); -  THISOBJ->refs++; -  push_object(THISOBJ); +  ref_push_object(THISOBJ);   }      void img_box(INT32 x1,INT32 y1,INT32 x2,INT32 y2)