home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 160.lha / BCPL / bcpl.h < prev    next >
Text File  |  1988-04-27  |  5KB  |  155 lines

  1. /* bcpl.h - Header file to allow calls to the BCPL library
  2.         from C language programs
  3. Author: Bill Kinnersley
  4. Date: Mar 12, 1988
  5. Mail:   Physics Dept.
  6.         Montana State University
  7.         Bozeman, MT 59717
  8.         BITNET: iphwk@mtsunix1
  9.         INTERNET: iphwk%mtsunix1.bitnet@cunyvm.cuny.edu
  10.         UUCP: ...psuvax1!mtsunix1.bitnet!iphwk
  11. */
  12. long BCPLInit(), BCPL(), MakeBSTR();
  13. #define bptr(p)         (((long)p) >>2)
  14. #define SYSREQUEST      -0x84L
  15. #define TOCSTR          -0x80L
  16. #define TOBSTR          -0x7cL
  17. #define EXECUTEC        -0x6cL
  18. #define ISINTERACT      -0x68L
  19. #define DATESTAMPC      -0x64L
  20. #define SETPROTECT      -0x60L
  21. #define SETCOMMENT      -0x5cL
  22. #define DEVICEPROCC     -0x58L
  23. #define QUEUEPKT        -0x54L
  24. #define CLEARMEM        -0x50L
  25. #define LOADSEG         -0x4cL
  26. #define CREATEPROCC     -0x48L
  27. #define IOERR           -0x44L
  28. #define CURRENTDIR      -0x40L
  29. #define CREATEDIRC      -0x3cL
  30. #define INFO            -0x38L
  31. #define EXNEXT          -0x34L
  32. #define EXAMINE         -0x30L
  33. #define LOCKC           -0x2cL
  34. #define RENAMEC         -0x28L
  35. #define DELETEFILE      -0x24L
  36. #define SEEK            -0x20L
  37. #define WRITE           -0x18L
  38. #define READ            -0xcL
  39. #define STRNCPY         -0x8L
  40. #define OPEN            -0x4L
  41. #define START           0x4L
  42. #define EXIT            0x8L
  43. #define MULTIPLY        0xcL
  44. #define DIVIDE          0x10L
  45. #define MOD             0x14L
  46. #define SETIO           0x18L
  47. #define PACKLW          0x20L
  48. #define UNPACKLW        0x24L
  49. #define SETRES2         0x28L
  50. #define MAKEGV          0x34L
  51. #define FINDTASK        0x38L
  52. #define GETBYTE         0x3cL
  53. #define PUTBYTE         0x40L
  54. #define LEVEL           0x44L
  55. #define LONGJUMP1       0x48L
  56. #define ALLOCMEM        0x4cL
  57. #define LONGJUMP2       0x50L
  58. #define DOIO            0x54L
  59. #define SENDIO          0x58L
  60. #define CREATECO        0x5cL
  61. #define DELETECO        0x60L
  62. #define CALLCO          0x64L
  63. #define COWAIT          0x68L
  64. #define RESUMECO        0x6cL
  65. #define INSTALLSEG      0x70L
  66. #define GETVEC1         0x74L
  67. #define FREEVEC         0x78L
  68. #define OPENDEV         0x7cL
  69. #define CLOSEDEV        0x80L
  70. #define CREATEPROCB     0x84L
  71. #define REMPROCESS      0x88L
  72. #define PARENTDIR       0x8cL
  73. #define SETSIGS         0x90L
  74. #define CLEARSIGS       0x94L
  75. #define DOSALERT        0x98L
  76. #define FINDROOT        0x9cL
  77. #define READINC         0xa0L
  78. #define TASKWAIT1       0xa4L /* same as 190 */
  79. #define PUTPKT          0xa8L
  80. #define WRITEOUTC       0xacL
  81. #define PACKSTRING      0xb0L
  82. #define UNPACKSTRING    0xb4L
  83. #define HOLDTASK        0xb8L
  84. #define DELAY           0xbcL
  85. #define SENDPKT         0xc0L
  86. #define RETURNPKT       0xc4L
  87. #define OPENWINDOW      0xc8L
  88. #define SETCURDIR       0xccL
  89. #define BUILDSYSREQ     0xd0L
  90. #define WRITET          0xd4L
  91. #define RDCH            0xd8L
  92. #define UNRDCH          0xdcL
  93. #define WRCH            0xe0L
  94. #define READINB         0xe4L
  95. #define WRITEOUTB       0xe8L
  96. #define FINDINPUT       0xecL
  97. #define FINDOUTPUT      0xf0L
  98. #define SELECTINPUT     0xf4L
  99. #define SELECTOUTPUT    0xf8L
  100. #define ENDREAD         0xfcL
  101. #define ENDWRITE        0x100L
  102. #define INPUT           0x104L
  103. #define OUTPUT          0x108L
  104. #define READN           0x10cL
  105. #define NEWLINE         0x110L
  106. #define WRITEI          0x114L
  107. #define WRITEN          0x118L
  108. #define WRITEHEX        0x11cL
  109. #define WRITEOCT        0x120L
  110. #define WRITES          0x124L
  111. #define WRITEF          0x128L
  112. #define TOUPPER         0x12cL
  113. #define CHARCMP         0x130L
  114. #define STRCMP          0x134L
  115. #define RDARGS          0x138L
  116. #define RDLINE          0x13cL
  117. #define PARSESTRING     0x140L
  118. #define LOAD            0x144L
  119. #define UNLOAD          0x148L
  120. #define TIDYUP          0x150L
  121. #define ADDDEVICE       0x154L
  122. #define DATESTAMPB      0x158L
  123. #define WAITFORCHAR     0x15cL
  124. #define EXECLIB         0x160L
  125. #define FINDSEGARRAY    0x164L
  126. #define DELETEOBJ       0x168L
  127. #define RENAMEB         0x16cL
  128. #define CLOSE           0x174L
  129. #define GETWORD         0x178L
  130. #define PUTWORD         0x17cL
  131. #define TASKWAIT2       0x190L /* same as a4 */
  132. #define EXECUTEB        0x194L
  133. #define DEVICEPROCB     0x198L
  134. #define LIBCALL         0x19cL
  135. #define WRITEERR        0x1a0L
  136. #define FINDCONHAND     0x1a4L
  137. #define FINDFILEHAND    0x1a8L
  138. #define EXTDEVNAME      0x1acL
  139. #define LOCKB1          0x1b0L  /* same as 1ec */
  140. #define UNLOCK          0x1b4L
  141. #define GETLONG         0x1b8L
  142. #define PUTLONG         0x1bcL
  143. #define OPENFILE        0x1c0L
  144. #define DUPLOCK         0x1c4L
  145. #define MAKESYSREQ      0x1c8L
  146. #define STRCPY          0x1ccL
  147. #define RUNLOADED       0x1e4L
  148. #define LOCKB2          0x1ecL  /* same as 1b0 */
  149. #define FINDDEVINFO     0x1f0L
  150. #define CREATEDIRB      0x1f4L
  151. #define CMPTIME         0x1f8L
  152. #define TIMERIO         0x1fcL
  153. #define SETTIME         0x200L
  154. #define FINDCLI         0x218L
  155.