Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.8 KiB

  1. /***
  2. *cvt.h - definitions used by formatting routines
  3. *
  4. * Copyright (c) 1985-2001, 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. *Revision History:
  15. * 12-11-87 JCR Added "_loadds" functionality
  16. * 02-10-88 JCR Cleaned up white space
  17. * 07-28-89 GJF Fixed copyright
  18. * 10-30-89 GJF Fixed copyright (again)
  19. * 02-28-90 GJF Added #ifndef _INC_CVT stuff. Also, removed some
  20. * (now) useless preprocessor directives.
  21. * 02-14-95 CFW Clean up Mac merge.
  22. * 03-29-95 CFW Add error message to internal headers.
  23. * 06-23-95 GJF Added leading '_' to several macros to avoid conflict
  24. * with macros in win*.h.
  25. * 12-14-95 JWM Add "#pragma once".
  26. * 02-24-97 GJF Detab-ed.
  27. *
  28. ****/
  29. #if _MSC_VER > 1000 /*IFSTRIP=IGN*/
  30. #pragma once
  31. #endif
  32. #ifndef _INC_CVT
  33. #define _INC_CVT
  34. #ifndef _CRTBLD
  35. /*
  36. * This is an internal C runtime header file. It is used when building
  37. * the C runtimes only. It is not to be used as a public header file.
  38. */
  39. #error ERROR: Use of C runtime library internal header file.
  40. #endif /* _CRTBLD */
  41. #define _SHORT 1
  42. #define _LONG 2
  43. #define _USIGN 4
  44. #define _NEAR 8
  45. #define _FAR 16
  46. #define OCTAL 8
  47. #define DECIMAL 10
  48. #define HEX 16
  49. #define MUL10(x) ( (((x)<<2) + (x))<<1 )
  50. #define ISDIGIT(c) ( ((c) >= '0') && ((c) <= '9') )
  51. #define CVTBUFSIZE (309+40) /* # of digits in max. dp value + slop */
  52. #endif /* _INC_CVT */