- wl(' pos += read_%s(&p_%s, data+pos);', p.io[0], p.name)
+ wl(' pos += read_%s((%s *)&p_%s, data+pos);', p.io[0].replace(' ', '_'), 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)