pike.git / lib / modules / _Image_XCF.pmod

version» Context lines:

pike.git/lib/modules/_Image_XCF.pmod:35:      class Parasite( string name, int flags, string data ) { }      array(Parasite) decode_parasites( mixed data )   {    array res = ({});    data = (string)data;    while(sizeof(data))    {    int slen, flags; -  string value, name; +     sscanf(data, "%4c", slen); -  name = data[..slen-2]; +  string name = data[..slen-2];    data = data[slen..];    sscanf(data, "%4c%4c", flags, slen);    res += ({ Parasite( name,flags,data[8..slen+8-1] ) });    data = data[slen+8..];    }    return res;   }      #define FLAG(X,Y) case PROP_##X: flags->Y=p->data->get_int(0); break;   #define INT(X,Y) case PROP_##X: Y = p->data->get_uint( 0 ); break;