This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: malloc.c cleanups


Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> writes:

|> OK, I see.  It's probably a matter of taste, but I would prefer to see
|> sizeof(main_arena.av[0]) used rather than the cast NULL pointer.  My C
|> standard draft says that expressions `usually' aren't evaluated within
|> sizeof, but only in a footnote.

The sizeof expression is only evaluated if it contains a VLA.  This is
clearly stated in the semantics section (6.5.3.4#2).

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]