From 148070985fd49efeebfb3a93865a6503d8b1dd4c Mon Sep 17 00:00:00 2001 From: Chernov Dmitriy <cd_work@mail.ru> Date: 周一, 29 2月 2016 16:01:24 +0800 Subject: [PATCH] strdup(malloc)/free ready. --- libscpi/src/utils_private.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/libscpi/src/utils_private.h b/libscpi/src/utils_private.h index 671dea0..68b52bc 100644 --- a/libscpi/src/utils_private.h +++ b/libscpi/src/utils_private.h @@ -87,6 +87,13 @@ int OUR_strncasecmp(const char *s1, const char *s2, size_t n) LOCAL; #endif +#if USE_DEVICE_DEPENDENT_ERROR_INFORMATION && !USE_MEMORY_ALLOCATION_FREE + char * OUR_strdup(scpi_error_info_heap_t * heap, const char *s) LOCAL; + void OUR_free(scpi_error_info_heap_t * heap, const char *s) LOCAL; + char * OUR_get_1st_part(const char *s, size_t * len) LOCAL; + char * OUR_get_2nd_part(const char *s, size_t * len) LOCAL; +#endif + #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif -- Gitblit v1.9.1