I have used type long for the number of elements in some of the public
CA interfaces which can't be changed. I have been handling this problem
(hopefully thoroughly) by checking the range prior to converting to an
architecture independent type before shipping the element count over the
network.
Jeff
> -----Original Message-----
> From: Marty Kraimer [mailto:[email protected]]
> Sent: Thursday, December 05, 2002 9:20 AM
> To: TYLER, Paul
> Cc: 'Jeff Hill'; 'Andrew Johnson'; 'Janet Anderson'; core-
> [email protected]; Marty Kraimer
> Subject: Re: RISC_pad in dbr_time_double
>
> In the following I have only looked at changes for long,
> unsigned long, and enums.
>
> I have modified the following files (all in <base>/src)
>
> ca/db_access.h
>
> Just added some ifdefs so that db_access.c can get it's
> structure definitions
> from this file.
>
> libCom/cvtFast/cvtFast.*
>
> long => epicsInt32
> unsigned long=> epicsUInt32
>
> dbStatic/dbToRecordtypeH.c
>
> In generated include files the following field definitions are
> changed
>
> long => epicsInt32
> unsigned long=> epicsUInt32
> unsigned shot=> epicsEnum16 (for DBF_ENUM,DBF_MENU,DBF_DEVICE)
>
> db/db_access.c
>
> Get structure defs from db_access.h
>
> short => dbr_short_t OR dbr_enum_t as necessary
> float => dbr_float_t
> char => dbr_char_t
> long => dbr_long_t
> double => dbr_double_t
>
> dbAccessDefs.h
>
> replace elementary types with epics types, e.g.
> long=>epicsInt32
>
>
> dbConvert.c and dbFastLinkConv.c
>
> replaced all enums from unsigned short to epicsEnum16
> rplaced long by epicsInt32
> replaced unsigned long by epicsUInt32
>
>
> I am attaching a complete list of the diffs.
>
> Questions
>
> 1) What about all the other defs like float=>epicsFloat32 ?
> 2) What about all the other uses of long in base?
> 3) What about long for no_elements in dbAddr.h
> 4) Have I already gone too far?
>
> Marty
>
>
- Replies:
- Re: RISC_pad in dbr_time_double Marty Kraimer
- References:
- Re: RISC_pad in dbr_time_double Marty Kraimer
- Navigate by Date:
- Prev:
RE: RISC_pad in dbr_time_double Jeff Hill
- Next:
RE: Epics base3.14.beta2 for Tornado2.2 Jeff Hill
- Index:
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: RISC_pad in dbr_time_double Marty Kraimer
- Next:
Re: RISC_pad in dbr_time_double Marty Kraimer
- Index:
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|