Skip to content

Commit

Permalink
Merge f1adcc3 into cb15717
Browse files Browse the repository at this point in the history
  • Loading branch information
anjohnson committed Apr 3, 2024
2 parents cb15717 + f1adcc3 commit 59a9d3c
Show file tree
Hide file tree
Showing 27 changed files with 1,066 additions and 827 deletions.
1 change: 0 additions & 1 deletion modules/ca/src/client/Makefile
Expand Up @@ -118,7 +118,6 @@ EXPAND_VARS = INSTALL_BIN=$(FINAL_LOCATION)/bin/$(T_A)
SRC_DIRS += $(CURDIR)/test
PROD_HOST += ca_test
ca_test_SRCS = ca_test_main.c ca_test.c
ca_test_LIBS = ca Com
ca_test_SYS_LIBS_WIN32 = ws2_32 advapi32 user32

OBJS_vxWorks += ca_test
Expand Down
2 changes: 1 addition & 1 deletion modules/database/src/ioc/as/Makefile
Expand Up @@ -23,4 +23,4 @@ dbCore_SRCS += asIocRegister.c

PROD_HOST += ascheck
ascheck_SRCS = ascheck.c
ascheck_LIBS = dbCore ca Com
ascheck_LIBS = dbCore ca
2 changes: 1 addition & 1 deletion modules/database/src/ioc/db/dbAccess.c
Expand Up @@ -112,7 +112,7 @@ void dbSpcAsRegisterCallback(SPC_ASCALLBACK func)

long dbPutSpecial(DBADDR *paddr,int pass)
{
long int (*pspecial)()=NULL;
long int (*pspecial)(struct dbAddr *, int)=NULL;
rset *prset;
dbCommon *precord = paddr->precord;
long status=0;
Expand Down
7 changes: 5 additions & 2 deletions modules/database/src/ioc/db/dbConvertFast.h
Expand Up @@ -19,8 +19,11 @@
extern "C" {
#endif

DBCORE_API extern long (*dbFastGetConvertRoutine[DBF_DEVICE+1][DBR_ENUM+1])();
DBCORE_API extern long (*dbFastPutConvertRoutine[DBR_ENUM+1][DBF_DEVICE+1])();
struct dbAddr;
typedef long (*FASTCONVERTFUNC)(const void *from, void *to, const struct dbAddr *paddr);

DBCORE_API extern FASTCONVERTFUNC dbFastGetConvertRoutine[DBF_DEVICE+1][DBR_ENUM+1];
DBCORE_API extern FASTCONVERTFUNC dbFastPutConvertRoutine[DBR_ENUM+1][DBF_DEVICE+1];

#ifdef __cplusplus
}
Expand Down
6 changes: 2 additions & 4 deletions modules/database/src/ioc/db/dbConvertJSON.c
Expand Up @@ -19,8 +19,6 @@
#include "dbConvertFast.h"
#include "dbConvertJSON.h"

typedef long (*FASTCONVERT)();

typedef struct parseContext {
int depth;
short dbrType;
Expand All @@ -42,7 +40,7 @@ static int dbcj_boolean(void *ctx, int val) {
static int dbcj_integer(void *ctx, long long num) {
parseContext *parser = (parseContext *) ctx;
epicsInt64 val64 = num;
FASTCONVERT conv = dbFastPutConvertRoutine[DBF_INT64][parser->dbrType];
FASTCONVERTFUNC conv = dbFastPutConvertRoutine[DBF_INT64][parser->dbrType];

if (parser->elems > 0) {
conv(&val64, parser->pdest, NULL);
Expand All @@ -54,7 +52,7 @@ static int dbcj_integer(void *ctx, long long num) {

static int dbcj_double(void *ctx, double num) {
parseContext *parser = (parseContext *) ctx;
FASTCONVERT conv = dbFastPutConvertRoutine[DBF_DOUBLE][parser->dbrType];
FASTCONVERTFUNC conv = dbFastPutConvertRoutine[DBF_DOUBLE][parser->dbrType];

if (parser->elems > 0) {
conv(&num, parser->pdest, NULL);
Expand Down
4 changes: 2 additions & 2 deletions modules/database/src/ioc/db/dbEvent.c
Expand Up @@ -98,8 +98,8 @@ struct event_user {
unsigned char extra_labor; /* if set call extra labor func */
unsigned char flowCtrlMode; /* replace existing monitor */
unsigned char extraLaborBusy;
void (*init_func)();
epicsThreadId init_func_arg;
void (*init_func)(void *);
void *init_func_arg;
};

typedef struct {
Expand Down

0 comments on commit 59a9d3c

Please sign in to comment.