zimoch and Andrew Johnson
80c708fdeb
add function attributes __malloc__ and __alloc_size__ for gcc and clang
2026-01-07 09:59:31 -06:00
zimoch and mdavidsaver
6d85a36397
remove needless pointer casts
2025-12-17 16:34:58 -08:00
zimoch and mdavidsaver
90a727c901
Fix spelling errors
...
Most errors found with:
codespell -L cach,thst,odly,aslo,parm,parms,inpu,ges,prset,pevent,ptd,pring,valu,noo,noe,ned,inout,ro,siz,froms,nd,fo,singl,sart,multy,tthe,allong,ment,inate,nodel,tring,alse,ture,thi,wille,numer
Some more manually found (its -> it's)
c++20: Do not use apostrophe (e.g. can't) in unquoted #error message
2025-12-01 19:00:04 -08:00
zimoch and GitHub
88bfd6f378
Allow hex and octal strings in dbPut and dbGet
...
Setting EPICS_DB_CONVERT_DECIMAL_ONLY to YES/yes change the dbPut() and dbGet()
string to integer conversions to the original decimal only policy.
2025-11-05 10:11:06 -06:00
zimoch and Andrew Johnson
b833f12129
fix epicsStrtod for 32 bit architectures
2025-04-23 09:25:17 -05:00
zimoch and Andrew Johnson
c75ad2673e
no longer need extern "C" { } around epicsExport macros
2025-03-19 11:17:14 -05:00
zimoch and Andrew Johnson
43e75e3901
decorate functions that do not return
2025-03-05 09:51:57 -06:00
Michael Davidsaver
7384351181
clarify cantProceed() message
2025-02-18 07:30:51 -08:00
Michael Davidsaver
1d19ba4cc2
doc and log for *MustSucceed()
...
Replace the "never returns NULL." statement which is
manifestly not true.
2025-02-07 09:09:22 -08:00
Michael Davidsaver
e4ad4becde
rationalize osdMutex
...
Avoids split allocation.
Eliminates special case free-list.
win32: eliminate pre-XP
rtems-score: eliminate non-fast
2024-12-29 16:35:26 -08:00
Michael Davidsaver
823386573f
ipAddrToAsciiGlobal::run() keep scratch buffer as local
2023-12-22 10:26:28 -08:00
Michael Davidsaver
ea8247586f
adjustToWorstCaseAlignment() simplify
...
Add some STATIC_ASSERT to check assumptions.
Only in-tree use is freeListLib to ensure chunks in
a malloc()'d block are aligned.
2023-12-22 10:26:28 -08:00
Michael Davidsaver
1595ed8860
quieting clang-tidy, non-functional changes
...
Changes to syntax which should not effect generated code
2023-08-28 14:17:00 +02:00
Sebastian Marsching and Michael Davidsaver
3a2d225682
Detect error in fprintf and return ( fixes #309 ).
...
fprintf returns a negative value in order to signal an error. We have to
detect this situation in epicsStrPrintEscaped and return a negative
when fprintf returns a negative value in order to give the calling code
a chance to detect this situation.
The old implementation (of simply accumulating the return values of
fprintf) was wrong anyway, because it would not only lead to an error in
fprintf to be lost but would also cause the returned number to be too
small (not representing the actual number of bytes written) in such a
case.
The only case where the old implementation would work correctly was when
all calls to fprintf succeeded or all these calls failed.
2023-07-22 08:27:32 -07:00
Doug Murray and Michael Davidsaver
1d056c6fe4
Add support for CA tools timeout from environment variable EPICS_CLI_TIMEOUT
2023-07-22 08:24:22 -07:00
Eva Lott and Michael Davidsaver
b878295d06
Added the new annotation EPICS_PRINTF_FMT
2023-05-01 09:03:45 -07:00
Jure Varlec and Michael Davidsaver
bdaca51d96
Update shareLib API docs, directing the reader to makeAPIheader.pl
2023-04-18 09:51:21 -05:00
Brendan Chandler and Andrew Johnson
9864f79d67
Update doxygen for ipAddrToAsciiAsynchronous
2022-07-04 20:28:43 -05:00
Brendan Chandler and Andrew Johnson
91800787ed
Doxygen support for ipAddrToAsciiAsynchronous.h
2022-07-04 20:28:43 -05:00
Brendan Chandler and Andrew Johnson
c6605b5d87
Update doxygen annotations in testMain.h
...
There were already some comments here, but they were missing a doxygen
\file declaration, so the annotations weren't shown in the doxygen
output.
Also added some formatting for the code example and definition of MAIN macro.
2022-07-04 19:29:10 -05:00
Andrew Johnson
bfd2684e58
Minor fixes to Elaine's annotations
2022-07-04 16:47:44 -05:00
Elaine Chandler and Andrew Johnson
e5b6ef9893
Fix doxygen comments to epicsString.h
2022-07-04 16:27:48 -05:00
Elaine Chandler and Andrew Johnson
6249ef08f7
Added doxygen comments to epicsString.h
2022-07-04 16:27:48 -05:00
zimoch
c5012d9f73
Make sure epicsInt8 is signed on all architectures
2021-12-17 09:42:04 +01:00
Michael Davidsaver
5ef537684e
RTEMS5: update libbsd logging
...
Show messages synchronously during boot,
then redirect through errlog before user app.
Disable syslog() during tests
2021-11-09 09:32:13 -08:00
Andrew Johnson
7d2ca62a78
Misc doxygen fixes and updates
2021-09-25 22:34:05 -05:00
Michael Davidsaver
e34b6c5c0c
Fix spelling in comments
...
Should be non-functional, except for some error message strings.
2021-08-29 07:27:50 -07:00
Andrew Johnson
67bf1a72e7
Substitute version in @since UNRELEASED annotations
2021-07-03 20:14:04 -05:00
zimoch and Michael Davidsaver
b777233efb
Support glob pattern for epicsEnvShow
...
Add epicsStrnGlobMatch with tests
2021-05-19 12:11:06 -07:00
Matthew Pearson and Michael Davidsaver
5daf4fc932
epicsStdlib.h: add doxygen comments.
2021-03-14 16:30:28 -07:00
Dominic Oram and Michael Davidsaver
1fcbdad5e9
Adds doxygen annotations to epicsType.h
2021-03-14 16:30:28 -07:00
Andrew Johnson
a9ff175cf0
Replace "UNRELEASED" in epicsString.h
2021-02-28 17:37:40 -06:00
Michael Davidsaver
745c3f552e
Com: add epicsStrSimilarity()
2021-02-08 09:22:27 -08:00
Michael Davidsaver
1e471832e9
consolidate osiFileName.h
...
Don't really need 10 files for this
2021-01-27 09:19:13 -08:00
Andrew Johnson
99852c6504
Merge JSON5 support into 7.0
2021-01-05 21:39:15 -06:00
Andrew Johnson
f775e0b8f6
Merge 3.15 branch into 7.0
...
Adjust updated test result displays for submodules
2020-12-23 16:18:21 -06:00
Michael Davidsaver
4e055610b7
epicsUnitTest: SetErrorMode()
2020-12-03 08:33:57 -08:00
Matic Pogacnik and Michael Davidsaver
5b37663bcb
Check if input string to aToIPAddr is null
2020-08-14 10:04:56 -07:00
Andrew Johnson
c1152f94fd
epicsString: Remove support for Octal character escapes \nnn
...
These changes to the functions epicsStrnRawFromEscaped() and
epicsStrnEscapedFromRaw() were prompted by the addition of JSON5
support to the dbStatic parser.
* \0 now represents a zero byte
* Unprintable characters are now escaped in hex
Tests for the octal escapes have been removed.
2020-08-09 00:33:07 -05:00
Andrew Johnson
8c9e42d15e
Fixed the response of epicsStrnRawFromEscaped() to numeric overflows
...
\x only takes 2 hex digits now, and the octal parser ignores a 3rd
digit if it would take the value over 0xff:
"\400" => ' ' then '0'
"\x088" => '\b' then '8'
With additional tests.
2020-08-09 00:33:07 -05: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
Michael Davidsaver
6188d3fdaf
update doc comments
2020-05-28 16:26:56 -07:00
zimoch and Michael Davidsaver
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
Andrew Johnson
9142eca878
Unify doxygen keywords to use '\' not '@'
2020-05-19 18:04:26 -05:00
Andrew Johnson
a09b1c8569
Applied all doxy-libcom changes to latest headers
2020-05-13 00:34:33 -05:00
Michael Davidsaver
8668cc1267
testTodoEnd() needs to lock
...
when NULLing
2020-02-14 13:28:44 +00:00
Michael Davidsaver
819b0de65b
epicsTimerTest testImpreciseTiming()
2020-02-14 09:00:17 +00:00
Freddie Akeroyd and Michael Davidsaver
c8006f2934
WIN32: Add stack trace printing on assert/error
2019-10-17 20:09:37 -07:00
Michael Davidsaver
32aeabfc61
msvc unittests disable dialog on error or assert() failure
...
Showing a dialog is really unhelpful in headless CI environments.
_CrtSetReportMode also set _CRT_WARN
Not clear what the default is.
2019-10-17 20:09:27 -07:00