/
githubmirror
/
shim
Обзор
Документация
Войти
/
githubmirror
/
shim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
15.7
Cryptlib/Library/BaseLib.h
25 строк
703 B
Peter Jones
Fix stdarg to work the same everywhere.
10 мар 2021, 23:54
10 мар 2021, 23:54
9beca88
Код
Авторство
О чём код?
#if defined(__x86_64__) /* shim.h will check if the compiler is new enough in some other CU */ #if !defined(GNU_EFI_USE_EXTERNAL_STDARG) #define GNU_EFI_USE_EXTERNAL_STDARG #endif #if !defined(GNU_EFI_USE_MS_ABI) #define GNU_EFI_USE_MS_ABI #endif #ifdef NO_BUILTIN_VA_FUNCS #undef NO_BUILTIN_VA_FUNCS #endif #endif #include <efi.h> #include <efilib.h> UINT32 WriteUnaligned32 (UINT32 *Buffer, UINT32 Value); UINTN AsciiStrSize (const CHAR8 *string); CHAR8 *AsciiStrnCpy(CHAR8 *Destination, const CHAR8 *Source, UINTN count); CHAR8 *AsciiStrCat(CHAR8 *Destination, const CHAR8 *Source); CHAR8 *AsciiStrCpy(CHAR8 *Destination, const CHAR8 *Source); UINTN AsciiStrDecimalToUintn(const CHAR8 *String);