Andrew Johnson
c91fe7b7d7
Fix issues found by Clang
...
These were int => size_t changes that shouldn't have been made
because the value of the variable can be negative.
2014-07-12 01:09:36 -05:00
Andrew Johnson
05367f1b33
Cleanup dbConvert
...
Windows warnings removed from testdbConvert by Michael
Major reformatting of dbConvert.c
2014-07-08 14:40:15 -05:00
Andrew Johnson
09b93f10f7
Fixed dbConvert-memmove problems
...
Test program crashed on Windows-x64.
Some dbConvert.c routines used sizeof([unsigned ]long)
instead of sizeof(epics[U]Int32).
2014-07-08 12:32:11 -05:00
Andrew Johnson
659916cb16
Fix Windows build - no math with void* pointers
2014-06-16 09:57:02 -05:00
Andrew Johnson
f3ff337a41
Merged Michael's dbConvert-memmove branch.
2014-06-13 15:42:36 -05:00
Michael Davidsaver
77ffc94677
out of caution use memmove instead of memcpy
2014-06-13 15:37:13 -04:00
Michael Davidsaver
ec576dd088
benchmark dbConvert
2014-06-13 15:37:12 -04:00
Michael Davidsaver
fe61d46153
add testdbConvert
2014-06-13 15:37:11 -04:00
Michael Davidsaver
1a0ba81d0d
dbConvert: optimize copy w/o convert
...
Use memcpy() where input and output memory representations
are the exactly the same (integer and floating point types).
Assumes 2s complement integer types and that signed and
unsigned types have the same representation.
2014-06-13 15:37:11 -04:00
Michael Davidsaver
0e28ff55c6
add include
2014-06-13 15:37:10 -04:00
Andrew Johnson
3cf2d9057f
Allow appended .db files to omit record type
...
This .db file syntax is now legal, provided the
named record already exists:
record("*", "named") {
field(VAL, 10)
}
2014-06-12 14:47:42 -05:00
Ralph Lange
41bd895cd5
ioc: Fix more MSVC 12.0 warnings
2014-06-04 21:18:43 +02:00
Ralph Lange
32c2775940
ioc/dbStatic: fix bug introduced in revision 12486
2014-06-04 17:07:16 +02:00
Ralph Lange
5754dc136e
src/ioc: fix numerous warnings appearing on MSVC 12.0 / Windows (64bit)
2014-06-04 15:56:51 +02:00
Ralph Lange
f8b746287e
ioc/db/test: make chfPluginTest more flexible wrt %e formatting of double
2014-06-04 11:55:40 +02:00
Ralph Lange
e7416ce144
ioc/db: fix issue with compiler differences between MSVC and GNU (enum signedness)
2014-06-04 11:53:32 +02:00
Andrew Johnson
9e1ebf8d0f
Clean up build warnings from Darwin (clang).
2014-05-30 12:36:50 -05:00
Andrew Johnson
c980613bd8
db/dbChannel: Rename dbr_final_type -> final_dbr_type
2014-05-29 12:31:47 -05:00
Ralph Lange
271e1811e3
ioc/dbStatic: make offset in field description an unsigned short, add cast to code generator
...
fixes ~2600 compiler warnings (on windows-x64)
2014-05-22 16:18:02 +02:00
Andrew Johnson
7dd5e217f6
Merged Ralph's get-cpus branch.
2014-05-19 09:44:05 -05:00
Andrew Johnson
ea1ebd0a7c
Fix some HTML character escapes.
2014-05-19 09:26:24 -05:00
Ralph Lange
722d5eeba7
libCom/osi: use epicsThreadGetCPUs implementation from thread-pool branch (posix, WIN32)
2014-05-18 17:24:38 +02:00
Ralph Lange
286bfc5215
.bzrignore: add QtCreator project files
2014-05-18 14:28:39 +02:00
Andrew Johnson
f24dafa1e0
libCom: Adjust the Posix epicsMutexOSD structure
...
Make pthread_mutex_t lock the first member of the
parent structure, so it's easy to convert between them.
2014-04-01 11:09:36 -05:00
Andrew Johnson
312fdee91d
cap5: Fix fisibility of boot_Cap5
...
Old method doesn't work any more, not sure what changed.
2014-03-18 14:18:08 -05:00
Andrew Johnson
4b18edc586
Merged changes from 3.14 branch.
...
Up to revno 12479.
2014-03-13 15:04:31 -05:00
Andrew Johnson
e63f14bc95
configure: Fix for Ben's INC_osclass issue
...
Janet developed the fix, I documented it.
2014-03-12 16:42:18 -05:00
Andrew Johnson
b1ece5d8d2
cap5: Added CA->version function
...
Documented.
2014-03-11 17:46:14 -05:00
Andrew Johnson
894771e789
docs: Update Release Notes.
2014-03-11 17:14:30 -05:00
Andrew Johnson
f5b9db9583
libCom: Fix epicsString.h comparison functions
...
The string comparison functions epicsStrCaseCmp() and
epicsStrnCaseCmp() were returning incorrect results
when the strings did not match.
These functions now match their BSD equivalents, and
have working tests to confirm their operation.
2014-03-11 17:12:41 -05:00
Janet Anderson
4e1a5eefff
Set BUILD_CLASS to HOST.
2014-03-04 09:21:35 -06:00
Janet Anderson
0ba29b2eff
Set BUILD_CLASS to HOST.
2014-03-04 09:12:25 -06:00
Janet Anderson
5ad46f557c
Added static cross builds for win32-x86 and windows-x64.
2014-03-03 16:34:06 -06:00
Janet Anderson
d90f4d7976
Added static build config files for win32-x86 and windows-x64.
2014-03-03 13:31:14 -06:00
Andrew Johnson
5bdd9ddca6
Windows: Fix static builds on MinGW
...
Xiaoqiang Wang proposed some fixes that allow static builds on
the MinGW targets to succeed. Some additional changes made to
blockingSockTest.cpp also clean that up.
2014-02-25 15:56:13 -06:00
Janet Anderson
7eba398792
If T_A not defined, define DEP and look for template files in the . dir.
2014-02-24 13:01:23 -06:00
Andrew Johnson
0dc2746d68
libCom: Added echo command to iocsh
2014-02-21 15:49:15 -06:00
Andrew Johnson
1a70f1e347
libCom: Added macro EPICS_UNUSED to compilerDependencies.h
...
Stop unnecessary warnings.
2014-02-20 18:05:42 -06:00
Andrew Johnson
3fd8d4515c
libCom/test: Finish converting blockingSockTest to epicsUnitTest
...
Don't call assert() from a test program,
it stops the tests from running if the assert fails.
2014-02-20 16:36:58 -06:00
Janet Anderson
b24d7c6da6
Allow user specified db substitution file suffix.
2014-02-20 15:03:23 -06:00
Andrew Johnson
84426ea334
templates: Unify PV name prefixes, remove "Host"
...
The difference between host IOCs and embedded ones does not
justify having a different prefix.
2014-02-18 18:32:29 -06:00
Eric Norum
52f654a5a3
templates: Make st.cmd templates safe against spaces in TOP.
2014-02-18 18:21:15 -06:00
Janet Anderson
83fa03dd40
Allow user specified substitution file suffix (from Dirk Zimoch)
2014-02-17 10:20:00 -06:00
Andrew Johnson
a591857c30
configure: Fixes to iOS build rules
...
From Tom Pelaia, these should now allow compiles for the
x86-based simulator as well as for ARM-based devices.
2014-02-17 10:12:53 -06:00
Ralph Lange
6ad30c92bb
ca/legacy/pcas: fix compiler warnings (different signedness in comparison)
2014-02-16 19:29:58 +01:00
a3354f5db9
libCom: NTP Time Provider adjusts to OS tick rate changes
...
Allow the NTP Time provider (used on VxWorks and RTEMS only)
to adapt to changes in the OS clock tick rate after the provider
has been initialized.
Changing the tick rate after iocInit() is not advisable,
other software might still misbehave if initialized before
an OS tick rate change.
2014-02-13 10:09:12 -06:00
Andrew Johnson
0b374ef8a6
doc: Add newEpicsMutex to Release Notes.
2014-02-13 09:59:10 -06:00
Andrew Johnson
6ad61aea32
Fix missing spaces in ADDR_LIST formats.
2014-02-11 17:44:14 -06:00
Andrew Johnson
e1e389a2dd
Low-memory behaviour fixes.
...
Fix unchecked buffer allocation in dbChannel.c
Replace calls to epicsStrDup() with checked malloc() for
things that happen often after iocInit.
Michael Davidsaver pointed out this issue.
2014-02-07 17:19:28 -06:00
Andrew Johnson
502366fdc3
epicsMutex C++ API: New constructor and newEpicsMutex macro
...
The new constructor accepts source file & line number.
The macro passes these in.
2014-02-07 14:13:12 -06:00