home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Tutorial / C Guide / Simple_Module1 / includes / Project.h < prev   
Encoding:
C/C++ Source or Header  |  1998-09-20  |  2.0 KB  |  80 lines

  1. /*******************************************************************
  2.  
  3.    Project.h
  4.  
  5.    It is just the way how do I my work...
  6.    This is included in every other own headerfile to make globally
  7.    defines,...
  8.  
  9. *********************************************************************/
  10. // At first the "include" section
  11.  
  12. // useful for SAS
  13. #include <dos.h>
  14.  
  15. #include <proto/dos.h>
  16. #include <proto/asl.h>
  17. #include <proto/exec.h>
  18. #include <proto/utility.h>
  19. #include <proto/gadtools.h>
  20. #include <proto/intuition.h>
  21.  
  22. #include <dos/exall.h>
  23. #include <dos/dostags.h>
  24. #include <exec/memory.h>
  25. #include <exec/execbase.h>
  26.  
  27. /* catalog file */
  28. #define  CATCOMP_NUMBERS
  29. #include "includes/buildin.strings"
  30.  
  31. #define  _DOPUS_MODULE_DEF
  32. #include <dopus/modules.h>
  33.  
  34. /* contains some replacements for string functions - by Dirk Stoecker */
  35. #define  SDI_TO_ANSI
  36. #include "/sc/include/sdi_std.h"
  37.  
  38. /********************************************************************/
  39. // now we do our own stuff, this here is already from our first real
  40. // module (as example...)
  41.  
  42. #define MODULE_NAME        "example.module"
  43. #define MODULE_VER_NUMBER  1
  44. #define MODULE_CATALOG     "example.catalog"
  45. #define MODULE_FLAGS       0
  46. #define MODULE_FUNC_COUNT  3
  47.  
  48. #define VERSION_STRING     MODULE_NAME " 1.1"
  49.  
  50.  
  51. // FUNCx_DESCRIPTION will be in "includes/buildin.strings" defined
  52. // (will be created by CatComp from "includes/buildin.cd"...)
  53.  
  54. #define COMMAND_0
  55. #define FUNC0_ID
  56. #define FUNC0_FLAGS
  57. #define FUNC0_TEMPLATE
  58.  
  59. #define COMMAND_1
  60. #define FUNC1_ID
  61. #define FUNC1_FLAGS
  62. #define FUNC1_TEMPLATE
  63.  
  64. #define COMMAND_2
  65. #define FUNC2_ID
  66. #define FUNC2_FLAGS
  67. #define FUNC2_TEMPLATE
  68.  
  69. /********************************************************************/
  70. /* You may declare here some variables, if you need them globally.  */
  71. /* We need them here not and we use for each function it's own file */
  72. /* and header.                                                      */
  73.  
  74.  
  75. /********************************************************************/
  76. // make our memorypool (modinit.c) globally accessable
  77.  
  78. extern APTR mempool;
  79.  
  80.