log.h
1 /* 2 ** Nofrendo (c) 1998-2000 Matthew Conte (matt@conte.com) 3 ** 4 ** 5 ** This program is free software; you can redistribute it and/or 6 ** modify it under the terms of version 2 of the GNU Library General 7 ** Public License as published by the Free Software Foundation. 8 ** 9 ** This program is distributed in the hope that it will be useful, 10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 ** Library General Public License for more details. To obtain a 13 ** copy of the GNU Library General Public License, write to the Free 14 ** Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 15 ** 16 ** Any permitted reproduction of these routines, in whole or in part, 17 ** must bear this legend. 18 ** 19 ** 20 ** log.h 21 ** 22 ** Error logging header file 23 ** $Id: log.h,v 1.1.1.1 2001/04/27 07:03:54 neil Exp $ 24 */ 25 26 #ifndef _LOG_H_ 27 #define _LOG_H_ 28 29 #include <stdio.h> 30 31 extern int log_init(void); 32 extern void log_shutdown(void); 33 extern int log_print(const char *string); 34 extern int log_printf(const char *format, ...); 35 extern void log_chain_logfunc(int (*logfunc)(const char *string)); 36 extern void log_assert(int expr, int line, const char *file, char *msg); 37 38 #endif /* _LOG_H_ */ 39 40 /* 41 ** $Log: log.h,v $ 42 ** Revision 1.1.1.1 2001/04/27 07:03:54 neil 43 ** initial 44 ** 45 ** Revision 1.7 2000/11/06 02:15:07 matt 46 ** more robust logging routines 47 ** 48 ** Revision 1.6 2000/10/10 13:03:54 matt 49 ** Mr. Clean makes a guest appearance 50 ** 51 ** Revision 1.5 2000/07/17 01:52:27 matt 52 ** made sure last line of all source files is a newline 53 ** 54 ** Revision 1.4 2000/06/09 15:12:25 matt 55 ** initial revision 56 ** 57 */