]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Explicitly declare most scanner functions static.
authorNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 16:02:06 +0000 (11:02 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 7 Jan 2024 21:00:07 +0000 (16:00 -0500)
commit7031fb3bec5bbef1d14686ba0434442a4ebf5ebd
treed9f6839e261101cd384513e9f339929eda847b3d
parentd349b9bb3fde8fc1d1222d5b7ac8dbbaf6dee230
libcdecl: Explicitly declare most scanner functions static.

We use barely any of the exported functions generated by flex.  As this
is going into a library the compiler can't eliminate any of these, even
if they are totally unused.

Just marking all unused functions static is sufficient to reduce the
size of the scanner by about 20% without any significant change to the
code.
src/scan.l