Branch: Tag:

2014-09-03

2014-09-03 17:53:37 by Martin Nilsson <nilsson@opera.com>

memset is C89 and 4.3BSD

162:    int j,i,r,g,b;    PFTIME("Creating colormap");    colors_allocated=1; -  MEMSET(allocated,0,sizeof(allocated)); +  memset(allocated,0,sizeof(allocated));    for (r=0; r<3; r++) for (g=0; g<4; g++) for (b=0; b<3; b++) {    GdkColor color;    color.red = (guint16)(r * (65535/2.0));
846:   }      void pgtk2_clear_obj_struct(struct object *o) { -  MEMSET(Pike_fp->current_storage,0,sizeof(struct object_wrapper)); +  memset(Pike_fp->current_storage,0,sizeof(struct object_wrapper));   }      void pgtk2_setup_mixin(struct object *o, struct program *p) {