forked from westes/flex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move almost all m4 symbol setting to one spot.
Formerly, Flex's own lexer and the logic for pocessing command-line options both did calls to write M4 conditionals to a buffer that was later dumped into the befinning of the text that m4 expands, before the body of the skel file. This was bad layering. Instead, both these places now set flags in the ctrl structure. Later, (almost) all the generated m4 conditionals are shipped at once. It's "almost" because there are a couple of awkward cases to be cleaned up. Again, this was the part that could be done simply via almost mechanical cut and paste. In generated code, there are some comment diffs because symbols that used to be invisibly set are now visibly set - that is, shown at the beginning of the generated C. westes#55 in the retargeting patch series
- Loading branch information
1 parent
c5d0e40
commit 7e77d8f
Showing
3 changed files
with
142 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters