allow hex and octal strings in dbPut
Setting EPICS_DB_CONVERT_DECIMAL_ONLY turns dbPut/dbGet string to integer conversions back the the old decimal only policy.
This commit is contained in:
@@ -33,3 +33,5 @@ LIBCOM_API float epicsConvertDoubleToFloat(double value)
|
||||
|
||||
return (float) value;
|
||||
}
|
||||
|
||||
int dbConvertBase = 0;
|
||||
|
||||
@@ -20,6 +20,12 @@ extern "C" {
|
||||
|
||||
LIBCOM_API float epicsConvertDoubleToFloat(double value);
|
||||
|
||||
/* dbConvertBase is used in dbPut and dbGet string to integer conversions.
|
||||
It defaults to 0 but is set to 10 if the EPICS_DB_CONVERT_DECIMAL_ONLY
|
||||
environment variable is set.
|
||||
*/
|
||||
LIBCOM_API extern int dbConvertBase;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user