#ifndef __ESCAPE
#define __ESCAPE
char* escape_table(MemPool);
-ANN m_int str2char(const Emitter, const m_str, const loc_t);
+ANN char str2char(const Emitter, const m_str, const loc_t);
ANN m_bool escape_str(const Emitter, m_str, const loc_t);
#endif
}
ANN static m_bool emit_prim_char(const Emitter emit, const m_str *str) {
- DECL_BB(const m_int, c, = str2char(emit, *str, prim_pos(str)))
+ const char c = str2char(emit, *str, prim_pos(str));
regpushi(emit, c);
return GW_OK;
}
return GW_OK;
}
-ANN m_int str2char(const Emitter emit, const m_str c, const loc_t pos) {
+ANN char str2char(const Emitter emit, const m_str c, const loc_t pos) {
return c[0] != '\\' ? c[0] : get_escape(emit, c[1], pos);
}