Skip to content

Commit

Permalink
re2c: Disable UTF-8
Browse files Browse the repository at this point in the history
The regexes don't require UTF-8 features and work in ASCII mode as
well. Disabling UTF-8 reduces the size of the code generated by re2c by
a couple of KBs.
  • Loading branch information
nwellnhof authored and jgm committed Apr 2, 2024
1 parent 5006438 commit d8de8c7
Show file tree
Hide file tree
Showing 3 changed files with 4,044 additions and 7,383 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ $(SRCDIR)/scanners.c: $(SRCDIR)/scanners.re
false; \
;; \
esac
re2c -W -Werror --case-insensitive -b -i --no-generation-date -8 \
--encoding-policy substitute -o $@ $<
re2c -W -Werror --case-insensitive -b -i --no-generation-date \
-o $@ $<
$(CLANG_FORMAT) $@

# We include entities.inc in the repository, so normally this
Expand Down
Loading

0 comments on commit d8de8c7

Please sign in to comment.