This is Unofficial EPICS BASE Doxygen Site
iocshRegisterCommon.c File Reference
#include "envDefs.h"
#include "epicsVersion.h"
#include "iocsh.h"
#include "libComRegister.h"
#include "asIocRegister.h"
#include "dbAccess.h"
#include "dbIocRegister.h"
#include "dbStaticIocRegister.h"
#include "dbtoolsIocRegister.h"
#include "iocshRegisterCommon.h"
#include "miscIocRegister.h"
#include "registryIocRegister.h"
+ Include dependency graph for iocshRegisterCommon.c:

Go to the source code of this file.

Macros

#define epicsExportSharedSymbols
 
#define quote(v)   #v
 
#define str(v)   quote(v)
 

Functions

void iocshRegisterCommon (void)
 

Macro Definition Documentation

#define epicsExportSharedSymbols

Definition at line 15 of file iocshRegisterCommon.c.

#define quote (   v)    #v

Definition at line 25 of file iocshRegisterCommon.c.

#define str (   v)    quote(v)

Definition at line 26 of file iocshRegisterCommon.c.

Function Documentation

void iocshRegisterCommon ( void  )

Definition at line 28 of file iocshRegisterCommon.c.

29 {
30  const char *targetArch = envGetConfigParamPtr(&EPICS_BUILD_TARGET_ARCH);
31  iocshPpdbbase = &pdbbase;
32 
33  /* This uses a config param so the user can override it */
34  if (targetArch) {
35  epicsEnvSet("ARCH", targetArch);
36  }
37 
38  /* Base build version variables */
39  epicsEnvSet("EPICS_VERSION_MAJOR", str(EPICS_VERSION));
40  epicsEnvSet("EPICS_VERSION_MIDDLE", str(EPICS_REVISION));
41  epicsEnvSet("EPICS_VERSION_MINOR", str(EPICS_MODIFICATION));
42  epicsEnvSet("EPICS_VERSION_PATCH", str(EPICS_PATCH_LEVEL));
43  epicsEnvSet("EPICS_VERSION_SNAPSHOT", EPICS_DEV_SNAPSHOT);
44  epicsEnvSet("EPICS_VERSION_SITE", EPICS_SITE_VERSION);
45  epicsEnvSet("EPICS_VERSION_SHORT", EPICS_VERSION_SHORT);
46  epicsEnvSet("EPICS_VERSION_FULL", EPICS_VERSION_FULL);
47 
50  dbIocRegister();
52  asIocRegister();
55 }
LIBCOM_API const ENV_PARAM EPICS_BUILD_TARGET_ARCH
LIBCOM_API const char *epicsStdCall envGetConfigParamPtr(const ENV_PARAM *pParam)
Get a configuration parameter's value or default string.
Definition: envSubr.c:81
void asIocRegister(void)
#define str(v)
LIBCOM_API void epicsStdCall epicsEnvSet(const char *name, const char *value)
Set an environment variable's value.
Definition: osdEnv.c:35
struct dbBase ** iocshPpdbbase
Definition: iocsh.cpp:41
void registryIocRegister(void)
void dbtoolsIocRegister(void)
void miscIocRegister(void)
void dbStaticIocRegister(void)
void epicsStdCall libComRegister(void)