28 #include "libComAPI.h" long magic
magic number (used for authentication)
LIBCOM_API long epicsStdCall macParseDefns(MAC_HANDLE *handle, const char *defns, char **pairs[])
Parse macro definitions into an array of {name, value} pairs.
LIBCOM_API long epicsStdCall macGetValue(MAC_HANDLE *handle, const char *name, char *value, long capacity)
Returns the value of a macro.
LIBCOM_API long epicsStdCall macPutValue(MAC_HANDLE *handle, const char *name, const char *value)
Sets the value of a specific macro.
LIBCOM_API char *epicsStdCall macDefExpand(const char *str, MAC_HANDLE *macros)
Expands macros and environment variables in a string.
LIBCOM_API long epicsStdCall macExpandString(MAC_HANDLE *handle, const char *src, char *dest, long capacity)
Expand a string which may contain macro references.
LIBCOM_API long epicsStdCall macPushScope(MAC_HANDLE *handle)
Marks the start of a new scoping level.
LIBCOM_API char *epicsStdCall macEnvExpand(const char *str)
Expand environment variables in a string.
A doubly-linked list library.
LIBCOM_API long epicsStdCall macPopScope(MAC_HANDLE *handle)
Retrieve the last pushed scope (like stack operations)
int flags
operating mode flags
Macro substitution context, for use by macLib routines only.
int dirty
values need expanding from raw values?
ELLLIST list
macro name / value list
LIBCOM_API void epicsStdCall macSuppressWarning(MAC_HANDLE *handle, int falseTrue)
Disable or enable warning messages.
LIBCOM_API long epicsStdCall macInstallMacros(MAC_HANDLE *handle, char *pairs[])
Install set of {name, value} pairs as definitions.
LIBCOM_API long epicsStdCall macDeleteHandle(MAC_HANDLE *handle)
Marks a handle invalid, and frees all storage associated with it.
LIBCOM_API long epicsStdCall macReportMacros(MAC_HANDLE *handle)
Reports details of current definitions.
LIBCOM_API long epicsStdCall macCreateHandle(MAC_HANDLE **handle, const char *pairs[])
Creates a new macro substitution context.