ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

builddep.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 STATUS_SUCCESS               0
00024 #define INF_STATUS_SUCCESS           0
00025 #define INF_STATUS_NO_MEMORY         ENOMEM
00026 #define INF_STATUS_INVALID_PARAMETER EINVAL
00027 #define INF_STATUS_NOT_FOUND         ENOENT
00028 #define INF_STATUS_BUFFER_OVERFLOW   E2BIG
00029 #define INF_SUCCESS(x) (0 == (x))
00030 
00031 #define STRFMT "%s"
00032 
00033 NTSTATUS NTAPI RtlMultiByteToUnicodeN(IN PWCHAR UnicodeString,
00034     IN ULONG UnicodeSize, IN PULONG ResultSize, IN PCSTR MbString, IN ULONG MbSize);
00035 
00036 BOOLEAN NTAPI RtlIsTextUnicode( PVOID buf, INT len, INT *pf );
00037 
00038 
00039 #define IS_TEXT_UNICODE_ASCII16 1
00040 #define IS_TEXT_UNICODE_REVERSE_ASCII16 16
00041 #define IS_TEXT_UNICODE_STATISTICS 2
00042 #define IS_TEXT_UNICODE_REVERSE_STATISTICS 32
00043 #define IS_TEXT_UNICODE_CONTROLS 4
00044 #define IS_TEXT_UNICODE_REVERSE_CONTROLS 64
00045 #define IS_TEXT_UNICODE_SIGNATURE 8
00046 #define IS_TEXT_UNICODE_REVERSE_SIGNATURE 128
00047 #define IS_TEXT_UNICODE_ILLEGAL_CHARS 256
00048 #define IS_TEXT_UNICODE_ODD_LENGTH 512
00049 #define IS_TEXT_UNICODE_NULL_BYTES 4096
00050 #define IS_TEXT_UNICODE_UNICODE_MASK 15
00051 #define IS_TEXT_UNICODE_REVERSE_MASK 240
00052 #define IS_TEXT_UNICODE_NOT_UNICODE_MASK 3840
00053 #define IS_TEXT_UNICODE_NOT_ASCII_MASK 61440
00054 
00055 #else /* ! defined(INFLIB_HOST) */
00056 
00057 /* ReactOS definitions */
00058 
00059 #define UNICODE
00060 #define _UNICODE
00061 #define WIN32_NO_STATUS
00062 #include <windows.h>
00063 #define NTOS_MODE_USER
00064 #include <ndk/iofuncs.h>
00065 #include <ndk/obfuncs.h>
00066 #include <ndk/rtlfuncs.h>
00067 
00068 extern PVOID InfpHeap;
00069 
00070 #define FREE(Area) RtlFreeHeap(InfpHeap, 0, (Area))
00071 #define MALLOC(Size) RtlAllocateHeap(InfpHeap, 0, (Size))
00072 #define ZEROMEMORY(Area, Size) RtlZeroMemory((Area), (Size))
00073 #define MEMCPY(Dest, Src, Size) RtlCopyMemory((Dest), (Src), (Size))
00074 
00075 #define INF_STATUS_SUCCESS           STATUS_SUCCESS
00076 #define INF_STATUS_NO_MEMORY         STATUS_NO_MEMORY
00077 #define INF_STATUS_INVALID_PARAMETER STATUS_INVALID_PARAMETER
00078 #define INF_STATUS_NOT_FOUND         STATUS_NOT_FOUND
00079 #define INF_STATUS_BUFFER_OVERFLOW   STATUS_BUFFER_OVERFLOW
00080 #define INF_SUCCESS(x) (0 <= (x))
00081 
00082 #define STRFMT "%S"
00083 
00084 #endif /* INFLIB_HOST */
00085 
00086 #include <wine/unicode.h>
00087 
00088 /* EOF */

Generated on Sat May 26 2012 04:35:05 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.