home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZNLFUNCS / H / ZNLDEFS.H < prev    next >
Text File  |  1993-09-21  |  3KB  |  94 lines

  1. /*
  2. ** /----------------------------------------------------------------------\
  3. ** |             IBM Z Family Reusable Libraries/2 (5641-504)             |
  4. ** |----------------------------------------------------------------------|
  5. ** | (C) Copyright International Business Machines Corporation 1993, 1994 |
  6. ** \----------------------------------------------------------------------/
  7. **
  8. **  Module    : ZNLDEFS.H
  9. **  Author    : Valerio Tavazzi (TAVAZZI at ROMEPPC)
  10. **  Reviewer  : Dario de Judicibus (DEJUDICI at ROMEPPC)
  11. **  Created   : 09 Jul 1992
  12. **  Updated   : 21 Sep 1993
  13. **  Version   : 3.22
  14. **  Content   : Public definitions and macros
  15. **
  16. */
  17.  #ifndef  znlDEFINITIONS
  18.  #define  znlDEFINITIONS  0
  19.  
  20.  #define  INCL_DOSNLS
  21.  
  22.  #define  znlZPREFIX           "ZNL"
  23.  #define  znlDLLNAME           "FMZNLFUN"
  24.  
  25. /*
  26. **  Buffer sizes
  27. */
  28.  #define  znlLONGBUFFER        40     // Max size of long strings
  29.  #define  znlSHORTBUFFER       5      // Max size of short strings
  30.  #define  znlDOUBLEBUFFER      80     // Max size of "double" strings
  31.  
  32. /*
  33. **  Currency formats
  34. */
  35.  #define  znlCUR_SUFF          0x01   // Suffix
  36.  #define  znlCUR_SEP           0x02   // Separator
  37.  #define  znlCUR_PREF_NOSEP    0x00   // Prefix, no separator
  38.  #define  znlCUR_SUFF_NOSEP    0x01   // Suffix, no separator
  39.  #define  znlCUR_PREF_SEP      0x02   // Prefix, separator
  40.  #define  znlCUR_SUFF_SEP      0x03   // Suffix, separator
  41.  
  42. /*
  43. **  Date and time formats
  44. */
  45.  #define  znlDATE_MMDDYY       0x00   // Month, Day, Year
  46.  #define  znlDATE_DDMMYY       0x01   // Day, Month, Year
  47.  #define  znlDATE_YYMMDD       0x02   // Year, Month, Day
  48.  #define  znlTIME_12           0x00   // 12h (AM/PM)
  49.  #define  znlTIME_24           0x01   // 24h
  50.  
  51. /*
  52. **  Type of information
  53. */
  54.  #define  znlCOUNTRY           0x0000 // Base country structure
  55.  #define  znlISO               0x0001 // Country structure ISO modified
  56.  
  57. /*
  58. **  ISO settings
  59. */
  60.  #define  znlISO_NAME          "ISO"
  61.  #define  znlISO_DATEFMT       znlDATE_YYMMDD
  62.  #define  znlISO_TIMEFMT       znlTIME_24
  63.  #define  znlISO_DATESEP       '-'
  64.  #define  znlISO_TIMESEP       '.'
  65.  
  66. /*
  67. **  Defaults
  68. */
  69.  #define  znlDEFAULTCOUNTRY    0
  70.  #define  znlDEFAULTCODEPAGE   0
  71.  
  72. /*
  73. **  Note that, since certain flags are used in the same operations, they
  74. **  must be MUTUAL EXCLUSIVE, that is they can't use the same bits.
  75. **  Flags not used at the same time may have the same value.
  76. */
  77.  #define  znlNOTDEFINED      0x00000000  // For check on flags
  78.  #define  znlUSEDEFAULTS     0x00000000  // Passed by the caller
  79.  
  80. /*
  81. **  Used by znlMakeCtryDouble()
  82. */
  83.  #define  znlTHS_DEFAULTS    0x00000001 // Defaults for parsing options
  84.  #define  znlTHS_CURRENT     0x00000001 // Add if specified in current settings
  85.  #define  znlTHS_NONE        0x00000002 // Never add thousand separators
  86.  #define  znlTHS_INTONLY     0x00000004 // Add only in integer part
  87.  
  88. /*
  89. **  Macros
  90. */
  91.  #include <znlmacro.h>
  92.  
  93.  #endif
  94.