[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: constify dirname/basename [was: CVS commit: src]
>>> SUSv3 says that both functions "may modify the string pointed to by
>>> path" (the argument to those functions). While our implementations
>>> don't do that, are we OK by the standards to now declare those
>>> functions as having a const argument?
>> I can't see why not.
> It means user-space code redclaring the function will now get an
> incompatible redclaration error.
User code that redeclares the function will get an even more mysterious
error if it happens to be `defined' as a macro instead (well, for most
macros). Isn't the implementation permitted to define most functions
as macros instead (with real functions available, of course)?
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents.montreal.qc.ca@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Main Index |
Thread Index |