bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tim-3] Improved DJGPP support in src/files.c


From: Paul Eggert
Subject: Re: [tim-3] Improved DJGPP support in src/files.c
Date: Thu, 17 Jan 2002 10:14:37 -0800 (PST)

> From: Akim Demaille <address@hidden>
> Date: 17 Jan 2002 12:00:12 +0100
> 
> BTW, there is something that I would like very much: have two
> signatures for basename:
> 
> const char *basename_const (const char *name);
> 
> and
> 
> char *basename (const char *name);

I'm not sure that's a good idea.  Lots of C functions have this
problem (for example, strchr), and it seems a bit overkill to have two
copies of each one of them just to quiet a GCC warning.  I think I'd
rather just accept the extra cast as a deficiency of C and move on.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]