path: root/parse/fold.c
AgeCommit message (Collapse)Author
2019-01-12Allow folding character-typed designated array inits.Ori Bernstein
2018-10-15Disallow negative array sizes. And do some cleanup.Ori Bernstein
2017-07-30Add hook into frontend for sizeof() folding.Ori Bernstein
Before, code like: const f = { var buf: byte[sizeof(int)] } would crash us, because `sizeof` would not get folded. A slightly subtle point: muse doens't install a hook here, but since it's already handling processed usefiles, the array sizes should already be prefolded for its viewing pleasure.
2017-07-09Style(9)-ify.Ori Bernstein
2017-02-14Fold Oudata.Ori Bernstein
2017-02-14Fold Utags on union literals.Ori Bernstein
2016-07-29Fix a bit of undefined behavior.Ori Bernstein
2016-02-22Extract util functions into separate dir from parse/Ori Bernstein
2016-02-08Fix mistake in folding.Ori Bernstein
x % 0 is crash. x % 1 is 0.
2016-01-11Don't sort or copy zero-length null arrays.Ori Bernstein
It's sensible, but undefined.
2016-01-01Actually check array sizes when inferring.Ori Bernstein