00001 /* File: celltags_xsb.h 00002 ** Author(s): David S. Warren, Jiyang Xu, Terrance Swift 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: celltags_xsb.h,v 1.4 2005/01/14 18:30:52 ruim Exp $ 00022 ** 00023 */ 00024 00025 00026 00027 /* ==== types of cells =================================================*/ 00028 00029 #define XSB_FREE 0 /* Free variable */ 00030 #define XSB_REF 0 /* Reference */ 00031 #define XSB_STRUCT 1 /* Structure */ 00032 #define XSB_INT 2 /* integer */ 00033 #define XSB_LIST 3 /* List */ 00034 #define XSB_REF1 4 /* XSB_REF */ 00035 #define XSB_STRING 5 /* Non-Numeric Constant (Atom) */ 00036 #define XSB_FLOAT 6 /* Floating point number */ 00037 #define XSB_ATTV 7 /* Attributed variable */ 00038 00039 #define XSB_CELL_TAG_NBITS 3 00040 00041 #define XSB_TrieVar XSB_FREE /* Cell tag of a standardized var in tries */