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:
2025-07-15 10:05:55 +02:00
parent 60277e0980
commit 46f046c751
6 changed files with 59 additions and 27 deletions
+2
View File
@@ -33,3 +33,5 @@ LIBCOM_API float epicsConvertDoubleToFloat(double value)
return (float) value;
}
int dbConvertBase = 0;
+6
View File
@@ -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