/* don't use the following vars directly, they're only here for the inlines */
extern FILE *emit_file;
extern struct obstack emit_obst;
-extern int emit_linelength;
/**
* Emit a character to the (assembler) output.
static inline void be_emit_char(char c)
{
obstack_1grow(&emit_obst, c);
- emit_linelength++;
}
/**
static inline void be_emit_string_len(const char *str, size_t l)
{
obstack_grow(&emit_obst, str, l);
- emit_linelength += l;
}
/**
* @param str the null-terminated string constant
*/
#define be_emit_cstring(str) \
- do { be_emit_string_len(str, sizeof(str)-1); } while(0)
+ be_emit_string_len(str, sizeof(str) - 1)
/**
* Initializes an emitter environment.