[gs-bugs] [Bug 691241] remove global variables
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Wed Apr 21 18:50:34 UTC 2010
http://bugs.ghostscript.com/show_bug.cgi?id=691241
--- Comment #6 from James Cloos <cloos at jhcloos.com> 2010-04-21 18:50:32 UTC ---
I found a note in the C FAQ that unspecified entries at the end of an
initialization default to 0.
In http://flash-gordon.me.uk/ansi.c.txt, §3.5.7:
> If there are fewer initializers in a list than there are members of
> an aggregate, the remainder of the aggregate shall be initialized
> implicitly the same as objects that have static storage duration.
(That file is widely referenced, according to google.)
So it is part of c89 at the very least.
I don’t have a K&R reference handy (I lost my copy years ago, with most of my
library); I can’t prove that it would work in a K&R-only compiler.
Perhaps the comment should more closely match the text I quoted above?
I can update the patch for that, if desired.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list