/* types.h */ #define MAXSIZE 100 #define MAXNUM 10 #define MAXNAME 30 #define FALSE 0 #define TRUE 1 typedef struct spnode *SPnodeptr; typedef struct snode *Snodeptr; typedef struct pnode *Pnodeptr; struct supp_element_type { char sno[MAXNUM]; char sname[MAXNAME]; }; struct part_element_type { char pno[MAXNUM]; char pname[MAXNAME]; }; struct snode { struct supp_element_type supplier; SPnodeptr first_sp; Snodeptr next; }; struct pnode { struct part_element_type part; SPnodeptr first_sp; Pnodeptr next; }; struct spnode { SPnodeptr snext, pnext; Snodeptr s_owner; Pnodeptr p_owner; };