home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 12.ddi / CLASSINC.PAK / RESOURCE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  4.2 KB  |  109 lines

  1. /*------------------------------------------------------------------------*/
  2. /*                                                                        */
  3. /*  RESOURCE.H                                                            */
  4. /*                                                                        */
  5. /*  Copyright (c) 1991, 1993 Borland International                        */
  6. /*  All Rights Reserved                                                   */
  7. /*                                                                        */
  8. /*------------------------------------------------------------------------*/
  9.  
  10. #if !defined( __CLASSLIB_RESOURCE_H )
  11. #define __CLASSLIB_RESOURCE_H
  12.  
  13. /*------------------------------------------------------------------------*/
  14. /*                                                                        */
  15. /*  Compiler-specific flags.                                              */
  16. /*                                                                        */
  17. /*------------------------------------------------------------------------*/
  18.  
  19. //------------------------------------------------
  20. //
  21. //  When compiling with a compiler that doesn't support various new
  22. //  language features, remove the // from the appropriate 
  23. //  #define below and rebuild the libraries.
  24. //
  25.  
  26. //  #define BI_NO_RTTI          // runtime type information
  27. //  #define BI_NO_NEW_CASTS     // new style casts
  28.  
  29. //------------------------------------------------
  30. //
  31. //  To restore the old naming convention of data and function
  32. //  names beginning with lowercase letters, in addition to the
  33. //  new convention of uppercase letters, remove the // from the
  34. //  #define below. The libraries do not need to be rebuilt.
  35. //
  36.  
  37. //  #define BI_OLDNAMES         // add names with initial lowercase
  38.  
  39. //------------------------------------------------
  40. //
  41. //  To use register calling conventions in the class library,
  42. //  remove the // from the #define below and rebuild the libraries
  43. //  with the -po command line switch.
  44. //
  45.  
  46. //  #define _CLASSLIB_ALLOW_po  // use register calling convention
  47. //                              // (must also use -po on command line)
  48.  
  49. //------------------------------------------------
  50. //
  51. //  -po is only available for the 16-bit optimizing compiler.
  52. //
  53. #if defined(__BCOPT__) && !defined(__FLAT__) && !defined(_CLASSLIB_ALLOW_po)
  54. #define BI_CLASSLIB_NO_po
  55. #endif
  56.  
  57. /*------------------------------------------------------------------------*/
  58. /*                                                                        */
  59. /*  OS-specific flags.                                                    */
  60. /*                                                                        */
  61. /*------------------------------------------------------------------------*/
  62.  
  63. //
  64. //  Only enable multi-thread classes when the OS supports them.
  65. //
  66. #if defined(__WIN32__) || defined(__OS2__)
  67. #define BI_MULTI_THREAD
  68. #endif
  69.  
  70. //
  71. //  Need to do some special stuff when the OS doesn't support
  72. //  per-instance data in DLLs.
  73. //
  74. #if defined(_Windows) && !defined(__FLAT__)
  75. #define BI_NO_PER_INSTANCE_DATA
  76. #endif
  77.  
  78. //
  79. //  Windows 3.1 provides functions to read and write huge buffers.
  80. //
  81. #if defined(_Windows) && WINVER >= 0x030A && !defined(__FLAT__)
  82. #define BI_HAS_HREADWRITE
  83. #endif
  84.  
  85. //
  86. //  Under Windows 3.0 WEPs are seriously broken.
  87. //
  88. #if defined(__DLL__) && defined(_Windows) && WINVER < 0x030A
  89. #define BI_WINDOWS_WEP_BUG      // no destructors for static objects in a DLL
  90. #endif
  91.  
  92. /*------------------------------------------------------------------------*/
  93. /*                                                                        */
  94. /*  Set up some default sizes for containers.                             */
  95. /*                                                                        */
  96. /*------------------------------------------------------------------------*/
  97.  
  98. const DEFAULT_HASH_TABLE_SIZE   = 111;
  99. const DEFAULT_BAG_SIZE          =  29;
  100. const DEFAULT_SET_SIZE          =  29;
  101. const DEFAULT_DEQUE_SIZE        =  20;
  102. const DEFAULT_QUEUE_SIZE        =  20;
  103. const DEFAULT_STACK_SIZE        =  20;
  104. const DEFAULT_ARRAY_SIZE        =  20;
  105. const DEFAULT_DICT_SIZE         =  20;
  106.  
  107. #endif  // __CLASSLIB_RESOURCE_H
  108.  
  109.