Adds new routines for converting numeric strings into the standard epicsInt8, epicsUInt8, epicsInt16, epicsUInt16, epicsInt32 and epicsUInt32 types, along with Long, ULong, Double and Float. These all provide error checking and detection of extraneous characters. The epicsScanDouble and epicsScanFloat routines originally in epicsStdlib.h are replaced by macros that call the epicsParse routine, and this also provides epicsScanLong and epicsScanULong to match. A test file is added to ensure conversions work properly and report appropriate errors. This file also checks the native strtod() routine if not used to check whether the epicsStrtod() code is required on this platform.
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
#*************************************************************************
|
|
# Copyright (c) 2010 UChicago Argonne LLC, as Operator of Argonne
|
|
# National Laboratory.
|
|
# EPICS BASE is distributed subject to a Software License Agreement found
|
|
# in file LICENSE that is included with this distribution.
|
|
#*************************************************************************
|
|
|
|
# This is a Makefile fragment, see src/libCom/Makefile.
|
|
|
|
SRC_DIRS += $(LIBCOM)/error
|
|
|
|
INC += epicsPrint.h
|
|
INC += errMdef.h
|
|
INC += errSymTbl.h
|
|
INC += errlog.h
|
|
INC += error.h
|
|
|
|
Com_SRCS += errlog.c
|
|
Com_SRCS += errSymLib.c
|
|
Com_SRCS += errSymTbl.c
|
|
|
|
# For bldErrSymTbl
|
|
#
|
|
ERR_S_FILES += $(LIBCOM)/osi/devLib.h
|
|
ERR_S_FILES += $(LIBCOM)/as/asLib.h
|
|
ERR_S_FILES += $(LIBCOM)/misc/epicsStdlib.h
|
|
ERR_S_FILES += $(SRC)/ioc/db/dbAccessDefs.h
|
|
ERR_S_FILES += $(SRC)/ioc/dbStatic/devSup.h
|
|
ERR_S_FILES += $(SRC)/ioc/dbStatic/drvSup.h
|
|
ERR_S_FILES += $(SRC)/ioc/dbStatic/recSup.h
|
|
ERR_S_FILES += $(SRC)/ioc/dbStatic/dbStaticLib.h
|
|
ERR_S_FILES += $(LIBCOM)/error/errMdef.h
|
|
ERR_S_FILES += $(SRC)/ca/legacy/pcas/generic/casdef.h
|
|
ERR_S_FILES += $(SRC)/ca/legacy/gdd/gddAppFuncTable.h
|
|
|
|
CLEANS += errSymTbl.c
|