cvs commit: hugs98/src opts.c
Sigbjorn Finne
sof at glass.cse.ogi.edu
Mon Dec 15 21:48:40 EST 2003
sof 2003/12/15 21:48:40 PST
Modified files:
src opts.c
Log:
- PUTS(s) macro: be defensive & 'linear' in the use of 's' by
binding it to a local, first thing. If not, confusion reigns
if 's' is side-effecting (as was the case with PUTS() use
in optionsToStr().)
- PUTStr_aux(): don't rely on PUTS() being well-behaved &
bind argument to local first.
This latent bug was previously just a minor source of
inefficiency (two calls to unlexChar() per character),
but with the introduction of the side-effecting ExtractChar()
macro, things got a bit uglier.
Revision Changes Path
1.15 +8 -3 hugs98/src/opts.c
More information about the Cvs-hugs
mailing list