for p in params:
if p.kind=="value":
wl(' pos += read_%s(&p_%s, data+pos);', p.io[0], p.name)
+ elif p.kind=="array" and p.io and p.io[0]=="string":
+ wl(' pos += read_string_array(&p_%s, data+pos);', p.name)
elif p.csize:
wl(' pos += read_data((const void **)&p_%s, data+pos);', p.name)
else:
wl(');')
wl(' return pos;')
wl('}')
-:static int decode_func(GlDecoder *dec, short func, const char *data)
+:static int decode_func(GlDecoder *dec, unsigned short func, const char *data)
:{
: switch(func)
: {