diff options
-rw-r--r-- | Doxyfile | 87 | ||||
-rw-r--r-- | include/BLua.h | 3 | ||||
-rw-r--r-- | include/Exceptions.h | 10 | ||||
-rw-r--r-- | lib/BLua.cc | 6 | ||||
-rw-r--r-- | lib/generic.cc | 43 |
5 files changed, 77 insertions, 72 deletions
@@ -1,53 +1,45 @@ -# Doxyfile 1.3.4 +# Doxyfile 1.2.13-20020210 #--------------------------------------------------------------------------- -# Project related configuration options +# General configuration options #--------------------------------------------------------------------------- PROJECT_NAME = Baltisot PROJECT_NUMBER = 0.1.0 OUTPUT_DIRECTORY = /home/pixel/sources/Baltisot/doc/ OUTPUT_LANGUAGE = English -USE_WINDOWS_ENCODING = NO -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = YES -ALWAYS_DETAILED_SEC = NO -INLINE_INHERITED_MEMB = NO -FULL_PATH_NAMES = NO -STRIP_FROM_PATH = -SHORT_NAMES = NO -JAVADOC_AUTOBRIEF = NO -MULTILINE_CPP_IS_BRIEF = NO -DETAILS_AT_TOP = NO -INHERIT_DOCS = YES -DISTRIBUTE_GROUP_DOC = NO -TAB_SIZE = 8 -ALIASES = -OPTIMIZE_OUTPUT_FOR_C = NO -OPTIMIZE_OUTPUT_JAVA = NO -SUBGROUPING = YES -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- EXTRACT_ALL = YES EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES EXTRACT_LOCAL_CLASSES = YES HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO -HIDE_FRIEND_COMPOUNDS = NO -HIDE_IN_BODY_DOCS = NO -INTERNAL_DOCS = NO +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ALWAYS_DETAILED_SEC = YES +INLINE_INHERITED_MEMB = YES +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = +INTERNAL_DOCS = YES +STRIP_CODE_COMMENTS = YES CASE_SENSE_NAMES = YES +SHORT_NAMES = NO HIDE_SCOPE_NAMES = NO +VERBATIM_HEADERS = YES SHOW_INCLUDE_FILES = YES +JAVADOC_AUTOBRIEF = NO +INHERIT_DOCS = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES +DISTRIBUTE_GROUP_DOC = NO +TAB_SIZE = 8 GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST= YES +ALIASES = ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO SHOW_USED_FILES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages @@ -55,7 +47,6 @@ SHOW_USED_FILES = YES QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES -WARN_IF_DOC_ERROR = YES WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- @@ -79,14 +70,12 @@ FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- SOURCE_BROWSER = YES INLINE_SOURCES = YES -STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES -VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- -ALPHABETICAL_INDEX = NO +ALPHABETICAL_INDEX = YES COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- @@ -100,14 +89,12 @@ HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO -CHM_FILE = -HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 -GENERATE_TREEVIEW = NO +GENERATE_TREEVIEW = YES TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output @@ -117,13 +104,12 @@ LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO -PAPER_TYPE = a4wide +PAPER_TYPE = a4 EXTRA_PACKAGES = LATEX_HEADER = -PDF_HYPERLINKS = NO -USE_PDFLATEX = NO -LATEX_BATCHMODE = NO -LATEX_HIDE_INDICES = NO +PDF_HYPERLINKS = YES +USE_PDFLATEX = YES +LATEX_BATCHMODE = YES #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- @@ -144,21 +130,11 @@ MAN_LINKS = NO # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO -XML_OUTPUT = xml -XML_SCHEMA = -XML_DTD = #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- -GENERATE_PERLMOD = NO -PERLMOD_LATEX = NO -PERLMOD_PRETTY = YES -PERLMOD_MAKEVAR_PREFIX = -#--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES @@ -182,25 +158,28 @@ PERL_PATH = /usr/bin/perl # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = YES -HIDE_UNDOC_RELATIONS = YES HAVE_DOT = YES CLASS_GRAPH = YES COLLABORATION_GRAPH = YES -UML_LOOK = NO -TEMPLATE_RELATIONS = NO +TEMPLATE_RELATIONS = YES +HIDE_UNDOC_RELATIONS = YES INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES -CALL_GRAPH = NO GRAPHICAL_HIERARCHY = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 -MAX_DOT_GRAPH_DEPTH = 0 GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::addtions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = YES +CGI_NAME = doxysearch +CGI_URL = http://www.nobis-crew.org/cgi-bin/doxysearch +DOC_URL = http://www.nobis-crew.org/docs/Baltisot +DOC_ABSPATH = /var/www/docs/Baltisot +BIN_ABSPATH = /usr/bin +EXT_DOC_PATHS = diff --git a/include/BLua.h b/include/BLua.h index bee8836..c1b71c8 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.h,v 1.15 2004-05-02 00:41:39 pixel Exp $ */ +/* $Id: BLua.h,v 1.16 2004-07-22 23:38:31 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -79,6 +79,7 @@ class Lua : public Base { void showerror(); int getmetatable(int = -1); int setmetatable(int = -2); + int sethook(lua_Hook func, int mask, int count); private: Lua(lua_State *); lua_State * L; diff --git a/include/Exceptions.h b/include/Exceptions.h index 489a761..9f0c3a6 100644 --- a/include/Exceptions.h +++ b/include/Exceptions.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Exceptions.h,v 1.34 2003-12-22 01:57:01 pixel Exp $ */ +/* $Id: Exceptions.h,v 1.35 2004-07-22 23:38:31 pixel Exp $ */ #ifndef __EXCEPTIONS_H__ #define __EXCEPTIONS_H__ @@ -26,6 +26,7 @@ #include <stddef.h> #include <string.h> #include <stdlib.h> +#include <stdarg.h> #include <vector> #include <generic.h> @@ -136,6 +137,13 @@ class Exit : public GeneralException { int code; }; +class printer_t : public Base { + public: + virtual bool printm(int, const char *, va_list) = 0; +}; + +extern printer_t * printer; + #include <BString.h> #endif diff --git a/lib/BLua.cc b/lib/BLua.cc index 95519a1..cf0caa4 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.cc,v 1.18 2004-05-01 11:48:57 pixel Exp $ */ +/* $Id: BLua.cc,v 1.19 2004-07-22 23:38:32 pixel Exp $ */ #include <lualib.h> @@ -512,6 +512,10 @@ int Lua::setmetatable(int i) { return lua_setmetatable(L, i); } +int Lua::sethook(lua_Hook func, int mask, int count) { + return lua_sethook(L, func, mask, count); +} + void LuaObject::push(Lua * L) throw (GeneralException) { if (pushed && wantdestruct) { throw GeneralException("Error: object is owned by the LUA script and can not be pushed."); diff --git a/lib/generic.cc b/lib/generic.cc index fb55cc4..f69aba3 100644 --- a/lib/generic.cc +++ b/lib/generic.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: generic.cc,v 1.8 2003-12-04 04:09:02 pixel Exp $ */ +/* $Id: generic.cc,v 1.9 2004-07-22 23:38:32 pixel Exp $ */ #include <stdio.h> #include <stdarg.h> @@ -30,46 +30,59 @@ #endif char verbosity = 0; - -char * heads[] = {"EE", "--", "WW", "II"}; +static char * heads[] = {"EE", "--", "WW", "II"}; +printer_t * printer = 0; void Base::printm(int level, const ugly_string & m, ...) { va_list ap; + bool display = true; if (verbosity < level) { return; } - if (level >= 0) { - fprintf(stderr, "(%s) ", heads[level]); - } + va_start(ap, m); + + if (printer) + display = printer->printm(level, m.p, ap); + + if (display) { + if (level >= 0) { + fprintf(stderr, "(%s) ", heads[level]); + } - va_start(ap, m); #ifdef HAVE_GMP - gmp_vfprintf(stderr, m.p, ap); + gmp_vfprintf(stderr, m.p, ap); #else - vfprintf(stderr, m.p, ap); + vfprintf(stderr, m.p, ap); #endif + } va_end(ap); } void Base::printm(int level, const char * m, ...) { va_list ap; + bool display = true; if (verbosity < level) { return; } - if (level >= 0) { - fprintf(stderr, "(%s) ", heads[level]); - } - va_start(ap, m); + if (printer) + display = printer->printm(level, m, ap); + + if (display) { + if (level >= 0) { + fprintf(stderr, "(%s) ", heads[level]); + } + #ifdef HAVE_GMP - gmp_vfprintf(stderr, m, ap); + gmp_vfprintf(stderr, m, ap); #else - vfprintf(stderr, m, ap); + vfprintf(stderr, m, ap); #endif + } va_end(ap); } |