home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 163_01 / cc3.c < prev    next >
Text File  |  1991-01-06  |  2KB  |  69 lines

  1. /*
  2. ** Small-C Compiler Version 2.0
  3. **
  4. ** Portions Copyright 1982 J. E. Hendrix
  5. **
  6. ** Modified for 8088/PCDOS by D. R. Hicks
  7. **
  8. ** Part 3
  9. */
  10. #define NOCCARGC /* (be sure to remove if [f]printf is used anywhere) */
  11. #include "errno.h"
  12. #include "stdio.h"
  13. #include "cc.def"
  14.  
  15. /*
  16. ** dummy symbol table entries for cast
  17. */
  18. char castint[2] = {VARIABLE, CINT};
  19. char castchar[2] = {VARIABLE, CCHAR};
  20. char castpint[2] = {POINTER, CINT};
  21. char castpchar[2] = {POINTER, CCHAR};
  22.  
  23. /*
  24. ** external references in part 1
  25. */
  26. extern char
  27. #ifdef DYNAMIC
  28.  *stage,
  29.  *litq,
  30. #else
  31.   stage[STAGESIZE],
  32.   litq[LITABSZ],
  33. #endif
  34.  *glbptr, *lptr, ssname[NAMESIZE], quote[2], *stagenext;
  35. extern int
  36.   ch, csp, litlab, litptr, nch, op[16], op2[16],
  37.   oper, opindex, opsize;
  38.  
  39. /*
  40. ** external references in part 2
  41. */
  42. extern int
  43.   addsym(), blanks(), bump(), clearstage(), endst(),
  44.   error(), findglb(), findloc(), gch(), getlabel(),
  45.   inbyte(), junk(), match(), needlval(), needtoken(),
  46.   nextop(), nl(), numeric(), outbyte(), outdec(),
  47.   outstr(), postlabel(), printlabel(), putint(),
  48.   setstage(), streq(), symname(), ot(), ol();
  49.  
  50. /*
  51. ** external references in part 4
  52. */
  53. extern int
  54.   add(), address(), addr2(), and(), asl(), asr(), call(), callstk(),
  55.   com(), dec(), div(), doublereg(), eq(), eq0(),
  56.   ge(), ge0(), getloc(), getmem(), gt(), gt0(),
  57.   immed(), immed2(), inc(), indirect(), jump(),
  58.   le(), le0(), lneg(), loadargc(), lt(), lt0(),
  59.   mod(), modstk(), move(), mult(), ne(), ne0(),
  60.   neg(), or(), pop(), push(), putmem(),
  61.   putstk(), ret(), sub(), swap(), swapstk(),
  62.   testjump(), uge(), ugt(), ule(), ult(), ult0(),
  63.   xor(), zerojump();
  64.  
  65. #include "cc31.c"
  66. #include "cc32.c"
  67. #include "cc33.c"
  68.  
  69.