[MPlayer-cvslog] r32915 - trunk/gui/skin/font.c
Diego Biurrun
diego at biurrun.de
Thu Feb 17 13:40:52 CET 2011
On Thu, Feb 17, 2011 at 12:28:00PM +0100, Ingo Brückl wrote:
> Diego Biurrun wrote on Thu, 17 Feb 2011 12:06:27 +0100:
>
> >> +bmpFont * Fonts[MAX_FONTS] = {NULL};
>
> > I think the standard way to write this is '{ 0 }'.
>
> Is this about the NULL vs. 0 as null pointer representation? I know that this
> is a big issue in C++, but in C I prefer using NULL over 0 (as I prefer using
> '\0' for char variables) in order to emphasize the type.
>
> (I know that there are?/were machines where NULL did not point to "zero" and
> I wonder if {NULL} or { 0 } is the right initialization for them.)
http://www.ex-parrot.com/~chris/random/initialise.html
I follow the author and believe that '{ 0 }' is correct.
Diego
More information about the MPlayer-cvslog
mailing list