From: bal Date: Fri, 30 Nov 1984 10:24:21 +0000 (+0000) Subject: declaration for sym,num and prc added (moved from types.h) X-Git-Tag: release-5-5~5918 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1e69d3458cffc2b8d361a621910e236fbb6206df;p=ack.git declaration for sym,num and prc added (moved from types.h) --- diff --git a/util/ego/ic/ic.h b/util/ego/ic/ic.h index c3e9f9e4b..bca89f157 100644 --- a/util/ego/ic/ic.h +++ b/util/ego/ic/ic.h @@ -3,6 +3,34 @@ * G L O B A L C O N S T A N T S & V A R I A B L E S */ + +/* Data structures for Intermediate Code generation */ + +typedef struct sym *sym_p; +typedef struct prc *prc_p; +typedef struct num *num_p; + + +struct sym { + sym_p sy_next; /* link */ + char sy_name[IDL]; /* name of the symbol */ + dblock_p sy_dblock; /* pointer to dblock struct */ +}; +struct prc { + prc_p pr_next; /* link */ + char pr_name[IDL]; /* name of the procedure */ + proc_p pr_proc; /* pointer tto proc struct */ +}; + + +struct num { + num_p n_next; /* link */ + unsigned n_number; /* EM repr. e.g. 120 in 'BRA *120' */ + lab_id n_labid; /* sequential integer repr. of IC */ +}; + + + /* macros used by ic_lib.c and ic_io.c: */ #define ARCHIVE 0