From a2bf0f3c66589fb12260c95a6eef0dd514d72925 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 28 Feb 2018 16:52:34 +0100 Subject: [PATCH] backward compatibility function wrappers --- src/ca/access.cpp | 6 ++++++ src/libCom/ellLib/ellLib.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/ca/access.cpp b/src/ca/access.cpp index e701c5b00..859cec774 100644 --- a/src/ca/access.cpp +++ b/src/ca/access.cpp @@ -765,6 +765,12 @@ void epicsShareAPI ca_detach_context () } } +// backward compatibility with 3.14.8 +extern "C" void _Z17ca_detach_contextv () +{ + ca_detach_context(); +} + int epicsShareAPI ca_preemtive_callback_is_enabled () { ca_client_context *pcac = (ca_client_context *) epicsThreadPrivateGet ( caClientContextId ); diff --git a/src/libCom/ellLib/ellLib.c b/src/libCom/ellLib/ellLib.c index d4800bd16..7bac2c356 100644 --- a/src/libCom/ellLib/ellLib.c +++ b/src/libCom/ellLib/ellLib.c @@ -281,6 +281,13 @@ void ellFree2 (ELLLIST *pList, FREEFUNC freeFunc) pList->count = 0; } +/* for backward compatibility provide a function ellFree() in addition to macro */ +#undef ellFree +void ellFree (ELLLIST *pList) +{ + ellFree2 (pList, free); +} + /**************************************************************************** * * This function verifies that the list is consistent.