| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/include/attr/ |
Upload File : |
#ifndef __ERROR_CONTEXT_T
#define __ERROR_CONTEXT_T
#ifdef __cplusplus
extern "C" {
#endif
struct error_context {
/* Process an error message */
void (*error) (struct error_context *, const char *, ...);
/* Quote a file name for including in an error message */
const char *(*quote) (struct error_context *, const char *);
/* Free a quoted name */
void (*quote_free) (struct error_context *, const char *);
};
#ifdef ERROR_CONTEXT_MACROS
# define error(ctx, args...) do { \
if ((ctx) && (ctx)->error) \
(ctx)->error((ctx), args); \
} while(0)
# define quote(ctx, name) \
( ((ctx) && (ctx)->quote) ? (ctx)->quote((ctx), (name)) : (name) )
# define quote_free(ctx, name) do { \
if ((ctx) && (ctx)->quote_free) \
(ctx)->quote_free((ctx), (name)); \
} while(0)
#endif
#ifdef __cplusplus
}
#endif
#endif /* __ERROR_CONTEXT_T */