comparison src/os_amiga.c @ 3927:e6d8b44065bc v7.3.719

updated for version 7.3.719 Problem: Cannot run new version of cproto, it fails on missing include files. Solution: Add lots of #ifndef PROTO
author Bram Moolenaar <bram@vim.org>
date Tue, 20 Nov 2012 16:53:39 +0100
parents 286ba0251c0a
children 04736b4030ec
comparison
equal deleted inserted replaced
3926:3ea4cfe2d1df 3927:e6d8b44065bc
19 # undef Window /* Amiga has its own Window definition */ 19 # undef Window /* Amiga has its own Window definition */
20 #endif 20 #endif
21 21
22 #undef TRUE /* will be redefined by exec/types.h */ 22 #undef TRUE /* will be redefined by exec/types.h */
23 #undef FALSE 23 #undef FALSE
24
25 /* cproto fails on missing include files, skip them */
26 #ifndef PROTO
24 27
25 #ifndef LATTICE 28 #ifndef LATTICE
26 # include <exec/types.h> 29 # include <exec/types.h>
27 # include <exec/exec.h> 30 # include <exec/exec.h>
28 # include <libraries/dos.h> 31 # include <libraries/dos.h>
52 #endif 55 #endif
53 56
54 #if defined(LATTICE) && !defined(SASC) && defined(FEAT_ARP) 57 #if defined(LATTICE) && !defined(SASC) && defined(FEAT_ARP)
55 # include <libraries/arp_pragmas.h> 58 # include <libraries/arp_pragmas.h>
56 #endif 59 #endif
60
61 #endif /* PROTO */
57 62
58 /* 63 /*
59 * At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0. 64 * At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0.
60 */ 65 */
61 #undef TRUE 66 #undef TRUE
281 mch_exit(3); 286 mch_exit(3);
282 } 287 }
283 #endif 288 #endif
284 } 289 }
285 290
286 #include <workbench/startup.h> 291 #ifndef PROTO
292 # include <workbench/startup.h>
293 #endif
287 294
288 /* 295 /*
289 * Check_win checks whether we have an interactive window. 296 * Check_win checks whether we have an interactive window.
290 * If not, a new window is opened with the newcli command. 297 * If not, a new window is opened with the newcli command.
291 * If we would open a window ourselves, the :sh and :! commands would not 298 * If we would open a window ourselves, the :sh and :! commands would not
1000 * Found on Fish Disk 56. 1007 * Found on Fish Disk 56.
1001 * 1008 *
1002 * Heavely modified by mool. 1009 * Heavely modified by mool.
1003 */ 1010 */
1004 1011
1005 #include <devices/conunit.h> 1012 #ifndef PROTO
1013 # include <devices/conunit.h>
1014 #endif
1006 1015
1007 /* 1016 /*
1008 * try to get the real window size 1017 * try to get the real window size
1009 * return FAIL for failure, OK otherwise 1018 * return FAIL for failure, OK otherwise
1010 */ 1019 */
1127 * Note, I didn't write this, those wonderful folks at CBM did. I do suggest 1136 * Note, I didn't write this, those wonderful folks at CBM did. I do suggest
1128 * however that you may wish to add it to Amiga.Lib, to do so, compile it and 1137 * however that you may wish to add it to Amiga.Lib, to do so, compile it and
1129 * say 'oml lib:amiga.lib -r sendpacket.o' 1138 * say 'oml lib:amiga.lib -r sendpacket.o'
1130 */ 1139 */
1131 1140
1141 #ifndef PROTO
1132 /* #include <proto/exec.h> */ 1142 /* #include <proto/exec.h> */
1133 /* #include <proto/dos.h> */ 1143 /* #include <proto/dos.h> */
1134 #include <exec/memory.h> 1144 # include <exec/memory.h>
1145 #endif
1135 1146
1136 /* 1147 /*
1137 * Function - dos_packet written by Phil Lindsay, Carolyn Scheppner, and Andy 1148 * Function - dos_packet written by Phil Lindsay, Carolyn Scheppner, and Andy
1138 * Finkel. This function will send a packet of the given type to the Message 1149 * Finkel. This function will send a packet of the given type to the Message
1139 * Port supplied. 1150 * Port supplied.