home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
p
/
pccts.zip
/
lang
/
pascal
/
ttree.h
< prev
Wrap
C/C++ Source or Header
|
1992-12-08
|
644b
|
24 lines
/* Code to manage type trees for each type
* These trees then can be used to determine whether varibles have the
* same type.
*
* Will Cohen
* 12/18/90
*/
#define tnode struct _tnode_
tnode {
tnode *down,*right; /* everything in child-sibling tree */
int n_type; /* indicates what kind of node this is */
};
/* types of tnodes */
/* functions */
extern int compatible(/*t1,t2*/); /* returns 0 for incompatible, 1 for */
/* compatible */
extern int acompatible(/*t1,t2*/); /* returns 1 if can assigment okay */
/* t1<-t2 */
extern tnode *new_tnode(); /* makes and fills in a tnode */