Machine specific predefined names

Karl Heuer karl at haddock.ISC.COM
Fri Apr 1 04:08:58 AEST 1988


In article <598 at tuvie> rcvie at tuvie.UUCP (Alcatel-ELIN Forsch.z.) writes:
|In article <3225 at haddock.ISC.COM> karl at haddock.ima.isc.com (Karl Heuer) writes:
|>If you try to redefine *any* standard routine -- whether macro or function
|>-- the result should be, and is, undefined.  Why should the user be forced
|>to learn the implementation details?
|
|Just try the portable way and noone has to learn anything but that there
|*are* some routines implemented as functions and some as macros:
|  #undef putchar
|  <your putchar-macro/function>

That isn't portable.  After you've redefined something, you have no way of
knowing whether other library routines (e.g. puts) will be using your putchar
or the standard one.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list