home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / memory.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  2.3 KB  |  99 lines

  1. /***
  2. *memory.h - declarations for buffer (memory) manipulation routines
  3. *
  4. *       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This include file contains the function declarations for the
  8. *       buffer (memory) manipulation routines.
  9. *       [System V]
  10. *
  11. ****/
  12.  
  13. #ifndef _INC_MEMORY
  14.  
  15. #ifdef UNDER_CE
  16. #include <windef.h>
  17. #endif
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. #ifdef UNDER_CE
  24.  
  25. /*
  26.  * Conditional macro definition for function calling type and variable type
  27.  * qualifiers.
  28.  */
  29. #if   ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
  30.  
  31. /*
  32.  * Definitions for MS C8-32 (386/486) compiler
  33.  */
  34. #define _CRTAPI1 __cdecl
  35. #define _CRTAPI2 __cdecl
  36.  
  37. #else
  38.  
  39. /*
  40.  * Other compilers (e.g., MIPS)
  41.  */
  42. #define _CRTAPI1
  43. #define _CRTAPI2
  44.  
  45. #endif
  46.  
  47. /* function prototypes */
  48.  
  49. void * _CRTAPI1 memchr(const void *, int, size_t);
  50. int    _CRTAPI1 memcmp(const void *, const void *, size_t);
  51. void * _CRTAPI1 memcpy(void *, const void *, size_t);
  52. void * _CRTAPI1 memset(void *, int, size_t);
  53. _CRTIMP int    _CRTAPI1 _memicmp(const void *, const void *, unsigned int);
  54. _CRTIMP void * _CRTAPI1 _memccpy(void *, const void *, int, unsigned int);
  55. _CRTIMP void * _CRTAPI1 memmove(void *, const void *, size_t);
  56.  
  57. #if !defined (_SH3_) && !defined(SH3)
  58. #pragma function(memcpy,memset,memcmp)
  59. #endif
  60.  
  61. #else   /* !UNDER_CE */
  62.  
  63. #ifndef _CRTIMP
  64. #ifdef _DLL
  65. #define _CRTIMP __declspec(dllimport)
  66. #else
  67. #define _CRTIMP
  68. #endif
  69. #endif
  70.  
  71. #ifndef _SIZE_T_DEFINED
  72. typedef unsigned int size_t;
  73. #define _SIZE_T_DEFINED
  74. #endif
  75.  
  76. /* function prototypes */
  77.  
  78. _CRTIMP void * __cdecl _memccpy(void *, const void *, int, unsigned int);
  79. _CRTIMP void * __cdecl memchr(const void *, int, size_t);
  80.     int __cdecl memcmp(const void *, const void *, size_t);
  81.     void * __cdecl memcpy(void *, const void *, size_t);
  82. _CRTIMP int __cdecl _memicmp(const void *, const void *, unsigned int);
  83.     void * __cdecl memset(void *, int, size_t);
  84.  
  85. #if !__STDC__
  86. /* Non-ANSI names for compatibility */
  87. _CRTIMP void * __cdecl memccpy(void *, const void *, int, unsigned int);
  88. _CRTIMP int __cdecl memicmp(const void *, const void *, unsigned int);
  89. #endif    /* __STDC__ */
  90.  
  91. #endif  /* !UNDER_CE */
  92.  
  93. #ifdef __cplusplus
  94. }
  95. #endif
  96.  
  97. #define _INC_MEMORY
  98. #endif  /* _INC_MEMORY */
  99.