libsrc/entexit.cxx

Go to the documentation of this file.
00001 /**********************************************************************
00002  * Copyright 2002 Jeff Rush <jrush@taupro.com>
00003  * Original Copyright 1979-2002 Udanax.com
00004  *
00005  * This file is part of the Udanax xanalogical storage system.
00006  *
00007  * Udanax is free software; you can redistribute it and/or modify it
00008  * under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * Udanax is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with Udanax; if not, write to the Free Software Foundation,
00019  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  **********************************************************************/
00021 
00030 /* Modification History:
00031  * $Log: entexit.cxx,v $
00032  * Revision 1.9  2004/09/04 16:02:17  jrush
00033  * Added Doxygen headers before each and every function definition.
00034  *
00035  * Revision 1.8  2004/08/28 13:35:26  jrush
00036  * Catching up CVS to various incomplete versions on local disk.
00037  *
00038  * Revision 1.7  2002/05/28 04:22:29  jrush
00039  * Adjusted source files to comply with GPL licensing.
00040  *
00041  * Revision 1.6  2002/04/12 11:56:43  jrush
00042  * Reorganized include file layout, renamed xanadu.h to udanax.h and
00043  * typecontext/typecrumcontext to C++ class Context/CrumContext.
00044  *
00045  * Revision 1.5  2002/04/09 21:45:46  jrush
00046  * Renamed class 'tumbler' to 'Tumbler', for consistency with Python sources,
00047  * and changed typeisa from typedef to a subclass, in preparation for cleaning
00048  * up the type/class tree.
00049  *
00050  * Revision 1.4  2002/04/06 19:51:30  jrush
00051  * Renamed TRUE/FALSE constant use to the C++ standard of true/false.
00052  *
00053  * Revision 1.3  2002/04/06 15:01:17  jrush
00054  * Changed INT to just 'int'.
00055  *
00056  * Revision 1.2  2002/02/14 09:27:43  jrush
00057  * Cleaned up source:
00058  *
00059  * 1. ran thru the indent tool to achieve a standard look,
00060  * 2. added structured comments at top for use with DOxygen reporting
00061  *    as well as CVS keywords,
00062  * 3. fixed compiler warnings re ambiguous assign/compares,
00063  *    needed casts and unused/uninitialized variables,
00064  * 4. fixed funcs that didn't specify a return type,
00065  * 5. centralized prototypes in protos.h, removing incomplete ones,
00066  * 6. cleaned up use of bool/BOOLEAN type to suit C++ type,
00067  * 7. fixed initializer nesting in tumbler constants,
00068  * 8. renamed vars that conflict with C++ keywords (new, this),
00069  * 9. fixed global/extern confusion re some global vars.
00070  *
00071  */
00072 
00073 #include <string.h>
00074 #include "udanax.h"
00075 
00083     void
00084 initsession(
00085     const char *database)
00086 {
00087     initgrimreaper();
00088     initqueues();
00089 
00090     clear(&ZEROTUMBLERvar, sizeof(Tumbler));
00091 
00092     if (initenffile(database)) {
00093         initkluge((typecuc **) &granf, (typecuc **) &spanf);
00094     } else {
00095         granf = (typegranf) createenf(GRAN);
00096         spanf = (typespanf) createenf(SPAN);
00097     }
00098 }

Generated on Sun Aug 21 04:18:14 2005 for Udanax-Green by doxygen1.3.4