aboutsummaryrefslogtreecommitdiff
path: root/main.l
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-09-10 22:46:11 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-09-10 22:46:11 +0200
commit636aa90030403972fb6e80b17260618aa0a291dd (patch)
treea3f014bf934a7b4209348e08c1c5e3e6f0633ee1 /main.l
parentabaefff6651b23cd7e982649e5441ca7d722f4fc (diff)
Don’t bother with gettext
Diffstat (limited to 'main.l')
-rw-r--r--main.l11
1 files changed, 4 insertions, 7 deletions
diff --git a/main.l b/main.l
index 6253ece..51ea227 100644
--- a/main.l
+++ b/main.l
@@ -6,9 +6,6 @@
#include <string.h>
#include <unistd.h>
-#include <libintl.h>
-
-#define _(s) gettext(s)
#define lengthof(a) (sizeof(a) / sizeof((a)[0]))
#define YY_USER_ACTION yylloc.col += yyleng;
@@ -130,12 +127,12 @@ HEX [0-9A-F]
{HEX}{8} { decode(16); }
{bin}{0,31}|{hex}{0,7}|{HEX}{0,7}|{bin}+|{hex}+|{HEX}+ {
- bitch(_("%s:%zu:%zu: opcode ‘%s’ is not 32 bits"),
+ bitch("%s:%zu:%zu: opcode ‘%s’ is not 32 bits",
current_file, yylloc.row, yylloc.col, yytext);
}
({bin}|{hex}|{HEX})+ {
- bitch(_("%s:%zu:%zu: invalid opcode ‘%s’"),
+ bitch("%s:%zu:%zu: invalid opcode ‘%s’",
current_file, yylloc.row, yylloc.col, yytext);
}
@@ -143,7 +140,7 @@ HEX [0-9A-F]
\n { LOCNL; }
. {
- bitch(_("%s:%zu:%zu: unknown character ‘%c’"),
+ bitch("%s:%zu:%zu: unknown character ‘%c’",
current_file, yylloc.row, yylloc.col, *yytext);
}
@@ -232,7 +229,7 @@ decode(int base)
return;
}
- bitch(_("%s:%zu:%zu: unknown opcode ‘%s’"),
+ bitch("%s:%zu:%zu: unknown opcode ‘%s’",
current_file, yylloc.row, yylloc.col, yytext);
}