Commit Graph

409 Commits

Author SHA1 Message Date
Dirk Zimoch c4d0f1eb44 fixed simulation mode, buffer allocation during initialization, corruption of NELM 2010-05-27 06:22:15 -07:00
Andrew Johnson 32e34f536c Move STATIC_ASSERT statements.
This macro can only be used where a variable declaration is allowed,
the vxWorks compiler objects otherwise.
2010-04-20 17:13:54 -05:00
Michael Davidsaver e8f56d08b8 Ensure the string VAL and OVAL have the same storage length
There won't be any problems with overflow as long as dbPut
behaves correctly when setting VAL.
2010-04-06 14:48:48 -04:00
Michael Davidsaver b63e381fbe rec: update last/prev./old value fields after dset init_record
This must be done if init_record is allowed to change values
or monitors may not be posted when values change.
2010-04-05 14:49:18 -04:00
Ralph Lange c6cf442abd Fixed crash when ALG (algorithm) was changed to Average at runtime. (Fixes #552803) 2010-04-02 17:26:17 -04:00
Andrew Johnson e56d4c2337 The monitor last value field needs to be initialized.
Device support init_record is allowed to set VAL to 1.
If uninitialized then mlst is 0.
During the first process() this will miss a monitor if VAL is changed to 0,
and cause a spurious monitor if VAL remains 1.

- mdavidsaver
2010-03-24 13:21:38 -05:00
Andrew Johnson a782ed68b9 Fix UDF processing so we respect IVOA. 2010-03-01 13:19:43 -06:00
Andrew Johnson 4bad7073e1 J field should not be PP, to match others. 2010-03-01 13:17:11 -06:00
Andrew Johnson f17ac39f29 Disable divide by zero warnings on MSVC when generating NAN and INF.
Use those values rather than calculating them independently.
2009-08-25 18:19:49 +00:00
Andrew Johnson ce778819bd Update comment; can't deprecate a published API! 2009-07-28 21:11:02 +00:00
Andrew Johnson d6fcbe14ab Cleaned up dbDefs.h and errMdef.h
Added various #include lines needed in other sources.
2009-07-09 15:27:43 +00:00
Andrew Johnson a318ace551 Replaced YES and NO macros with their menuYesNo or menuSimm equivalents. 2009-07-08 18:14:11 +00:00
Andrew Johnson cb0f8d5c72 Make all enum string fields the maximum size that CA can transport. 2009-06-08 19:55:49 +00:00
Andrew Johnson f0652aa1b6 allocations MustSucceed 2009-04-23 22:19:46 +00:00
Andrew Johnson 31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Andrew Johnson e01b6bd435 Calculate monitor events properly. 2009-04-14 20:04:05 +00:00
Andrew Johnson c70c3beca2 Removed unused INAP menu definition. 2009-04-04 23:01:23 +00:00
Andrew Johnson f5c64db59f Waveform record Post on Change using hash. 2009-04-03 21:05:40 +00:00
Ralph Lange 7fccc59fe9 ANSIfication of stuff (mostly missing argument types in declarations) 2009-04-03 17:46:26 +00:00
Ralph Lange c0052ea44f Changed get_alarm_double() behaviour in analog records to return epicsNAN for limits with NO_ALARM severity 2009-04-03 14:40:13 +00:00
Ralph Lange 5c8a51b6f6 Rename pxxx -> prec in all xxxRecord.c 2009-04-02 21:41:45 +00:00
Ralph Lange b1556bd871 New DBE_PROPERTY event type and support in catools and mbbi/mbbo records 2009-04-02 15:51:30 +00:00
Andrew Johnson 99ff6d9a02 Removed obselete get_value routine. 2009-03-19 23:05:58 +00:00
Andrew Johnson 100318d1b3 Remove unnecessary casts. 2009-03-10 19:20:38 +00:00
Andrew Johnson a213ccf624 Deleted VERS field (it's already an attribute). 2009-02-03 16:28:10 +00:00
Andrew Johnson 99053303fb Fixed fetch_values() bug. 2009-01-14 23:42:20 +00:00
Andrew Johnson 3d093bd8f7 Fixed precision handling, recGblGetPrec doesn't always set *precision. 2008-08-15 21:43:52 +00:00
Andrew Johnson ee634be0e5 Added the aSub record type, derived from Andy Foster's genSub. 2008-08-14 20:41:05 +00:00
Andrew Johnson 8b7059491b Prevent double processing after re-enabling from an empty SNAM. 2008-08-08 19:19:55 +00:00
Andrew Johnson 4290277dc7 Replaced sizeofTypes[] with dbValueSize(). 2008-08-06 22:00:39 +00:00
Andrew Johnson 1d37abdaf4 Cleanup (indentation, spacing); replaced sizeofTypes[] with dbValueSize(). 2008-08-06 21:58:38 +00:00
Janet B. Anderson ef1cd5faf5 RCS files now used for all cygwin and mingw builds. 2008-08-06 16:44:16 +00:00
Andrew Johnson ab7011a214 Fixes for IOCs on 64-bit platforms.
empty string to char conversions now produce 0, not '0'.
Record types ANSIfied by John Hammonds.
2008-07-01 16:49:08 +00:00
Andrew Johnson 3a36b75c01 No special_linconv method needed in DSET, reduce number to 5.
Fixes Mantis #314.
2008-06-13 15:20:40 +00:00
Andrew Johnson 0895228a57 IVOA "Don't drive" bug fix, from Peter Mueller. 2008-04-29 17:51:34 +00:00
Andrew Johnson 8b5ef8d497 Fixed pointer cast. 2008-04-28 15:55:45 +00:00
Andrew Johnson 38f17b720e Allow subroutine changes at runtime, from Kazimierz Gofron (Codeathon)
Also did some major cleanup.
2008-04-24 16:30:37 +00:00
Andrew Johnson 671b5334ea Cleanup, ANSIfied. 2007-11-20 16:47:12 +00:00
Andrew Johnson 3edc4b5c18 Fixed error behaviour.
ANSIfied, major cleanup.
2007-11-20 16:44:21 +00:00
Andrew Johnson d7dda85ee0 Improved fix after comments from Dirk Zimoch. 2007-07-30 16:18:04 +00:00
Andrew Johnson 6039647e13 Handle SELN >= SEL_MAX without crashing (Mantis #295) 2007-07-20 19:23:50 +00:00
Andrew Johnson bc01dca042 Fixed Cdefs to be output before the record structure.
Moved record include files from dbStaticLib into dbCommon.dbd.
Added Cdefs that include postfix.h to the calc*.dbd files, removed from .c.
2007-03-13 16:39:53 +00:00
Andrew Johnson 8a4e442705 menuSimmRAW fixes. 2006-12-07 23:32:48 +00:00
Andrew Johnson eca624545b Added epicsMath.h include. 2006-11-02 16:10:49 +00:00
Andrew Johnson e98b305246 Fix up calc and calcout record and associated code to use the new features
of postfix() and calcPerform().
2006-10-03 20:22:23 +00:00
Andrew Johnson 26938a98ed Indentation and code style changes only. 2006-07-13 20:01:33 +00:00
Andrew Johnson a5b4cb0766 PACT must be set during FLNK. 2006-02-15 22:25:24 +00:00
Janet B. Anderson 147e21b71f Changed EPICS_UPDATE_LEVEL to EPICS_PATCH_LEVEL. 2005-12-19 21:42:40 +00:00
Andrew Johnson 518ab0c64c Simulation mode patches from Peter Denison (Diamond) 2005-11-15 23:35:34 +00:00
Andrew Johnson f0d4c3505f Don't cast to int to subtract pointers. 2005-11-15 22:02:44 +00:00