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

  1. /***
  2. *cvt.h - definitions used by formatting routines
  3. *
  4. *       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       cvt.h contains definitions used by the formatting routines [efg]cvt and
  8. *       _output and _input.  The value of CVTBUFSIZE is used to dimension
  9. *       arrays used to hold the maximum size double precision number plus some
  10. *       slop to aid in formatting.
  11. *
  12. *       [Internal]
  13. *
  14. ****/
  15.  
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif  /* _MSC_VER > 1000 */
  19.  
  20. #ifndef _INC_CVT
  21. #define _INC_CVT
  22.  
  23. #ifndef _CRTBLD
  24. /*
  25.  * This is an internal C runtime header file. It is used when building
  26.  * the C runtimes only. It is not to be used as a public header file.
  27.  */
  28. #error ERROR: Use of C runtime library internal header file.
  29. #endif  /* _CRTBLD */
  30.  
  31. #define _SHORT  1
  32. #define _LONG   2
  33. #define _USIGN  4
  34. #define _NEAR   8
  35. #define _FAR    16
  36.  
  37. #define OCTAL   8
  38. #define DECIMAL 10
  39. #define HEX     16
  40.  
  41. #define MUL10(x)        ( (((x)<<2) + (x))<<1 )
  42. #define ISDIGIT(c)      ( ((c) >= '0') && ((c) <= '9') )
  43.  
  44. #define CVTBUFSIZE (309+40) /* # of digits in max. dp value + slop */
  45.  
  46. #endif  /* _INC_CVT */
  47.