1*68f5fd96SMasatake YAMATO /* 2*68f5fd96SMasatake YAMATO * Copyright (c) 1998-2002, Darren Hiebert 3*68f5fd96SMasatake YAMATO * 4*68f5fd96SMasatake YAMATO * This source code is released for free distribution under the terms of the 5*68f5fd96SMasatake YAMATO * GNU General Public License version 2 or (at your option) any later version. 6*68f5fd96SMasatake YAMATO * 7*68f5fd96SMasatake YAMATO * This code is derived from the main part of ctags. 8*68f5fd96SMasatake YAMATO * This source code is NOT released for the public domain. 9*68f5fd96SMasatake YAMATO */ 10*68f5fd96SMasatake YAMATO #ifndef READTAGS_STUB_H 11*68f5fd96SMasatake YAMATO #define READTAGS_STUB_H 12*68f5fd96SMasatake YAMATO 13*68f5fd96SMasatake YAMATO #include "general.h" 14*68f5fd96SMasatake YAMATO 15*68f5fd96SMasatake YAMATO #ifdef DEBUG 16*68f5fd96SMasatake YAMATO # include <assert.h> 17*68f5fd96SMasatake YAMATO #endif 18*68f5fd96SMasatake YAMATO 19*68f5fd96SMasatake YAMATO enum eDebugLevels { 20*68f5fd96SMasatake YAMATO DEBUG_READ = 0x01, /* echo raw (filtered) characters */ 21*68f5fd96SMasatake YAMATO DEBUG_PARSE = 0x02, /* echo parsing results */ 22*68f5fd96SMasatake YAMATO DEBUG_STATUS = 0x04, /* echo file status information */ 23*68f5fd96SMasatake YAMATO DEBUG_OPTION = 0x08, /* echo option parsing */ 24*68f5fd96SMasatake YAMATO DEBUG_CPP = 0x10, /* echo characters out of pre-processor */ 25*68f5fd96SMasatake YAMATO DEBUG_RAW = 0x20 /* echo raw (filtered) characters */ 26*68f5fd96SMasatake YAMATO }; 27*68f5fd96SMasatake YAMATO 28*68f5fd96SMasatake YAMATO extern void debugAssert (const char *assertion, const char *file, unsigned int line, const char *function) attr__noreturn; 29*68f5fd96SMasatake YAMATO extern void debugPrintf (const enum eDebugLevels level, const char *const format, ...) CTAGS_ATTR_PRINTF (2, 3); 30*68f5fd96SMasatake YAMATO 31*68f5fd96SMasatake YAMATO #endif /* READTAGS_STUB_H */ 32