home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / SOURCE / STARTUP / INTERNAL.C_ / INTERNAL.C
Encoding:
C/C++ Source or Header  |  1993-02-08  |  2.0 KB  |  91 lines

  1. /***
  2. *internal.h - contains declarations of internal routines and variables
  3. *
  4. *    Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *    Declares routines and variables used internally by the C run-time.
  8. *    These variables are declared "near" for efficiency.
  9. *    [Internal]
  10. *
  11. ****/
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. /* no _FAR_ in internal builds */        /* _FAR_DEFINED */
  18. #undef _FAR_                    /* _FAR_DEFINED */
  19. #define _FAR_                    /* _FAR_DEFINED */
  20.  
  21. #define _LOAD_DS        /* _LOAD_DGROUP */
  22.                 /* _LOAD_DGROUP */
  23. #define _NEAR_ __near
  24. #define _PASCAL_ __pascal
  25.  
  26. #if (_MSC_VER <= 600)
  27. #define __cdecl     _cdecl
  28. #define __far       _far
  29. #define __near      _near
  30. #define __pascal    _pascal
  31. #endif
  32.  
  33. /* conditionally define macro for Windows DLL libs */
  34. #ifdef    _WINDLL
  35. #define _WINSTATIC    static
  36. #else
  37. #define _WINSTATIC
  38. #endif
  39.  
  40. extern char __near _commode;    /* default file commit mode */
  41.  
  42. extern int __near _nfile;    /* # of OS file handles */
  43. #ifdef _QWIN
  44. extern int __near _wfile;    /* # of QWIN file handles */
  45. extern int __near _wnfile;    /* total # of file handles */
  46. #endif
  47.  
  48. extern char __near _osfile[];
  49.  
  50. extern char __near __dnames[];
  51. extern char __near __mnames[];
  52.  
  53. extern int __near _days[];
  54. extern int __near _lpdays[];
  55.  
  56. #ifdef _QWIN
  57. extern int __near _qwinused;      /* QWIN system in use flag */
  58. #endif
  59.  
  60. /*
  61. #ifdef    _WINDOWS
  62. #ifdef _WINDLL
  63. extern unsigned int _hModule;
  64. extern unsigned int _wDataSeg;
  65. extern unsigned int _wHeapSize;
  66. extern char __far * _lpszCmdLine;
  67. #else
  68. extern unsigned int _hInstance;
  69. extern unsigned int _hPrevInstance;
  70. extern char __far * _lpszCmdLine;
  71. extern int _cmdShow;
  72. #endif
  73. #endif
  74. */
  75.  
  76. #ifndef _TIME_T_DEFINED
  77. typedef long    time_t;        /* time value */
  78. #define _TIME_T_DEFINED     /* avoid multiple def's of time_t */
  79. #endif
  80.  
  81. extern time_t _dostotime_t(int, int, int, int, int, int);
  82.  
  83. #ifdef _TM_DEFINED
  84. extern int _isindst(struct tm *);
  85. #endif
  86.  
  87. extern void __tzset(void);
  88.  
  89. /**
  90. ** This variable is in the C start-up; the length must be kept synchronized
  91.