xref: /Universal-ctags/main/error_p.h (revision 7e412a0431f7763eb6dc48e2b2c46dd62daaf638)
1 /*
2 *   Copyright (c) 2002-2003, Darren Hiebert
3 *
4 *   This source code is released for free distribution under the terms of the
5 *   GNU General Public License version 2 or (at your option) any later version.
6 *
7 *   This module contains a lose assortment of shared functions.
8 */
9 
10 #ifndef CTAGS_MAIN_ERORR_H
11 #define CTAGS_MAIN_ERORR_H
12 
13 #include "general.h"  /* must always come first */
14 
15 #include <stdarg.h>
16 #include "routines.h"
17 
18 typedef bool (* errorPrintFunc) (const errorSelection selection, const char *const format,
19 				    va_list ap, void *data);
20 
21 extern void setErrorPrinter (errorPrintFunc printer, void *data);
22 
23 extern bool stderrDefaultErrorPrinter (const errorSelection selection, const char *const format, va_list ap,
24 					  void *data);
25 
26 #endif
27