pike.git / src / modules / Image / layers.c

version» Context lines:

pike.git/src/modules/Image/layers.c:1426:    if (!args)    SIMPLE_TOO_FEW_ARGS_ERROR("cast",1);       type = Pike_sp[-args].u.string;    pop_n_elems(args); /* type have at least one more reference. */       if (type == literal_mapping_string)    {    int n=0;    -  push_text("xsize"); push_int(THIS->xsize); n++; -  push_text("ysize"); push_int(THIS->ysize); n++; -  push_text("image"); image_layer_image(0); n++; -  push_text("alpha"); image_layer_alpha(0); n++; -  push_text("xoffset"); push_int(THIS->xoffs); n++; -  push_text("yoffset"); push_int(THIS->yoffs); n++; -  push_text("alpha_value"); push_float(THIS->alpha_value); n++; -  push_text("fill"); image_layer_fill(0); n++; -  push_text("fill_alpha"); image_layer_fill_alpha(0); n++; -  push_text("tiled"); push_int(THIS->tiled); n++; -  push_text("mode"); image_layer_mode(0); n++; +  push_static_text("xsize"); push_int(THIS->xsize); n++; +  push_static_text("ysize"); push_int(THIS->ysize); n++; +  push_static_text("image"); image_layer_image(0); n++; +  push_static_text("alpha"); image_layer_alpha(0); n++; +  push_static_text("xoffset"); push_int(THIS->xoffs); n++; +  push_static_text("yoffset"); push_int(THIS->yoffs); n++; +  push_static_text("alpha_value"); push_float(THIS->alpha_value); n++; +  push_static_text("fill"); image_layer_fill(0); n++; +  push_static_text("fill_alpha"); image_layer_fill_alpha(0); n++; +  push_static_text("tiled"); push_int(THIS->tiled); n++; +  push_static_text("mode"); image_layer_mode(0); n++;       f_aggregate_mapping(n*2);    }    else if (type == literal_string_string)    {    size_t size = THIS->xsize*THIS->ysize, i;    struct pike_string *s = begin_shared_string(size*4);    rgb_group *img = 0;    rgb_group *alp = 0;   
pike.git/src/modules/Image/layers.c:3243:    SIMPLE_BAD_ARG_ERROR("_sprintf",0,"int");    if (TYPEOF(Pike_sp[1-args]) != T_MAPPING)    SIMPLE_BAD_ARG_ERROR("_sprintf",1,"mapping");       x = Pike_sp[-2].u.integer;       pop_n_elems( 2 );    switch( x )    {    case 't': -  push_text("Image.Layer"); +  push_static_text("Image.Layer");    return;    case 'O': -  push_text( "Image.Layer(%O i=%O a=%O)" ); +  push_static_text( "Image.Layer(%O i=%O a=%O)" );    image_layer_mode(0);    if( THIS->image ) ref_push_object( THIS->image ); else push_int( 0 );    if( THIS->alpha ) ref_push_object( THIS->alpha ); else push_int( 0 );    f_sprintf( 4 );    return;    default:    push_int(0);    return;    }   }