home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dosdisas.zip / dccsrcoo.zip / hlicode.h < prev    next >
Text File  |  1997-04-09  |  1KB  |  37 lines

  1. /* 
  2.  * File:    hlIcode.h
  3.  * Purpose: module definitions for high-level icodes
  4.  * Date:    September 1993
  5.  */
  6.  
  7.  
  8. /* High level icodes opcodes - def in file icode.h */
  9. /*typedef enum {
  10.     HLI_ASSIGN,
  11.     INC,
  12.     DEC,
  13.     HLI_JCOND,
  14.  
  15. } hlIcode; */
  16.  
  17.  
  18. typedef struct {
  19.     hlIcode             opcode;     /* hlIcode opcode           */
  20.     union {                         /* different operands       */
  21.         struct {
  22.             COND_EXPR   *lhs;
  23.             COND_EXPR   *rhs;
  24.         }               asgn;       /* for HLI_ASSIGN hlIcode       */
  25.         COND_EXPR       *exp;       /* for HLI_JCOND, INC, DEC      */
  26.     }                   oper;       /* operand                  */
  27.     boolT               valid;      /* has a valid hlIcode      */
  28. } HLICODE;
  29.  
  30.  
  31. typedef struct {
  32.     Int         numIcodes;      /* No. of hlIcode reocrds written   */
  33.     Int         numAlloc;       /* No. of hlIcode records allocated */
  34.     HLICODE     *hlIcode;       /* Array of high-level icodes       */
  35. } HLICODEREC;
  36.  
  37.