home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser 2002 January / STC_CD_01_2002.iso / GAMES / BOINKO21 / SRC / SRC / BCONFIG.H < prev    next >
C/C++ Source or Header  |  2000-11-27  |  3KB  |  102 lines

  1. /***********************************************/
  2. /*        Boinkout2 configuration file         */
  3. /* Use this file to adapt the sources to your  */
  4. /* C compiler and to select some compilation   */
  5. /* options.                                    */
  6. /***********************************************/
  7.  
  8. #ifndef _BCONFIG_H
  9. #define _BCONFIG_H
  10.  
  11.  
  12. /** Define here your base operating system **/
  13. #define OS_TOS   1           /* Our loved Ataris :-) */
  14. #define OS_DOS   0           /* If you want to compile for PC-GEM */
  15. #define OS_UNIX  0           /* Have you installed oAESis on your Linux? */
  16.  
  17.  
  18. /** Endianess: 0=Little endian ("PCs"), 1=Big endian (Ataris) **/
  19. #ifdef OS_TOS
  20. #define ENDIANESS 1
  21. #else
  22. #define ENDIANESS 0
  23. #endif
  24.  
  25. /** Maximal path and filename lenght **/
  26. #ifndef PATH_MAX
  27. #define PATH_MAX 96
  28. #endif
  29. #ifndef FILENAME_MAX
  30. #define FILENAME_MAX (PATH_MAX+12)
  31. #endif
  32.  
  33.  
  34. /** Use those defines if your C library does not feature a **/
  35. /** malloc(LONG amount).                                   **/
  36. #if 1
  37. /*#if OS_TOS
  38. #define  malloc(x)  Malloc(x)
  39. #define  free(x)    Mfree(x)
  40. #endif*/
  41. #if OS_DOS
  42. #define  malloc(x)  dos_alloc(x)
  43. #define  free(x)    dos_free(x)
  44. #endif
  45. #endif
  46.  
  47.  
  48. /** Does your GEM Library already feature rc_intersect? **/
  49. /* MAR -- gnugem has rc_intersect (so use 1 with gnugem) */
  50. /* DAN -- purec does not have rc_intersect*/
  51. #define GL_RCINTER 0
  52.  
  53. /** There are two different declarations of the objc_edit function:     **/
  54. /** a) objc_edit(OBJECT *tree, WORD obj, WORD c, WORD *idx, WORD kind); **/
  55. /** b) objc_edit(OBJECT *tree, WORD obj, WORD c, WORD idx, WORD kind, WORD *idx); **/
  56. /** If your GEM library uses a), you should use following define: **/
  57. /* MAR -- gnugem has the latter type (so use 0 with gnugem) */
  58. #if 1
  59. #define objc_edit(tree,obj,c,idx,kind,idxp)  objc_edit(tree,obj,c,idxp,kind)
  60. #endif
  61.  
  62.  
  63. /** Some people prefer the VDI mouse functions to the AES functions: **/
  64. #if 1
  65. #define HIDE_MOUSE graf_mouse(M_OFF,0L);
  66. #define SHOW_MOUSE graf_mouse(M_ON,0L);
  67. #else
  68. #define HIDE_MOUSE v_hide_c(handle);
  69. #define SHOW_MOUSE v_show_c(handle, 1);
  70. #endif
  71.  
  72. #if OS_TOS
  73. #ifdef __TURBOC__
  74. #include <tos.h>
  75. #else
  76. #include <osbind.h>
  77. #endif
  78. #endif
  79.  
  80. #ifdef __GNUC__
  81. extern int    _app;
  82. extern short _global[];
  83. #define AP_TERM            50
  84. #define WM_ICONIFY        34
  85. #define WM_UNICONIFY        35
  86. #define WM_ALLICONIFY    36
  87. #define WF_ICONIFY        26
  88. #define WF_UNICONIFY        27
  89. #define WF_UNICONIFYXYWH    28
  90. #define ED_START        0               /* editable text field definitions */
  91. #define ED_INIT         1
  92. #define ED_CHAR         2
  93. #define ED_END          3
  94. #define ED_CRSR          100                                /* MAG!X       */
  95. #define ED_DRAW          103                                /* MAG!X 2.00  */
  96. #define evnt_timer(l,h) evnt_timer((long)h<<16|l)
  97. #define evnt_multi(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w) evnt_multi(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,(long)q<<16|p,r,s,t,u,v,w)
  98. #endif
  99.  
  100. #endif /* _BCONFIG_H */
  101.  
  102.