Commit Graph

256 Commits

Author SHA1 Message Date
Andrew Johnson 3e6597be90 Applied record-support-santity-check.patch 2015-02-20 12:13:05 -06:00
Andrew Johnson e822d8d8c4 Suppress corrupt error output from dbStatic parser
The yyerror() routine gets called twice in some cases.
Don't print the yytext or input file location the second
time through -- yytext has already been freed, and the
user doesn't need to see the location twice.

Fixes lp:1422803
2015-02-19 17:33:27 -06:00
Andrew Johnson 804aeafaa7 Fix dbVerify()'s postfix buffer size 2015-02-18 16:44:07 -06:00
Michael Davidsaver 276ea54ee4 don't destroy locked mutex 2015-02-17 11:03:06 -05:00
Michael Davidsaver 2623c2f46f dbStaticLib.c: clean pdbbase after free 2015-02-17 11:01:49 -05:00
Michael Davidsaver b996e63beb dbReadTest.c: flush errlog on exit as per lp:1419879 2015-02-17 10:57:05 -05:00
Andrew Johnson 76e967c960 dbStatic: Fixed crash loading record of unknown type
Fixed segfault when dbLoadRecords tried to load a record of a
type that was not defined in its DBD files.
2013-12-04 17:37:42 -06:00
Andrew Johnson 9ab6f89604 Clean up epicsExport.h includes
Mostly in record and device support, this commit puts
the include in the right place and moves some other
includes around to get the order right.
2013-11-20 16:21:10 -06:00
Andrew Johnson 2d3a828acd Fixed read-back of TSEL link
Reading back a .TSEL field that was originally pointed to
another record's .TIME field was exposing internal details
that didn't need to be made visible. This commit hides the
.TIME => .VAL change completely, and allows a .TSEL link
field to be saved and restored properly using autosave.
2013-09-13 11:57:18 -05:00
Andrew Johnson 01f0fdbf1e More file permission fixes. 2013-08-19 15:46:51 -05:00
Andrew Johnson 593e313fab dbStatic: More commands accept "" or "*" to mean 'all'
dbDumpRecordType, dbDumpMenu and dbDumpRecord commands improved.
2013-05-09 15:48:49 -05:00
Andrew Johnson a4edc46a5f dbStatic: Allow empty DB & DBD files
They used to cause a Syntax error with a bad context string.
2013-03-20 16:53:10 -05:00
Andrew Johnson bdbada28a8 makeBaseApp: Remove bad characters from user names
Also warns about some bad characters in record names, but only
the ones that are known to cause known bad behaviour.
2012-07-31 13:47:23 -05:00
Andrew Johnson 146520d035 dbStatic: Fix dbReportDeviceConfig() overflow.
Reported by Hinko Kocevar.
2012-05-21 15:43:03 -05:00
Andrew Johnson 3b268475d3 Fix some warnings reported by Clang. 2011-11-29 16:14:19 -06:00
Benjamin Franksen 0e41c03ff2 dbStatic: Fix windows build issue
fixes: lp:894276
2011-11-28 12:55:55 -06:00
unknown d077c8b0ff dbStatic: Added -b option to dbExpand
-b turns off monotonic checking of breakpoint tables.
2011-11-21 11:33:26 -06:00
Andrew Johnson fbda9f3280 RCS keyword updates for Bazaar
Replaced $Id$ and $Header$ keywords with $Revision-Id$
Deleted $Log$ keywords and any log messages
2010-10-05 14:27:37 -05:00
zimoch f1ba442133 Store original INP/OUT text in link in case DTYP changes later. 2010-06-22 17:35:48 -05:00
Ralph Lange 60be4921c8 Fix: Replaced C++ reserved word 'new' as variable name. 2010-06-16 15:58:00 -04:00
Andrew Johnson 831f48e719 Fix the macLib buffer overflow issue, Bug 551909.
This is mostly Eric's patches, without the valend name change.
2010-05-04 15:43:20 -05:00
Ron Sluiter 20483795e4 Remove "dbRecordHead: tempList not empty" errors.
Loading a .db file that uses an unknown record type leaves items
on the parser's tempList.  This patch empties that list when the
error is reported so future dbLoadRecords() commands can run.
2010-04-12 11:31:24 -05:00
Andrew Johnson 1a2fa1bc86 Some cleanup, mostly spacing. 2009-08-03 22:22:45 +00:00
Andrew Johnson c986597f1c Reject breaktables with slope of zero. 2009-07-22 22:58:09 +00:00
Janet B. Anderson 1c18e92da7 Removing seemingly unnecessary dependancy lines. 2009-07-10 22:00:18 +00:00
Andrew Johnson 0fb320c263 (M. Davidsaver): Use ELLLIST init macros. 2009-07-09 18:37:26 +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 5a5e2d8f74 Solve extended device support registration issue across shared libraries. 2009-06-10 20:19:32 +00:00
Andrew Johnson f5f1c51b80 make dbMalloc and dbCalloc macros 2009-04-23 21:56:22 +00:00
Andrew Johnson 31d149d8d9 Fixed 64 bit compiler warnings from Tom Palaia/MacOS. 2009-04-23 18:49:40 +00:00
Andrew Johnson b9886c7faa Cosmetic only; tabs, spaces & line-wrapping. 2009-04-15 19:28:28 +00:00
Andrew Johnson e12396c7dd epicsShareAPI fixes for Windows. 2009-04-09 17:28:59 +00:00
Andrew Johnson acb1bf9b29 Add epicsShareAPI to match header. 2009-04-09 17:20:05 +00:00
Ralph Lange 990ba62e0b Added support for new MSI and MSS link flags 2009-04-03 20:54:00 +00:00
Ralph Lange 7fccc59fe9 ANSIfication of stuff (mostly missing argument types in declarations) 2009-04-03 17:46:26 +00:00
Andrew Johnson ed4a2972d6 Long string support:
In dbStatic, split record and field search to make parsing easier.
  In dbAccess, '$' field name suffix makes field an array of DBF_CHAR.
