3b3261c877
Revert "new error code for empty arrays"
...
This reverts commit d51b5513fda5ca7c6058990396d315cfff81cbfe.
Conflicts:
modules/database/src/ioc/db/dbAccess.c
modules/database/src/ioc/db/dbDbLink.c
2020-10-30 17:07:09 -05:00
4ad98d5b4f
make db_init_event_freelists private
2020-10-30 17:07:09 -05:00
14b9ac3277
remove unnecessary check
2020-10-30 17:07:09 -05:00
275c4c7cf4
remove needless pointer access
2020-10-30 17:07:09 -05:00
5d808b7c02
new error code for empty arrays
2020-10-30 17:07:09 -05:00
afdf34b791
clean up code structure
2020-10-30 17:07:09 -05:00
8f5be5f0ad
removed unnecessary recGblSetSevr call
2020-10-30 17:07:09 -05:00
0ee36388cb
unused variable removed
2020-10-30 17:07:09 -05:00
c51c83b1d5
Revert "fix crash in PINI: use local db_field_log"
...
This reverts commit a590151accb1d187562c515a48e013244dd98a45.
Conflicts:
modules/database/src/ioc/db/dbDbLink.c
2020-10-30 17:07:09 -05:00
d0ef45acc3
initialize free lists when starting dbChannel
2020-10-30 17:07:09 -05:00
39c8d5619a
bugfix: dbGet should not crash because of empty array requests
2020-10-30 17:07:09 -05:00
e0dfb6cff8
fix crash in PINI: use local db_field_log
2020-10-30 17:07:09 -05:00
3627c38a57
don't crash when filter results in 0 elements
2020-10-30 17:07:09 -05:00
17a8dbc2d7
apply filters in dbDbGetValue
2020-10-30 17:07:09 -05:00
b1f445925d
use dbChannel in link instead of DBADDR
2020-10-30 17:07:09 -05:00
Andrew Johnson
297f04bddc
Make dbgf display something for an empty array
...
Also significantly expands on Dirk's Release Notes entries.
2020-10-30 13:37:50 -05:00
Andrew Johnson
a7bf59079f
Merge Dirk Zimoch's fix_zero_size_arrays branch
2020-10-29 17:07:35 -05:00
Andrew Johnson
14476391c0
Warn about NULL dbevEventUserFreeList
2020-10-28 23:25:02 -05:00
Andrew Johnson
223b292c33
Merge fix-wrong-order-phas fixes from 3.15 branch
2020-10-22 10:31:52 -05:00
Michael Davidsaver
8d98387245
add dynamic_registerRecordDeviceDriver()
...
Use epicsFindSymbol() to build a dynamic and idempotent equivalent
to the code generated by registerRecordDeviceDriver.pl
Also add runRegistrarOnce() to prevent registrars
from running multiple times, except from unittest code.
2020-08-22 07:50:40 -07:00
Andrew Johnson
3c99391d93
Added SPDX License ID to all EPICS-original source files
...
In some cases the license-identification header was missing,
so I added that as well. Replaced the remaining headers that
specifically identified "Versions 3.13.7 and higher".
Makefiles and the build system were deliberately excluded.
2020-08-03 11:53:01 -05:00
d1491e0860
Use JSON arrays in dbpf
2020-07-17 15:03:53 +02:00
7709239636
make sure put_array_info exists before using it
2020-07-17 09:26:55 +02:00
a9731b90f6
Don't freeze the shell when we are out of memory
2020-07-17 09:12:54 +02:00
Ralph Lange
7d2e352f6a
Merge changes from 3.15 branch into 7.0
...
- merged 3.15 branch up to bf7a1605
# Conflicts:
# modules/database/src/ioc/db/dbChannel.c
2020-07-15 11:46:45 +02:00
12cfd418d6
fix dbPut to set target to INVALID/LINK alarm when writing empty arrays into scalars
2020-07-06 15:22:54 +02:00
0a1fb25e6b
fix dbCaGetLink to fail when reading scalars from empty arrays
2020-06-29 22:23:21 +02:00
0353ede517
don't use epicsOldString
2020-06-27 16:05:54 +02:00
73b86d4921
prevent buffer overflow in dbpf
2020-06-22 13:23:26 +02:00
dec4fc30d9
bugfix in dbpf
2020-06-22 11:30:59 +02:00
Andrew Johnson
b8f0fd4cdb
Make BKPT field an epicsUInt8 for consistency
...
It was the last 'char' field in dbCommon and the Base record types.
2020-06-12 17:11:34 -05:00
3176651c71
fix dbGet to fail when reading scalars from empty arrays
2020-06-09 16:14:49 +02:00
f8035d8d5e
support arrays in dbpf
2020-06-09 10:56:58 +02:00
Michael Davidsaver
6c914d19c3
db: validate dbrType
2020-06-02 07:55:22 -07:00
Michael Davidsaver
d6f8e9038c
getLinkValue() use dbInitEntryFromAddr()
...
Called from dbGet(). Optimize hash table lookup
and bsearch of array to O(0) assignment.
2020-06-02 07:55:22 -07:00
Michael Davidsaver
4c192e7bba
Merge remote-tracking branch 'githubrl/doc-sim-mode' into 7.0
...
* githubrl/doc-sim-mode:
doc: update simulation parameters sections in dbds
doc: add description of improved simulation mode
# Conflicts:
# modules/database/src/std/rec/mbboRecord.dbd.pod
2020-05-21 11:42:24 -07:00
36a8b51d8e
CleanupWhitespace
...
removed spaces at end of line
replaced tabs with spaces
2020-05-20 14:48:09 -07:00
Michael Davidsaver
799e72b1e3
libCom: actually use libComAPI.h in libCom
2020-05-20 14:47:51 -07:00
Ralph Lange
b0cd3518e4
doc: add description of improved simulation mode
...
- improve sections in dbCommonInput/dbCommonOutput
2020-05-20 19:48:22 +02:00
Michael Davidsaver
a9934792a0
Merge remote-tracking branch 'lp-anj7/expanded-rules' into 7.0
...
* lp-anj7/expanded-rules:
Generate module version files with new RULES_EXPAND facilities
Extend RULES_EXPAND to add more features
More generator doc updates
Document <library>_API = <stem> for Makefiles
Convert epicsShareAPI to epicsStdCall in modules/ca
Update generator script
Modify rules to allow multiple API.h libraries to be built
Convert modules/ca to use LIBCA_API instead of epicsShare
Try out a representative sample of APIs from multiple libraries
Add build rules to generate and install *API.h header files
Add script to generate *API.h headers
2020-04-30 11:34:34 -07:00
Hinko Kocevar
8709fbb63f
add missing newline
2020-04-29 16:35:34 -07:00
Michael Davidsaver
ce4fb6085f
iocsh: add usage messages
2020-04-24 20:28:00 -07:00
Michael Davidsaver
f1cbe93b6c
Revert "replace most internal getCurrent() -> getMonotonic()"
...
This reverts commit 4f2228fb1d
except for some test code.
2020-04-24 15:37:48 -07:00
Andrew Johnson
85d1982890
Merge changes from 3.15 branch into 7.0
2020-04-15 21:39:54 -05:00
Andrew Johnson
0cf38bfb29
Try out a representative sample of APIs from multiple libraries
2020-03-07 01:32:36 -06:00
Gabriel Fedel
6feb1c788d
Add extern C for all c headers
...
This allow that these files could be imported to c++ correctly
2020-02-13 14:21:54 +00:00
Karl Vestin
66f2a509db
Added initialization of alarm severity on probe. This value is not used, but should be initialized regardless. This was flagged as an error by the Codacy static code analysis.
...
Codacy link: https://app.codacy.com/gh/epics-base/epics-base/file/42103575016/issues/source?bid=16430872&fileBranchId=16430872#l604
Launchpad bug: https://bugs.launchpad.net/epics-base/+bug/1862918
LP: #1862918
2020-02-13 13:22:00 +00:00
Michael Davidsaver
e6810a4224
processTarget() remove unnecessary NULL test
...
psrc and pdst will always be non-NULL
2020-02-12 11:16:33 +00:00
Michael Davidsaver
156b137af0
avoid 'struct dset'
...
doesn't work if -DUSE_TYPED_DSET
2019-11-15 21:11:27 -08:00
Michael Davidsaver
a4e5b9c528
minor
2019-11-13 10:19:16 -08:00