- fix r23688
[libfirm] / ir / be / beemitter.h
index 06b60e6..4211382 100644 (file)
 /* 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.
  *
  * @param env  the emitter environment
  */
-static INLINE void be_emit_char(char c)
+static inline void be_emit_char(char c)
 {
        obstack_1grow(&emit_obst, c);
-       emit_linelength++;
 }
 
 /**
@@ -58,10 +56,9 @@ static INLINE void be_emit_char(char c)
  * @param str  the string
  * @param l    the length of the given string
  */
-static INLINE void be_emit_string_len(const char *str, size_t l)
+static inline void be_emit_string_len(const char *str, size_t l)
 {
        obstack_grow(&emit_obst, str, l);
-       emit_linelength += l;
 }
 
 /**
@@ -70,7 +67,7 @@ static INLINE void be_emit_string_len(const char *str, size_t l)
  * @param env  the emitter environment
  * @param str  the null-terminated string
  */
-static INLINE void be_emit_string(const char *str)
+static inline void be_emit_string(const char *str)
 {
        size_t len = strlen(str);
        be_emit_string_len(str, len);
@@ -83,7 +80,7 @@ static INLINE void be_emit_string(const char *str)
  * @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.