home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / language / icon / Source / h / Proto < prev    next >
Encoding:
Text File  |  1990-07-19  |  6.9 KB  |  226 lines

  1. /*
  2.  * proto.h -- prototypes for library functions.
  3.  */
  4.  
  5. /*
  6.  * The following code is operating-system dependent. [@proto.01].
  7.  *  Prototypes for library functions.
  8.  */
  9.  
  10. #if PORT
  11. #endif                    /* PORT */
  12.  
  13. #if ARM
  14. #include <stdlib.h>
  15. #include <string.h>
  16.  
  17. /* Our verson of unlink, which will fail if the named file does not exist */
  18. extern int unlink (const char *name);
  19.  
  20. /* Force a cast of the function parameter to qsort() */
  21. #define    qsort(base,n,size,cmp) \
  22.     (qsort)((base),(n),(size),(int (*) (const void *, const void *))(cmp))
  23. #endif                    /* ARM */
  24.  
  25. #if AMIGA
  26. #if LATTICE
  27. #include <dos.h>
  28. #endif                    /* LATTICE */
  29. /* ****  TEMPORARY *** */
  30. novalue    _exit        Params((int));
  31. novalue    abort        Params((noargs));
  32. double    atof        Params((char *));
  33. long    atol        Params((char *));
  34. pointer    calloc        Params((unsigned,unsigned));
  35. int    execv        Params((char *, char **));
  36. int    execvp        Params((char *, char **));
  37. novalue    exit        Params((int));
  38. char    *getenv        Params((char *));
  39. char    *getmem        Params((unsigned));
  40. pointer    malloc        Params((msize));
  41. pointer    realloc        Params((pointer, unsigned));
  42. char    *strchr        Params((char *s, int i));
  43. int    strcmp        Params((char *s1, char *s2));
  44. char    *strcpy        Params((char *s1, char *s2));
  45. char    *strncat    Params((char *s1, char *s2, int n));
  46. int    strncmp        Params((char *s1, char *s2, int n));
  47. char    *strncpy    Params((char *s1, char *s2, int n));
  48. #endif                    /* ATARI_ST */
  49.  
  50. #if HIGHC_386
  51. #include <stdlib.h>
  52. #include <string.h>
  53. int        brk            Params((char *p));
  54. char    *sbrk        Params((int n));
  55. #endif                    /* HIGHC_386 */
  56.  
  57. #if MACINTOSH
  58. #if MPW
  59. #include <stdlib.h>
  60. #include <string.h>
  61. #else                    /* MPW */
  62. novalue    _exit        Params((int));
  63. novalue    abort        Params((noargs));
  64. double    atof        Params((char *));
  65. long    atol        Params((char *));
  66. pointer    calloc        Params((unsigned,unsigned));
  67. int    execv        Params((char *, char **));
  68. int    execvp        Params((char *, char **));
  69. novalue    exit        Params((int));
  70. char    *getenv        Params((char *));
  71. char    *getmem        Params((unsigned));
  72. pointer    malloc        Params((msize));
  73. pointer    realloc        Params((pointer, unsigned));
  74. char    *strchr        Params((char *s, int i));
  75. int    strcmp        Params((char *s1, char *s2));
  76. char    *strcpy        Params((char *s1, char *s2));
  77. char    *strncat    Params((char *s1, char *s2, int n));
  78. int    strncmp        Params((char *s1, char *s2, int n));
  79. char    *strncpy    Params((char *s1, char *s2, int n));
  80. #endif                    /* MPW */
  81. #endif                    /* MACINTOSH */
  82.  
  83. #if MSDOS
  84. #include <dos.h>
  85. #ifdef StandardLib
  86. #include <string.h>
  87. #include <stdlib.h>
  88. #else                    /* StandardLib */
  89. novalue    _exit        Params((int));
  90. novalue    abort        Params((noargs));
  91. double    atof        Params((char *));
  92. long    atol        Params((char *));
  93. pointer    calloc        Params((unsigned,unsigned));
  94. int    execv        Params((char *, char **));
  95. int    execvp        Params((char *, char **));
  96. novalue    exit        Params((int));
  97. char    *getenv        Params((char *));
  98. char    *getmem        Params((unsigned));
  99. pointer    malloc        Params((msize));
  100. pointer    realloc        Params((pointer, unsigned));
  101. char    *strchr        Params((char *s, int i));
  102. int    strcmp        Params((char *s1, char *s2));
  103. char    *strcpy        Params((char *s1, char *s2));
  104. char    *strncat    Params((char *s1, char *s2, int n));
  105. int    strncmp        Params((char *s1, char *s2, int n));
  106. char    *strncpy    Params((char *s1, char *s2, int n));
  107. #endif                    /* StandardLib */
  108. #endif                    /* MSDOS */
  109.  
  110. #if OS2
  111. #include <dos.h>
  112. /* ****  TEMPORARY *** */
  113. novalue _exit        Params((int));
  114. novalue abort        Params((noargs));
  115. double    atof        Params((char *));
  116. long    atol        Params((char *));
  117. pointer calloc        Params((unsigned,unsigned));
  118. int    execv        Params((char *, char **));
  119. int    execvp        Params((char *, char **));
  120. novalue exit        Params((int));
  121. char    *getenv     Params((char *));
  122. char    *getmem     Params((unsigned));
  123. pointer malloc        Params((msize));
  124. pointer realloc     Params((pointer, unsigned));
  125. char    *strchr     Params((char *s, int i));
  126. int    strcmp        Params((char *s1, char *s2));
  127. char    *strcpy     Params((char *s1, char *s2));
  128. char    *strncat    Params((char *s1, char *s2, int n));
  129. int    strncmp     Params((char *s1, char *s2, int n));
  130. char    *strncpy    Params((char *s1, char *s2, int n));
  131. #endif                    /* OS2 */
  132.  
  133. #if UNIX
  134. #ifndef NoUnixProtos
  135. #ifndef CRAY
  136. novalue    _exit        Params((int));
  137. novalue    abort        Params((noargs));
  138. double    atof        Params((char *));
  139. long    atol        Params((char *));
  140. char    *getenv        Params((char *));
  141. pointer    calloc        Params((unsigned,unsigned));
  142. int    execv        Params((char *, char **));
  143. int    execvp        Params((char *, char **));
  144. novalue    exit        Params((int));
  145. char    *getmem        Params((unsigned));
  146. pointer    malloc        Params((msize));
  147. pointer    realloc        Params((pointer, unsigned));
  148. char    *strchr        Params((char *s, int i));
  149. int    strcmp        Params((char *s1, char *s2));
  150. char    *strcpy        Params((char *s1, char *s2));
  151. char    *strncat    Params((char *s1, char *s2, int n));
  152. int    strncmp        Params((char *s1, char *s2, int n));
  153. char    *strncpy    Params((char *s1, char *s2, int n));
  154. #else                    /* CRAY */
  155. #include <stdlib.h>
  156. #include <string.h>
  157. #endif                    /* CRAY */
  158. #endif                    /* NoUnixProtos */
  159. #endif                    /* UNIX */
  160.  
  161. #if VM || MVS
  162. /* ****  TEMPORARY *** */
  163. novalue _exit           Params((double,int));  /* to cause trouble */
  164. novalue abort           Params((noargs));
  165. double  atof            Params((char *));
  166. long    atol            Params((char *));
  167. pointer calloc          Params((unsigned,unsigned));
  168. int     execv           Params((double,char *, char **));
  169. int     execvp          Params((double,char *, char **));
  170. novalue exit            Params((int));
  171. char    *getenv         Params((char *));
  172. char    *getmem         Params((double,unsigned));
  173. pointer malloc          Params((msize));
  174. pointer realloc         Params((pointer, unsigned));
  175. #ifdef StandardC
  176. #include <string.h>
  177. #else                    /* StandardC */
  178. char    *strchr         Params((char *s, int i));
  179. int     strcmp          Params((char *s1, char *s2));
  180. char    *strcpy         Params((char *s1, char *s2));
  181. char    *strncat        Params((char *s1, char *s2, int n));
  182. int     strncmp         Params((char *s1, char *s2, int n));
  183. char    *strncpy        Params((char *s1, char *s2, int n));
  184. #endif                    /* StandardC */
  185. #endif                    /* VM || MVS */
  186.  
  187. #if VMS
  188. /* ****  TEMPORARY *** */
  189. novalue    _exit        Params((int));
  190. novalue    abort        Params((noargs));
  191. double    atof        Params((char *));
  192. long    atol        Params((char *));
  193. pointer    calloc        Params((unsigned,unsigned));
  194. int    execv        Params((char *, char **));
  195. int    execvp        Params((char *, char **));
  196. novalue    exit        Params((int));
  197. char    *getenv        Params((char *));
  198. char    *getmem        Params((unsigned));
  199. pointer    malloc        Params((msize));
  200. pointer    realloc        Params((pointer, unsigned));
  201. char    *strchr        Params((char *s, int i));
  202. int    strcmp        Params((char *s1, char *s2));
  203. char    *strcpy        Params((char *s1, char *s2));
  204. char    *strncat    Params((char *s1, char *s2, int n));
  205. int    strncmp        Params((char *s1, char *s2, int n));
  206. char    *strncpy    Params((char *s1, char *s2, int n));
  207. #endif                    /* VMS */
  208.  
  209. /*
  210.  * End of operating-system specific code.
  211.  */
  212.  
  213. #ifdef KeyboardFncs
  214. int    getch        Params((noargs));
  215. int    getche        Params((noargs));
  216. int    kbhit        Params((noargs));
  217. #endif                    /* KeyboardFncs */
  218.  
  219. #ifdef SystemFnc
  220. #ifndef StandardLib
  221. int    system        Params((char *));
  222. #endif                    /* StandardLib */
  223. #endif                    /* SystemFnc */
  224.  
  225. #include "../common/cproto.h"
  226.