Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > + void freeze(visit_info *info) { > + IMAGE_IO *io = info->image_io; > + io->vtable->push_integer(INTERP, io, PMC_int_val(SELF)); > + STRING * s = string_from_cstring(INTERP, PMC_data(SELF), > PMC_int_val2(SELF)/BITS_PER_CHAR); > + io->vtable->push_string(INTERP, io, s); > + }
Hehe. Clever trick. leo PS nitpick: C89 doesn't allow the declaration of STRING *s after a statement.