Commit Graph
103 Commits
Author SHA1 Message Date
Andrew Johnson e12269c302 Include readline.h before EPICS headers 2025-10-24 13:13:03 -05:00
Andrew Johnson 8311a5b360 Disable epicsStdio.h redefinitions
readline.h uses printf in an attribute
2025-10-24 12:22:54 -05:00
Hinko KocevarandAndrew Johnson e294bb443c 2nd attempt to fix a linter error for step 49 of "Path" 2025-06-20 16:01:44 -05:00
Jerzy JamrozandAndrew Johnson 70d5df05c7 refactor: atInit changed to afterIocRunning 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 6683d81eb9 fix: strlen instead of strnlen. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson d87ad35d37 feat: atInit presents its commands in the green colour. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson a9b66218c6 refactor: const adjustment. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 4cf7077ee2 fix: Copyright update. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 71e86e51bd fix: error C2059: syntax error at the atInitDef structure. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 43003ea18a fix: (CWE-126) CodeQL removal. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 61deabd787 fix: CMP=vs2012 (error C2143) variables to the top of a function. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 3ece668f6b refactor: strncpy to memcpy; malloc with the identifier. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson d7a02342e5 fix: CodeQL check failure.
Possibly wrong buffer size in string copy (Critical)
2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson ecd76e5b5b fix: Portability update. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 9b92a98d06 fix: ELLLIST initialization with ELLLIST_INIT. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 16fd65639a refactor: initHookRegister moved to atInitRegister; strlcpy -> strncpy
portability.
2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson f3e24ea8e3 fix: mallocMustSucceed makes this check unnecessary. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson dd09670b35 refactor: initHookRegister wihout the failure check. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 04c7cdd33a fix: Removal of unnecessary item->cmd NULL check. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 3a822ccb0c refactor: EPICS license adjustment. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 45b2be0171 refactor: Extra blank space after #include-s. 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 1468319f31 refactor: Format change
* 4 space indentation
* epicsStdoutPrintf to printf
2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 82994d600f perf: Extra safety with strlen(cmd). 2025-06-20 15:42:47 -05:00
Jerzy JamrozandAndrew Johnson 8752372af1 build: atInit module moved to libcom. 2025-06-20 15:42:47 -05:00
zimochandAndrew Johnson ea402b0f73 fix for architectures where sizeof(void*) > sizeof(long), i.e. windows-x64 2025-06-04 10:14:59 -05:00
Andrew Johnson 0f6fd8fff7 Improve 'help' self-description message 2025-06-04 09:52:44 -05:00
Andrew Johnson 42e7cbc71d Add color to the softIoc verbose output 2025-06-04 09:52:44 -05:00
Andrew Johnson 55d918e74c Add more colour to iocsh output messages
Includes some unification of error text, narrower wrap margin.
'var' output now lists the variable types.
2025-06-04 09:52:44 -05:00
Michael DavidsaverandAndrew Johnson 13d6ca598c initHookRegister() make idempotent and MustSucceed 2025-03-05 10:02:38 -06:00
JJL772andAndrew Johnson 144f9756ea Add iocshSetError in a bunch of places 2025-02-05 10:16:16 -06:00
DWandAndrew Johnson 48eed22f3b check IOCSH_STARTUP_SCRIPT before set 2025-02-05 10:03:35 -06:00
Michael Davidsaver 6ca716a77f iocsh: add more iocshSetError() 2024-06-11 13:52:03 -07:00
Andrew Johnson 331df3d7e4 UNRELEASED => 7.0.8 2023-12-14 16:42:10 -06:00
Simon Roseandmdavidsaver 6a369acd0b Add newline to help text 2023-12-05 08:05:12 -08:00
Michael Davidsaver 69d05fe5b0 Add ERROR to error messages 2023-11-26 15:25:09 -08:00
Michael Davidsaver a352865df9 print ANSI escapes to stderr
unconditionally print ANSI some escapes (to colorize errors)
to the stderr stream.
2023-11-07 15:53:22 -08:00
Michael Davidsaver 2ca70d3aa2 iocsh: keep history file 2023-10-22 17:42:36 -07:00
Jack HarperandMichael Davidsaver 49ea46ee5e iocsh: add comment to cvtArg explaining default iocsharg behaviour 2023-10-22 17:42:36 -07:00
AlexWellsandMichael Davidsaver 6dec68554c iocsh: Add underline separator between help outputs
Also tweaks the overall format of the message a bit.
Add tests for new help output format
2023-10-22 17:42:36 -07:00
Michael Davidsaver 9f660f2238 add initHookAtPrepare 2023-09-05 08:54:48 +02:00
Michael Davidsaver ca9c957e62 doc add page for initHooks.h 2023-09-05 08:53:40 +02:00
Michael Davidsaver 8488c9e891 initHookName() assert length
basic compile time consistency check.
2023-09-05 08:53:07 +02:00
Michael Davidsaver 7830345e59 move IocshRegister() to iocshInit()
No need for both global ctor and lazy init
2023-08-28 14:17:00 +02:00
AlexWellsandMichael Davidsaver 6de82bb0fd Additional help messages for iocsh
Henrique Silva <henrique.silva@ess.eu>
2023-08-28 13:24:16 +02:00
Michael Davidsaver cb97d662a7 doc 2023-05-01 10:31:01 -07:00
Michael Davidsaver 0c13e6ba6c iocsh: tab completion handle iocshArgArgv 2023-05-01 10:31:01 -07:00
Henrique SilvaandMichael Davidsaver 3e51491628 Fix generalTimeReport interest_level argument type
Setting to iocshArgInt actually makes the function verbosity to be able
to be controlled by the value
2023-03-10 10:56:58 +00:00
Michael Davidsaver f430389ee7 iocShutdown(): Always stop worker threads 2023-03-10 09:52:08 +00:00
Michael Davidsaver eea361bf5e Com: Allow runtime bypass of freeListLib
By environment or iocsh variable.
2023-03-10 09:48:27 +00:00
zimochandMichael Davidsaver 3dbc9ea264 iocsh: fix argument splitting
Since commit 60128ee9 "Com: separate iocsh argument splitting",
iocsh is broken on VxWorks (tested with version 6.9.4.12)

Any command prints the error "Unbalanced quote."

> iocsh
epics> echo
Unbalanced quote.
epics> "echo"
Unbalanced quote.
epics> "echo
Unbalanced quote.
epics> echo bla
Unbalanced quote.
epics> echo 1 2 3
Unbalanced quote.
epics> exit
Unbalanced quote.
2023-02-01 09:25:10 -08:00