From 1f3aae322221514a8df3e06c0adf6844a597b025 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周一, 10 4月 2017 19:03:01 +0800 Subject: [PATCH] Merge pull request #85 from richardbarlow/master --- libscpi/src/utils_private.h | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/libscpi/src/utils_private.h b/libscpi/src/utils_private.h index 671dea0..f83c6d4 100644 --- a/libscpi/src/utils_private.h +++ b/libscpi/src/utils_private.h @@ -87,6 +87,17 @@ int OUR_strncasecmp(const char *s1, const char *s2, size_t n) LOCAL; #endif +#if USE_DEVICE_DEPENDENT_ERROR_INFORMATION && !USE_MEMORY_ALLOCATION_FREE + void scpiheap_init(scpi_error_info_heap_t * heap, char * error_info_heap, size_t error_info_heap_length); + char * scpiheap_strndup(scpi_error_info_heap_t * heap, const char *s, size_t n) LOCAL; + void scpiheap_free(scpi_error_info_heap_t * heap, char *s, scpi_bool_t rollback) LOCAL; + scpi_bool_t scpiheap_get_parts(scpi_error_info_heap_t * heap, const char *s1, size_t * len1, const char ** s2, size_t * len2) LOCAL; +#endif + +#if !HAVE_STRNDUP + char *OUR_strndup(const char *s, size_t n); +#endif + #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif -- Gitblit v1.9.1