C programming hint

Joe Mueller joemu at nsc-pdc.UUCP
Sat Jul 20 02:55:18 AEST 1985


> Anyone know of any efforts to standardize an indication to the compiler
> that it is or is not OK to compile standard library functions in-line?
> 
> Stew
> {seismo,ut-sally}!harvard!rubenstein

The committee discussed the question and decided that it should be done within
the realm of "# pragma" lines. This means that any compiler may offer this
feature but it will not be something that will be standardized. The # pragma
line was added to the standard to give implementors an easy way to turn
switches on or off in the compiler without adding new keywords. The line
could be something like:

# pragma inline	strncpy, sin, cos, absf

The # pragma directive is discussed in section C.8.5 of the draft. It doesn't
say much other than it causes implementation defined things to occur. By the
way, if anyone wants a copy of the draft, I believe it's now available for
informal public comment through CEBEMA for about $20. If there's enough
interrest, I'll try to find the address to send your money to.



More information about the Comp.lang.c mailing list