summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
diff options
context:
space:
mode:
authorShenglei Zhang <shenglei.zhang@intel.com>2020-05-09 14:33:36 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-05-14 14:38:54 +0000
commit8b680e4af113fbd913d57777a12dd1dd34d0f6f7 (patch)
treea6d07287b0ea4598e0231d8ace1ac7388d000991 /MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
parentf2cdb268ef04eeec51948b5d81eeca5cab5ed9af (diff)
downloadedk2-8b680e4af113fbd913d57777a12dd1dd34d0f6f7.tar.gz
edk2-8b680e4af113fbd913d57777a12dd1dd34d0f6f7.tar.bz2
edk2-8b680e4af113fbd913d57777a12dd1dd34d0f6f7.zip
MdeModulePkg/RegularExpressionDxe: Optimize the code infrastructure
OnigurumaIntrinsics.c is now not used. So the implement of function 'memcpy' is now not., which causes build failure with CLANG9 and XCODE. I remove OnigurumaIntrinsics.c and move the necessary function implement to OnigurumaUefiPort.c/h. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h')
-rw-r--r--MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
index 1a0b2daf47..20b75c3361 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.h
@@ -96,6 +96,8 @@ int EFIAPI sprintf_s (char *str, size_t sizeOfBuffer, char const *fmt, ...);
int strlen(const char* str);
void* malloc(size_t size);
void* realloc(void *ptr, size_t size);
+void* memcpy (void *dest, const void *src, unsigned int count);
+void* memset (void *dest, char ch, unsigned int count);
#define exit(n) ASSERT(FALSE);