dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

strange warning from C code #60

Closed dimitriv closed 9 years ago

dimitriv commented 9 years ago

Can someone have a look at this output from gcc:

buf_numerics8.c:232:8: warning: extra tokens at end of #endif directive [enabled by default]
 #endif blk->total_in += vlen;
edsko commented 9 years ago

Did you mean to assign this to me? I didn't touch this code :) But the same code in the 16-bit version looks like

GetStatus buf_getarrint16(BlinkParams *params, BufContextBlock *blk, int16 *x, unsigned int vlen)
{
#ifdef STAMP_AT_READ
    write_time_stamp(params);
#endif
    blk->total_in += vlen;
    return _buf_getarrint16(params, blk, x, vlen);
}

so probably we want to do the same in the 8-bit version?

dimitriv commented 9 years ago

Ah yes weird that this thing appeared only now. I can do this.

dimitriv commented 9 years ago

Ok fixed by 95a1550e084b0b05c8