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

version» Context lines:

pike.git/src/modules/Image/encodings/wbf.c:13:   #include "object.h"   #include "mapping.h"   #include "interpret.h"   #include "operators.h"   #include "svalue.h"   #include "pike_error.h"   #include "builtin_functions.h"   #include "program.h"      #include "image.h" - #include "builtin_functions.h" +    #include "module_support.h"         #define sp Pike_sp      extern struct program *image_program;      /*! @module Image    */   
pike.git/src/modules/Image/encodings/wbf.c:203:    push_object( io );   }      static void low_image_f_wbf_decode( int args, int mode )   {    struct pike_string *s;    struct wbf_header wh;    int map_num_elems = 0;    struct buffer buff;    -  get_all_args( "decode", args, "%S", &s ); +  get_all_args( NULL, args, "%S", &s );       buff.len = s->len;    buff.str = (unsigned char *)s->str;    sp--; /* Evil me */       wh = decode_header( &buff );       switch( wh.type )    {    case 0:
pike.git/src/modules/Image/encodings/wbf.c:234:    switch( mode )    {    case 2: /* Image only */    low_image_f_wbf_decode_type0( &wh, &buff );    return;       case 1: /* Image and header */    push_static_text( "image" );    low_image_f_wbf_decode_type0( &wh, &buff );    map_num_elems++; +  /* FALLTHRU */       case 0: /* Header only */    push_static_text( "format" );    push_static_text( "image/x-wap.wbmp; type=0" );    map_num_elems++;       push_static_text( "xsize" );    push_int( wh.width );    map_num_elems++;