On Thu, 10 Jan 2002, Daniel Feiglin wrote:
> Several well known utilities like dd, fdformat use a function _(...)
> in the error reporting calls. What does it do and where is it
> documented? (Checked GNU V Library docs, cc docs - nothing doing.)
it's an application specific convention, so you wouldn't find it
documented anywher. ususally used to wrap the actualy function with a
macro which willa automatically supplies the file name, function name
and line number. consider:
[example snarfed from the pptp sources]
void _fatal(char *func, char *file, int line, char *format, ...)
__attribute__ ((format (printf, 4, 5))) __attribute__ ((noreturn));
#define fatal(format, args...) \
_fatal(__FUNCTION__,__FILE__,__LINE__, format , ## args)
this code uses two gcc specific extensions, but i'm sure you get the
point.
--
mulix
http://vipe.technion.ac.il/~mulix/
http://syscalltrack.sf.net/
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]