From 777e2d093d05f400a1a957e08e9de1fe1c1b994e Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 25 Jan 1996 21:14:42 +0000 Subject: [PATCH] moved include file from base/include --- src/dbtools/Makefile.Unix | 2 ++ src/dbtools/dbVarSub.h | 59 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 src/dbtools/dbVarSub.h diff --git a/src/dbtools/Makefile.Unix b/src/dbtools/Makefile.Unix index 0ec559fd7..c5e00cc27 100644 --- a/src/dbtools/Makefile.Unix +++ b/src/dbtools/Makefile.Unix @@ -7,6 +7,8 @@ include $(EPICS)/config/CONFIG_BASE YACCOPT = -l LEXOPT = -L +INC += dbVarSub.h + SRCS.c = ../dbVarSub.c dbLoadTemplate_lex.c dbLoadTemplate.c \ dbLoadRecords_lex.c dbLoadRecords.c \ ../BSlib.c ../PVSserver.c ../rdbapplist.c ../rdbls.o diff --git a/src/dbtools/dbVarSub.h b/src/dbtools/dbVarSub.h new file mode 100644 index 000000000..8d943494a --- /dev/null +++ b/src/dbtools/dbVarSub.h @@ -0,0 +1,59 @@ + +/************************************************************************** + * $Id$ + * Author: Jim Kowalkowski + * + * Experimental Physics and Industrial Control System (EPICS) + * + * Copyright 1991, the Regents of the University of California, + * and the University of Chicago Board of Governors. + * + * This software was produced under U.S. Government contracts: + * (W-7405-ENG-36) at the Los Alamos National Laboratory, + * and (W-31-109-ENG-38) at Argonne National Laboratory. + * + * Initial development by: + * The Controls and Automation Group (AT-8) + * Ground Test Accelerator + * Accelerator Technology Division + * Los Alamos National Laboratory + * + * Co-developed with + * The Controls and Computing Group + * Accelerator Systems Division + * Advanced Photon Source + * Argonne National Laboratory + * + * Modification Log: + * ----------------- + * .01 10-29-93 jbk initial version + * + ***********************************************************************/ + +#define VAR_LEFT_IND '(' +#define VAR_RIGHT_IND ')' +#define VAR_START_IND '$' +#ifdef vxWorks +#define VAR_MAX_SUB_SIZE 200 +#define VAR_MAX_VAR_STRING 1500 +#define VAR_MAX_VARS 100 +#else +#define VAR_MAX_SUB_SIZE 300 +#define VAR_MAX_VAR_STRING 50000 +#define VAR_MAX_VARS 700 +#endif + +struct var_sub { + char *var; + char sub[VAR_MAX_SUB_SIZE]; +}; + +struct var_tree { + int me; + struct var_tree* parent; +}; + +long dbDoSubst(char* replace, int replace_size, struct var_tree* par); +long dbInitSubst(char* parm_pattern); +void dbFreeSubst(); +