aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-11 13:51:58 +0100
committerlemon <lsof@mailbox.org>2025-12-11 13:51:58 +0100
commit9708e5fed9eb27329ca7cc95914c7b2f12e60c56 (patch)
tree652f939b072db456bc2dcb652430fffcf77a6804 /main.c
parent7fc7f7b650cd54aaa9d675f0b247b90e22977fc1 (diff)
-trigraphs option
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 3833d85..ec3052f 100644
--- a/main.c
+++ b/main.c
@@ -136,6 +136,8 @@ optparse(char **args)
else goto Bad;
} else if (!strcmp(arg, "pedantic")) {
ccopt.pedant = 1;
+ } else if (!strcmp(arg, "trigraphs")) {
+ ccopt.trigraph = 1;
} else if (*arg == 'd' && arg[1]) {
/* see common.h§struct option */
while (*++arg) switch (*arg | 32) {