pike.git / src / modules / Image / encodings / wbf.c

version» Context lines:

pike.git/src/modules/Image/encodings/wbf.c:93:    res <<= 7;    res |= i&0x7f;    if( !(i & 0x80 ) )    break;    }    return res;   }      static void push_ext_header( struct ext_header *eh )   { -  push_constant_text( "identifier" ); +  push_text( "identifier" );    push_string( make_shared_binary_string( eh->name, eh->name_len ) ); -  push_constant_text( "value" ); +  push_text( "value" );    push_string( make_shared_binary_string( eh->value, eh->value_len ) );    f_aggregate_mapping( 4 );   }      static void free_wbf_header_contents( struct wbf_header *wh )   {    while( wh->first_ext_header )    {    struct ext_header *eh = wh->first_ext_header;    wh->first_ext_header = eh->next;
pike.git/src/modules/Image/encodings/wbf.c:227:    first byte is upper left corner of image.    each row is padded to one byte    */    switch( mode )    {    case 2: /* Image only */    low_image_f_wbf_decode_type0( &wh, &buff );    return;       case 1: /* Image and header */ -  push_constant_text( "image" ); +  push_text( "image" );    low_image_f_wbf_decode_type0( &wh, &buff );    map_num_elems++;       case 0: /* Header only */ -  push_constant_text( "format" ); -  push_constant_text( "image/x-wap.wbmp; type=0" ); +  push_text( "format" ); +  push_text( "image/x-wap.wbmp; type=0" );    map_num_elems++;    -  push_constant_text( "xsize" ); +  push_text( "xsize" );    push_int( wh.width );    map_num_elems++;    -  push_constant_text( "ysize" ); +  push_text( "ysize" );    push_int( wh.height );    map_num_elems++;       if( wh.fix_header_field )    { -  push_constant_text( "fix_header_field" ); +  push_text( "fix_header_field" );    push_int( wh.fix_header_field );    map_num_elems++;    }       if( wh.ext_header_field )    { -  push_constant_text( "ext_header_field" ); +  push_text( "ext_header_field" );    push_int( wh.ext_header_field );    map_num_elems++;    }       if( wh.first_ext_header )    {    int num_headers = 0;    struct ext_header *eh = wh.first_ext_header;    while( eh )    {