From bd120c774ddc109628af82bd6db699002e7dcc1c Mon Sep 17 00:00:00 2001
From: Andrew Johnson
A new command iocshLoad has been added to iocsh which executes a +named iocsh script and can also set one or more shell macro variables at the +same time, the values of which will be forgotten immediately after the named +script finishes executing. The following example shows the syntax:
+ +++iocshLoad "serial.cmd", "DEV=/dev/ttyS0,PORT=com1,TYPE=RS485" +iocshLoad "radmon.cmd", "PORT=com1,ADDR=0" +
The libCom library now provides support for 64-bit integer types on all diff --git a/src/libCom/osi/os/WIN32/osdStrtod.h b/src/libCom/osi/os/WIN32/osdStrtod.h index b5fda31c3..83f448a35 100644 --- a/src/libCom/osi/os/WIN32/osdStrtod.h +++ b/src/libCom/osi/os/WIN32/osdStrtod.h @@ -18,6 +18,14 @@ extern "C" { */ epicsShareFunc double epicsStrtod(const char *str, char **endp); +/* + * Microsoft apparently added strto[u]ll() in VS2013 + * Older compilers have these equivalents though + */ + +#define strtoll _strtoi64 +#define strtoull _strtoui64 + #ifdef __cplusplus } #endif diff --git a/src/libCom/test/macDefExpandTest.c b/src/libCom/test/macDefExpandTest.c index 6114e92a0..8e651efbe 100644 --- a/src/libCom/test/macDefExpandTest.c +++ b/src/libCom/test/macDefExpandTest.c @@ -121,13 +121,14 @@ static void check(const char *str, const char *macros, const char *expect) MAC_HANDLE *handle; char **defines; static const char *pairs[] = { "", "environ", NULL, NULL }; + char *got; + int pass = 1; macCreateHandle(&handle, pairs); macParseDefns(NULL, macros, &defines); macInstallMacros(handle, defines); - char *got = macDefExpand(str, handle); - int pass = -1; + got = macDefExpand(str, handle); if (expect && !got) { testDiag("Got NULL, expected \"%s\".\n", expect);