home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / nlsint.h < prev    next >
C/C++ Source or Header  |  1998-06-17  |  2KB  |  58 lines

  1. /***
  2. *nlsint.h - national language support internal defintions
  3. *
  4. *       Copyright (c) 1991-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       Contains internal definitions/declarations for international functions,
  8. *       shared between run-time and math libraries, in particular,
  9. *       the localized decimal point.
  10. *
  11. *       [Internal]
  12. *
  13. ****/
  14.  
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif  /* _MSC_VER > 1000 */
  18.  
  19. #ifndef _INC_NLSINT
  20. #define _INC_NLSINT
  21.  
  22. #ifndef _CRTBLD
  23. /*
  24.  * This is an internal C runtime header file. It is used when building
  25.  * the C runtimes only. It is not to be used as a public header file.
  26.  */
  27. #error ERROR: Use of C runtime library internal header file.
  28. #endif  /* _CRTBLD */
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif  /* __cplusplus */
  33.  
  34. #ifndef _SIZE_T_DEFINED
  35. typedef unsigned int size_t;
  36. #define _SIZE_T_DEFINED
  37. #endif  /* _SIZE_T_DEFINED */
  38.  
  39. /*
  40.  *  Definitions for a localized decimal point.
  41.  *  Currently, run-times only support a single character decimal point.
  42.  */
  43. #define ___decimal_point                __decimal_point
  44. extern char __decimal_point[];          /* localized decimal point string */
  45.  
  46. #define ___decimal_point_length         __decimal_point_length
  47. extern size_t __decimal_point_length;   /* not including terminating null */
  48.  
  49. #define _ISDECIMAL(p)   (*(p) == *___decimal_point)
  50. #define _PUTDECIMAL(p)  (*(p)++ = *___decimal_point)
  51. #define _PREPUTDECIMAL(p)       (*(++p) = *___decimal_point)
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif  /* __cplusplus */
  56.  
  57. #endif  /* _INC_NLSINT */
  58.