home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
pd3.lzh
/
SBPROLOG2.2
/
SIM
/
index.h
< prev
next >
Wrap
Text File
|
1991-08-10
|
2KB
|
46 lines
/************************************************************************
* *
* The SB-Prolog System *
* Copyright SUNY at Stony Brook, 1986 *
* *
************************************************************************/
/*-----------------------------------------------------------------
SB-Prolog is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY. No author or distributor
accepts responsibility to anyone for the consequences of using it
or for whether it serves any particular purpose or works at all,
unless he says so in writing. Refer to the SB-Prolog General Public
License for full details.
Everyone is granted permission to copy, modify and redistribute
SB-Prolog, but only under the conditions described in the
SB-Prolog General Public License. A copy of this license is
supposed to have been given to you along with SB-Prolog so you
can know your rights and responsibilities. It should be in a
file named COPYING. Among other things, the copyright notice
and this notice must be preserved on all copies.
------------------------------------------------------------------ */
#define gensot(opcode, arg1, arg2, arg3, ep) \
*(ep++) = opcode; \
*(ep++) = arg1; \
*(((pw)ep)++) = arg2; \
*(((pw)ep)++) = arg3
#define gentry(opcode, arg1, arg2, ep) \
*(ep++) = opcode; \
*(ep++) = arg1; \
*((pw)ep) = arg2; \
ep += 4
#define ihash(val, size) \
((val & 0x3ffffffc) >> 2 + (val & 0x3)) % size
struct hrec {
long l;
word *link;
} ;
struct hrec indextab[1024];