Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenbuilddep.h
Go to the documentation of this file.
00001 /* 00002 * PROJECT: .inf file parser 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * COPYRIGHT: Copyright 2005 Ge van Geldorp <gvg@reactos.org> 00005 */ 00006 00007 #ifdef INFLIB_HOST 00008 00009 /* Definitions native to the host on which we're building */ 00010 00011 #include <typedefs.h> 00012 00013 #include <stdarg.h> 00014 #include <stdio.h> 00015 #include <string.h> 00016 #include <errno.h> 00017 00018 #define FREE(Area) free(Area) 00019 #define MALLOC(Size) malloc((size_t)(Size)) 00020 #define ZEROMEMORY(Area, Size) memset((Area), '\0', (size_t)(Size)) 00021 #define MEMCPY(Dest, Src, Size) memcpy((Dest), (Src), (size_t)(Size)) 00022 00023 #define INF_STATUS_SUCCESS 0 00024 #define INF_STATUS_NO_MEMORY ENOMEM 00025 #define INF_STATUS_INVALID_PARAMETER EINVAL 00026 #define INF_STATUS_NOT_FOUND ENOENT 00027 #define INF_STATUS_BUFFER_OVERFLOW E2BIG 00028 #define INF_SUCCESS(x) (0 == (x)) 00029 00030 typedef char TCHAR, *PTCHAR, *PTSTR; 00031 typedef const TCHAR *PCTSTR; 00032 00033 #define _T(x) x 00034 #define _tcsicmp strcasecmp 00035 #define _tcslen strlen 00036 #define _tcscpy strcpy 00037 #define _tcstoul strtoul 00038 #define _tcstol strtol 00039 #define STRFMT "%s" 00040 00041 #ifdef _MSC_VER 00042 #define strcasecmp _stricmp 00043 #endif 00044 00045 #else /* ! defined(INFLIB_HOST) */ 00046 00047 /* ReactOS definitions */ 00048 00049 #define UNICODE 00050 #define _UNICODE 00051 #define WIN32_NO_STATUS 00052 #include <windows.h> 00053 #define NTOS_MODE_USER 00054 #include <ndk/ntndk.h> 00055 #include <tchar.h> 00056 00057 extern PVOID InfpHeap; 00058 00059 #define FREE(Area) RtlFreeHeap(InfpHeap, 0, (Area)) 00060 #define MALLOC(Size) RtlAllocateHeap(InfpHeap, 0, (Size)) 00061 #define ZEROMEMORY(Area, Size) RtlZeroMemory((Area), (Size)) 00062 #define MEMCPY(Dest, Src, Size) RtlCopyMemory((Dest), (Src), (Size)) 00063 00064 #define INF_STATUS_SUCCESS STATUS_SUCCESS 00065 #define INF_STATUS_NO_MEMORY STATUS_NO_MEMORY 00066 #define INF_STATUS_INVALID_PARAMETER STATUS_INVALID_PARAMETER 00067 #define INF_STATUS_NOT_FOUND STATUS_NOT_FOUND 00068 #define INF_STATUS_BUFFER_OVERFLOW STATUS_BUFFER_OVERFLOW 00069 #define INF_SUCCESS(x) (0 <= (x)) 00070 00071 #define STRFMT "%S" 00072 00073 #endif /* INFLIB_HOST */ 00074 00075 /* EOF */ Generated on Mon May 28 2012 04:36:05 for ReactOS by
1.7.6.1
|