2009-03-25 23:02:28 +00:00
Andrew Johnson 7ce49bf131 Reworked various hash tables, using the faster epicsStrHash() routines;
added per-bucket locks to the PV Directory, needed for run-time alias creation;
speed up gpHash lookups; improved the output of both Dump routines.
2009-03-19 23:00:44 +00:00
Andrew Johnson 3093d8f4f4 Reduce duplication of alarm strings. 2009-03-03 17:15:10 +00:00
Andrew Johnson e2289a30df Removed duplicate alarm strings. 2009-02-03 17:25:02 +00:00
Andrew Johnson c5fd57e5ae Make getpMessage() clear the message string rather than requiring caller to. 2009-01-28 19:57:11 +00:00
Andrew Johnson 0cabf024d7 Error message has the wrong routine name in it. 2009-01-21 20:26:52 +00:00
Andrew Johnson 9ca9a3c2e2 Added dbGetNAliases() function, to complete the aliases API. 2009-01-19 18:57:02 +00:00
Andrew Johnson e155dd411e Added dynamic parts of record alias implementation. 2009-01-16 20:50:40 +00:00
Andrew Johnson dd7cb80555 Fix memory leak. 2009-01-16 20:04:34 +00:00
Andrew Johnson a723ea357e Added record aliases. 2009-01-09 18:00:00 +00:00
Andrew Johnson b98392f50f Initialize objects fully before making them visible. 2009-01-08 23:44:11 +00:00
Andrew Johnson 49ef896a36 Cleanup, remove some unnecessary casting. 2008-08-15 18:58:18 +00:00
Andrew Johnson ae0c908493 Check rec_size *before* using it... 2008-08-13 14:56:51 +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 7aca0bff26 Cleanup, error messages mostly. 2008-08-05 22:55:43 +00:00