[FFmpeg-cvslog] r11835 - trunk/configure

Uoti Urpala uoti.urpala
Sun Feb 3 23:20:17 CET 2008


On Sun, 2008-02-03 at 22:49 +0100, Michael Niedermayer wrote:
> On Sun, Feb 03, 2008 at 04:41:43PM -0500, Rich Felker wrote:
> > On Sun, Feb 03, 2008 at 10:33:26PM +0100, michael wrote:
> > > Make string constants const. Why is this not default?
> > 
> > Because C says string literals have type "char *" and not "const char *"
> 
> Thats a pretty good argument, i wonder why the standard says that though?

Because a strictly standard-conforming C program cannot convert
const-qualified pointers to non-const-qualified ones, and being unable
to use "char *" variables with string literals would become very
annoying.





More information about the ffmpeg-cvslog mailing list