Loading...
Searching...
No Matches
Go to the documentation of this file.
12#ifndef ONIGURUMA_UEFI_PORT_H
13#define ONIGURUMA_UEFI_PORT_H
21#define ONIG_NO_STANDARD_C_HEADERS
25#define INT_MAX 0x7FFFFFFF
26#define LONG_MAX 0x7FFFFFFF
27#define UINT_MAX 0xFFFFFFFF
28#define ULONG_MAX 0xFFFFFFFF
31#define SIZEOF_LONG_LONG 8
33typedef UINT32 uint32_t;
37#define offsetof OFFSET_OF
40#if defined (MDE_CPU_IA32) || defined (MDE_CPU_ARM) || defined (MDE_CPU_EBC)
46#define calloc(n, s) AllocateZeroPool((n)*(s))
47#define xmemmove(Dest, Src, Length) CopyMem(Dest,Src,Length)
48#define xmemcpy(Dest, Src, Length) CopyMem(Dest,Src,Length)
49#define xmemset(Buffer, Value, Length) SetMem(Buffer,Length,Value)
51#define va_init_list(a, b) VA_START(a,b)
52#define va_list VA_LIST
53#define va_arg(a, b) VA_ARG(a,b)
54#define va_end(a) VA_END(a)
55#define va_start VA_START
61#define vsnprintf (int)AsciiVSPrint
62#define _vsnprintf vsnprintf
63#define xsnprintf sprintf_s
64#define xvsnprintf vsnprintf
67#define setlocale(a, b)
71#define MAX_STRING_SIZE 0x1000
72#define strlen_s(String, MaxSize) AsciiStrnLenS (String, MaxSize)
73#define xstrncpy(Dest, Src, MaxSize) strcat_s(Dest,MaxSize,Src)
74#define xstrcat(Dest, Src, MaxSize) strcat(Dest,Src,MaxSize)
75#define strcat(Dest, Src, MaxSize) strcat_s(Dest,MaxSize,Src)
76#define strcat_s(Dest, MaxSize, Src) AsciiStrCatS (Dest, MaxSize, Src)
77#define strncpy_s(Dest, MaxSize, Src, Length) AsciiStrnCpyS (Dest, MaxSize, Src, Length)
78#define strcmp OnigStrCmp
110#if !defined (MDE_CPU_ARM)
132#define exit(n) ASSERT(FALSE);