basicdefs.h

00001 /* File:      basicdefs.h
00002 ** Author(s): kifer
00003 ** Contact:   xsb-contact@cs.sunysb.edu
00004 ** 
00005 ** Copyright (C) The Research Foundation of SUNY, 1999
00006 ** 
00007 ** XSB is free software; you can redistribute it and/or modify it under the
00008 ** terms of the GNU Library General Public License as published by the Free
00009 ** Software Foundation; either version 2 of the License, or (at your option)
00010 ** any later version.
00011 ** 
00012 ** XSB is distributed in the hope that it will be useful, but WITHOUT ANY
00013 ** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014 ** FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for
00015 ** more details.
00016 ** 
00017 ** You should have received a copy of the GNU Library General Public License
00018 ** along with XSB; if not, write to the Free Software Foundation,
00019 ** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020 **
00021 ** $Id: basicdefs.h,v 1.2 2004/02/02 20:29:47 dwarren Exp $
00022 ** 
00023 */
00024 
00025 
00026 #ifndef BASICDEFS_INCLUDED
00027 
00028 #ifndef FALSE
00029 #define FALSE  0
00030 #endif
00031 #ifndef TRUE
00032 #define TRUE  (!FALSE)
00033 #endif
00034 
00035 #ifndef NO
00036 #define NO  FALSE
00037 #endif
00038 #ifndef YES
00039 #define YES  TRUE
00040 #endif
00041 
00042 
00043 #ifdef WIN_NT
00044 #define SLASH '\\'
00045 #else
00046 #define SLASH '/'
00047 #endif
00048 
00049 #ifndef MAXPATHLEN
00050 #define MAXPATHLEN   1024  /* SYSV */
00051 #endif
00052 
00053 #ifndef MAXNAME
00054 #define MAXNAME   255  /* SYSV */
00055 #endif
00056 
00057 #ifndef MAXBUFSIZE
00058 #define MAXBUFSIZE   1024  /* used when a large string buffer is needed */
00059 #endif
00060 
00061 #define MAX_IO_BUFSIZE  4096 /* 1 page */
00062 
00063 #define K   1024  /* please make sure that K stays divisible by sizeof(Cell) */
00064 
00065 
00066 
00067 #define XSB_STYLE_DCG  0    /* use XSB style DCG grammars */
00068 #define STANDARD_DCG   1    /* use standard DCG grammars */
00069 
00070 
00071 #ifndef xsb_max
00072 #define xsb_max(p1,p2) ((p1)>=(p2)?(p1):(p2))
00073 #endif
00074 #ifndef xsb_min
00075 #define xsb_min(p1,p2) ((p1)<=(p2)?(p1):(p2))
00076 #endif
00077 
00078 #define MOD %
00079 
00080 #define IsNULL(ptr)      ( (ptr) == NULL )
00081 #define IsNonNULL(ptr)   ( (ptr) != NULL )
00082 
00083 #endif  /* BASICDEFS_INCLUDED */
00084 
00085 #define BASICDEFS_INCLUDED
00086 

Generated on Wed Jul 26 13:30:39 2006 for XSB by  doxygen 1.4.5