Branch: Tag:

2014-09-12

2014-09-12 13:09:59 by Marcus Cromnow <marcusc@opera.com>

Workaround for precompiler issue in IOBuffer.

The precompiler generates invalid code and fails to compile
when PRECOMPILE_API_VERSION < 5. Generated code ends up inside
the #ifdef-clause.

59:    */   PIKECLASS IOBuffer   { -  CVAR IOBuffer b; -  +    #if PRECOMPILE_API_VERSION > 5    PIKEVAR int b.num_malloc;    PIKEVAR int b.num_move;   #endif    -  +  CVAR IOBuffer b; +     static void io_set_error_mode( IOBuffer *io, struct program *m )    {    if( m ) m->refs++;