home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / dev / misc / p2c / examples / p2crc < prev    next >
Text File  |  1993-12-21  |  1KB  |  37 lines

  1.  
  2. # Configuration options for translating the p2c examples.
  3.  
  4.  
  5. Language    HP    # All programs are in HP Pascal dialect
  6.  
  7. VarFiles    0    # This helps basic.text's listtokens procedure work
  8.  
  9. UseEnum        0    # Not necessary except to keep Sun's pitpicking
  10.             # compiler happy.
  11.  
  12. # Options useful for users on the AMIGA
  13.  
  14. AnsiC           1       # All C compilers that are now in use should
  15.                         # support this
  16.  
  17. MaxLineBreakTries 250   # this speeds up translation for basic.p
  18.                         # (I am using an A500 with a 7MHz 68000 processor
  19.                         # and I hate waiting)
  20.  
  21.  
  22. # These kludges will get basic.c to compile without extra runtime support:
  23. # External procedures:
  24. FuncMacro    hpm_new(p,n) = (*p = Malloc(n))
  25. FuncMacro    hpm_dispose(p,n) = Free(*p)
  26. FuncMacro    misc_getioerrmsg(s,io) = sprintf(s, "I/O Error %d", (int)io)
  27. FuncMacro    misc_printerror(er,io) = printf("Error %d/%d!\n", (int)er, (int)io)
  28. FuncMacro    gotoxy(a,b) = 0
  29. # Functions imported from asm:
  30. FuncMacro    asm_iand(a,b) = (a & b)
  31. FuncMacro    asm_ior(a,b) = (a | b)
  32. # Functions in basic.text; may as well do these, too:
  33. FuncMacro    ixor(a,b) = (a ^ b)
  34. FuncMacro    inot(a) = (~a)
  35.  
  36.  
  37.