Deprecation mentions in exec.doc
Posted: Wed Jan 11, 2012 10:03 pm
The highlight of the depreciation state of a given function is not always very clear and sometimes hard to find in exec's autodoc.
For example:
For example:
- AllocEntry (the way I prefer): clearly noted as deprecated in the first line of its associated documentation. There a big
at the end of the first line and just below the new function to use instead is explicitly given.(-DEPRECATED-) - AllocTrap (another way of doing it, worse IMHO): clearly noted as 'Obsolete' in the first line of its associated documentation. There is a
at the end of the first line but no mention if there is a replacement function or not, one has to read the full documentation to eventually understand this function has no purpose on our new processor architecture.(Obsolete) - AllocVec (the worst IMHO): no mention on the first line. There is just a sentence in the NOTE section saying this function is obsolete and the replacement is AllocVecTagList; fortunaltely this is the only sentence. But for instance the CachePreDMA contains one sentence in the middle of the NOTE section saying that it's obsolete together with CachePostDMA and should be replaced by StartDMA/EndDMA this isn't obvious the function is obsolete until you read this very single line in the NOTE section, worse CachePostDMA doesn't even mention it's obsolete and should be replaced by EndDMA.