home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / src / icont / tproto.h < prev    next >
C/C++ Source or Header  |  2001-11-28  |  4KB  |  113 lines

  1. /*
  2.  * Prototypes for functions in icont.
  3.  */
  4.  
  5. void    addinvk            (char *name, int n);
  6. void    addlfile        (char *name);
  7. pointer    alloc            (unsigned int n);
  8. void    alsolink        (char *name);
  9. int    blocate            (word s);
  10. struct    node *c_str_leaf    (int type,struct node *loc_model, char *c);
  11. void    codegen            (struct node *t);
  12. void    constout        (FILE *fd);
  13. void    dummyda            (void);
  14. struct    fentry *flocate        (word id);
  15. struct    fileparts *fparse    (char *s);
  16. void    gencode            (void);
  17. void    gentables        (void);
  18. int    getdec            (void);
  19. int    getopr            (int ac, int *cc);
  20. word    getid            (void);
  21. long    getint            (int i, word *wp);
  22. int    getlab            (void);
  23. struct    lfile *getlfile        (struct lfile * *lptr);
  24. int    getoct            (void);
  25. int    getopc            (char * *id);
  26. double    getreal            (void);
  27. word    getrest            (void);
  28. word    getstr            (void);
  29. word    getstrlit        (int l);
  30. struct    gentry *glocate        (word id);
  31. void    gout            (FILE *fd);
  32. struct    node *i_str_leaf    (int type,struct node *loc_model,char *c,int d);
  33. int    ilink            (char * *ifiles,char *outname);
  34. void    initglob        (void);
  35. void    install            (char *name,int flag,int argcnt);
  36. word    instid            (char *s);
  37. struct    node *int_leaf        (int type,struct node *loc_model,int c);
  38. int    klookup            (char *id);
  39. int    lexeql            (int l,char *s1,char *s2);
  40. void    lfatal            (char *s1,char *s2);
  41. void    linit            (void);
  42. void    lmfree            (void);
  43. void    loc_init        (void);
  44. void    locinit            (void);
  45. void    lout            (FILE *fd);
  46. void    lwarn            (char *s1,char *s2,char *s3);
  47. char    *makename        (char *dest,char *d,char *name,char *e);
  48. void    newline            (void);
  49. int    nextchar        (void);
  50. void    nfatal            (struct node *n,char *s1,char *s2);
  51. void    putconst        (int n,int flags,int len,word pc, union xval *valp);
  52. void    putfield        (word fname,struct gentry *gp,int fnum);
  53. struct    gentry *putglobal    (word id,int flags,int nargs, int procid);
  54. char    *putid            (int len);
  55. word    putident        (int len, int install);
  56. int    putlit            (char *id,int idtype,int len);
  57. int    putloc            (char *id,int id_type);
  58. void    putlocal        (int n,word id,int flags,int imperror,
  59.                    word procname);
  60. void    quit            (char *msg);
  61. void    quitf            (char *msg,char *arg);
  62. void    readglob        (void);
  63. void report            (char *s);
  64. unsigned int round2        (unsigned int n);
  65. void    rout            (FILE *fd,char *name);
  66. char    *salloc            (char *s);
  67. void    scanrefs        (void);
  68. void    sizearg            (char *arg,char * *argv);
  69. int    smatch            (char *s,char *t);
  70. pointer    tcalloc            (unsigned int m,unsigned int n);
  71. void    tfatal            (char *s1,char *s2);
  72. void    tmalloc            (void);
  73. void    tmfree            (void);
  74. void    tminit            (void);
  75. int    trans            (char * *ifiles, char *tgtdir);
  76. pointer trealloc        (pointer table, pointer tblfree,
  77.                                   unsigned int *size, int unit_size,
  78.                                   int min_units, char *tbl_name);
  79. struct    node *tree1        (int type);
  80. struct    node *tree2        (int type,struct node *loc_model);
  81. struct    node *tree3        (int type,struct node *loc_model,struct node *c);
  82. struct    node *tree4        (int type,struct node *loc_model,struct node *c,struct node *d);
  83. struct    node *tree5        (int type,struct node *loc_model,
  84.                    struct node *c,struct node *d,
  85.                    struct node *e);
  86. struct    node *tree6        (int type,struct node *loc_model,
  87.                    struct node *c, struct node *d,
  88.                    struct node *e,struct node *f);
  89. struct node *buildarray        (struct node *a,struct node *lb,
  90.                     struct node *e, struct node *rb);
  91. void    treeinit        (void);
  92. void    tsyserr            (char *s);
  93. void    writecheck        (int rc);
  94. void    yyerror            (int tok,struct node *lval,int state);
  95. int    yylex            (void);
  96. int    yyparse            (void);
  97.  
  98. #ifdef MultipleRuns
  99. void    tcodeinit        (void);
  100. void yylexinit        (void);
  101. #endif                    /* MultipleRuns */
  102.  
  103.  
  104. #ifdef DeBugTrans
  105. void    cdump            (void);
  106. void    gdump            (void);
  107. void    ldump            (void);
  108. #endif                    /* DeBugTrans */
  109.  
  110. #ifdef DeBugLinker
  111. void    idump            (char *c);
  112. #endif                    /* DeBugLinker */
  113.