|
|
@@ -4,18 +4,11 @@
|
|
|
|
|
|
#include "re1.5.h"
|
|
|
|
|
|
-#define REL(at, to) (to - at - 2)
|
|
|
-#define PC (prog->bytelen)
|
|
|
-
|
|
|
-#if defined(__ICCARM__)
|
|
|
-#define EMIT(at, byte) (code ? (code[at] = byte) : (at))
|
|
|
#define INSERT_CODE(at, num, pc) \
|
|
|
((code ? memmove(code + at + num, code + at, pc - at) : 0), pc += num)
|
|
|
-#else
|
|
|
-#define INSERT_CODE(at, num, pc) \
|
|
|
- ((code ? memmove(code + at + num, code + at, pc - at) : (void)0), pc += num)
|
|
|
-#define EMIT(at, byte) (code ? (code[at] = byte) : (void)(at))
|
|
|
-#endif /* defined(__ICCARM__) */
|
|
|
+#define REL(at, to) (to - at - 2)
|
|
|
+#define EMIT(at, byte) (code ? (code[at] = byte) : (at))
|
|
|
+#define PC (prog->bytelen)
|
|
|
|
|
|
static const char *_compilecode(const char *re, ByteProg *prog, int sizecode)
|
|
|
{
|