Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
9ef1653e73 | |||
d1d65344af | |||
a76adc31ab | |||
a2fcbc81c8 | |||
fa51c376c1 | |||
483530f053 | |||
8f34dd2c84 | |||
493dc19d8b | |||
3b64242ffd | |||
280cb7765a | |||
835e68bd76 | |||
92903361d0 | |||
fb937316aa | |||
ae6ebc4106 | |||
0f0dd31a0d | |||
189e61bbe8 | |||
d8f88c340a | |||
2ef5c47f19 | |||
cb4d490fb6 |
@ -32,9 +32,8 @@ HEADERS += StreamError.h
|
|||||||
StreamCore.o StreamCore.d: streamReferences
|
StreamCore.o StreamCore.d: streamReferences
|
||||||
|
|
||||||
# Update version string (contains __DATE__ and __TIME__)
|
# Update version string (contains __DATE__ and __TIME__)
|
||||||
# each time make runs.
|
# each time anything changes.
|
||||||
StreamVersion.o: FORCE
|
StreamVersion.o: $(filter-out StreamVersion.o stream_exportAddress.o,$(LIBOBJS))
|
||||||
FORCE:
|
|
||||||
|
|
||||||
streamReferences:
|
streamReferences:
|
||||||
$(PERL) ../src/makeref.pl Interface $(BUSSES) > $@
|
$(PERL) ../src/makeref.pl Interface $(BUSSES) > $@
|
||||||
|
@ -14,14 +14,21 @@ TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
|
|||||||
# define INSTALL_LOCATION_APP here
|
# define INSTALL_LOCATION_APP here
|
||||||
#INSTALL_LOCATION_APP=<fullpathname>
|
#INSTALL_LOCATION_APP=<fullpathname>
|
||||||
|
|
||||||
|
# For SynApps:
|
||||||
|
RELEASE=
|
||||||
|
|
||||||
EPICS_BASE=/usr/local/epics/base-3.16.1
|
EPICS_BASE=/usr/local/epics/base-7.0.1
|
||||||
ASYN=~/top-3.16/asyn4-30
|
ASYN=~/top-7/asyn4-33
|
||||||
CALC=~/top-3.16/SynApps/calc-2-8
|
CALC=~/top-7/SynApps/calc-2-8
|
||||||
PCRE=~/top-3.16/pcre-7-2
|
PCRE=~/top-7/pcre-7-2
|
||||||
PCRE_INCLUDE_SL6-x86=/usr/include
|
|
||||||
PCRE_INCLUDE_SL6-x86_64=/usr/include
|
#EPICS_BASE=/usr/local/epics/base-3.16.1
|
||||||
PCRE_INCLUDE_SL6-x86_64-clang=/usr/include
|
#ASYN=~/top-3.16/asyn4-30
|
||||||
|
#CALC=~/top-3.16/SynApps/calc-2-8
|
||||||
|
#PCRE=~/top-3.16/pcre-7-2
|
||||||
|
#PCRE_INCLUDE_SL6-x86=/usr/include
|
||||||
|
#PCRE_INCLUDE_SL6-x86_64=/usr/include
|
||||||
|
#PCRE_INCLUDE_SL6-x86_64-clang=/usr/include
|
||||||
|
|
||||||
#EPICS_BASE=/usr/local/epics/base-3.15.5
|
#EPICS_BASE=/usr/local/epics/base-3.15.5
|
||||||
#ASYN=~/top-3.15/asyn4-30
|
#ASYN=~/top-3.15/asyn4-30
|
||||||
|
@ -98,7 +98,7 @@ come in a predictible order to be parsable by <em>StreamDevice</em>.
|
|||||||
IOC Application Developer's Guide:
|
IOC Application Developer's Guide:
|
||||||
<a href="https://epics.anl.gov/base/R3-14/12-docs/AppDevGuide/"
|
<a href="https://epics.anl.gov/base/R3-14/12-docs/AppDevGuide/"
|
||||||
target="ex">R3.14.12</a>,
|
target="ex">R3.14.12</a>,
|
||||||
<a href="https://epics.anl.gov/base/R3-15/5-docs/AppDevGuide/AppDevGuide.html"
|
<a href="https://epics.anl.gov/base/R3-15/6-docs/AppDevGuide/AppDevGuide.html"
|
||||||
target="ex">R3.15.5</a>,
|
target="ex">R3.15.5</a>,
|
||||||
<a href="https://epics.anl.gov/base/R3-16/1-docs/AppDevGuide/AppDevGuide.html"
|
<a href="https://epics.anl.gov/base/R3-16/1-docs/AppDevGuide/AppDevGuide.html"
|
||||||
target="ex">R3.16.1</a>
|
target="ex">R3.16.1</a>
|
||||||
|
@ -23,7 +23,7 @@ written or read value.
|
|||||||
<dd>
|
<dd>
|
||||||
Not allowed.
|
Not allowed.
|
||||||
</dd>
|
</dd>
|
||||||
<dt>LONG format (e.g. <code>%i</code>):</dt>
|
<dt>LONG <span class=new>or ENUM</span> format (e.g. <code>%i</code>):</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>If any of <code>ZRVL</code> ... <code>FFVL</code> is set
|
<dt>If any of <code>ZRVL</code> ... <code>FFVL</code> is set
|
||||||
@ -41,17 +41,12 @@ written or read value.
|
|||||||
</dd>
|
</dd>
|
||||||
<dt>If none of <code>ZRVL</code> ... <code>FFVL</code> is set
|
<dt>If none of <code>ZRVL</code> ... <code>FFVL</code> is set
|
||||||
(all are <code>0</code>):</dt>
|
(all are <code>0</code>):</dt>
|
||||||
<dd>
|
<dd class=new>
|
||||||
<u>Output:</u> <code><i>x</i>=VAL</code><br>
|
<u>Output:</u> <code><i>x</i>=(VAL<<SHFT)&MASK</code><br>
|
||||||
<u>Input:</u> <code>VAL=<i>x</i></code><br>
|
<u>Input:</u> <code>VAL=(RBV=(<i>x</i>&MASK))>>SHFT</code><br>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</dd>
|
</dd>
|
||||||
<dt>ENUM format (e.g. <code>%{</code>):</dt>
|
|
||||||
<dd>
|
|
||||||
<u>Output:</u> <code><i>x</i>=VAL</code><br>
|
|
||||||
<u>Input:</u> <code>VAL=<i>x</i></code><br>
|
|
||||||
</dd>
|
|
||||||
<dt>STRING format (e.g. <code>%s</code>):</dt>
|
<dt>STRING format (e.g. <code>%s</code>):</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<u>Output:</u> Depending on <code>VAL</code>, one of <code>ZRST</code>
|
<u>Output:</u> Depending on <code>VAL</code>, one of <code>ZRST</code>
|
||||||
|
@ -74,7 +74,7 @@ CPPFLAGS += -DUSE_TYPED_RSET
|
|||||||
-include $(TOP)/configure/RULES
|
-include $(TOP)/configure/RULES
|
||||||
|
|
||||||
# Update version string whenever something changes
|
# Update version string whenever something changes
|
||||||
StreamVersion$(OBJ): ../*.c ../*.h ../*.cc ../CONFIG_STREAM
|
StreamVersion$(OBJ): $(filter-out StreamVersion.o,$(LIBOBJS)$(LIBRARY_OBJS))
|
||||||
|
|
||||||
# Add references to all registrars to main file to avoid
|
# Add references to all registrars to main file to avoid
|
||||||
# missing initialization.
|
# missing initialization.
|
||||||
@ -86,10 +86,7 @@ streamReferences: ../CONFIG_STREAM
|
|||||||
|
|
||||||
# create stream.dbd from all RECORDTYPES
|
# create stream.dbd from all RECORDTYPES
|
||||||
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
|
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
|
||||||
$(PERL) ../makedbd.pl $(RECORDTYPES) > $@
|
$(PERL) ../makedbd.pl $(if $(ASYN),--with-asyn) $(if $(BASE_3_14),,-3.13) $(RECORDTYPES) > $@
|
||||||
ifdef ASYN
|
|
||||||
echo "registrar(AsynDriverInterfaceRegistrar)" >> $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(LIBRARY_DEFAULT).dbd$(DEP): ../CONFIG_STREAM
|
$(LIBRARY_DEFAULT).dbd$(DEP): ../CONFIG_STREAM
|
||||||
echo $(LIBRARY_DEFAULT).dbd: $< > $@
|
echo $(LIBRARY_DEFAULT).dbd: $< > $@
|
||||||
|
@ -17,6 +17,11 @@
|
|||||||
* *
|
* *
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
|
// Make sure that vsnprintf is available
|
||||||
|
#ifndef _BSD_SOURCE
|
||||||
|
#define _BSD_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "StreamBuffer.h"
|
#include "StreamBuffer.h"
|
||||||
#include "StreamError.h"
|
#include "StreamError.h"
|
||||||
|
|
||||||
@ -24,10 +29,47 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if defined(__vxworks) || defined(vxWorks) || defined(_WIN32) || defined(__rtems__)
|
#ifdef vxWorks
|
||||||
// These systems have no vsnprintf
|
#include <version.h>
|
||||||
#define vsnprintf(p,l,f,v) vsprintf(p,f,v)
|
#ifndef _WRS_VXWORKS_MAJOR
|
||||||
#endif
|
// VxWorks 5 has no vsnprintf
|
||||||
|
// Implementation taken from EPICS 3.14
|
||||||
|
|
||||||
|
#include <vxWorks.h>
|
||||||
|
#include <fioLib.h>
|
||||||
|
|
||||||
|
struct outStr_s {
|
||||||
|
char *str;
|
||||||
|
int free;
|
||||||
|
};
|
||||||
|
|
||||||
|
static STATUS outRoutine(char *buffer, int nchars, int outarg) {
|
||||||
|
struct outStr_s *poutStr = (struct outStr_s *) outarg;
|
||||||
|
int free = poutStr->free;
|
||||||
|
int len;
|
||||||
|
|
||||||
|
if (free < 1) { /*let fioFormatV continue to count length*/
|
||||||
|
return OK;
|
||||||
|
} else if (free > 1) {
|
||||||
|
len = min(free-1, nchars);
|
||||||
|
strncpy(poutStr->str, buffer, len);
|
||||||
|
poutStr->str += len;
|
||||||
|
poutStr->free -= len;
|
||||||
|
}
|
||||||
|
/*make sure final string is null terminated*/
|
||||||
|
*poutStr->str = 0;
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
int vsnprintf(char *str, size_t size, const char *format, va_list ap) {
|
||||||
|
struct outStr_s outStr;
|
||||||
|
|
||||||
|
outStr.str = str;
|
||||||
|
outStr.free = size;
|
||||||
|
return fioFormatV(format, ap, (FUNCPTR)outRoutine, (int)&outStr);
|
||||||
|
}
|
||||||
|
#endif // ! _WRS_VXWORKS_MAJOR
|
||||||
|
#endif // vxWorks
|
||||||
|
|
||||||
#define P PRINTF_SIZE_T_PREFIX
|
#define P PRINTF_SIZE_T_PREFIX
|
||||||
|
|
||||||
@ -296,7 +338,7 @@ StreamBuffer StreamBuffer::expand(ssize_t start, ssize_t length) const
|
|||||||
{
|
{
|
||||||
c = buffer[i];
|
c = buffer[i];
|
||||||
if (c < 0x20 || c >= 0x7f)
|
if (c < 0x20 || c >= 0x7f)
|
||||||
result.print("\033[1m<%02x>\033[22m", c & 0xff);
|
result.print("\033[7m<%02x>\033[27m", c & 0xff);
|
||||||
else
|
else
|
||||||
result.append(c);
|
result.append(c);
|
||||||
}
|
}
|
||||||
@ -316,7 +358,7 @@ dump() const
|
|||||||
c = buffer[i];
|
c = buffer[i];
|
||||||
if (offs && i == offs) result.append("\033[0m");
|
if (offs && i == offs) result.append("\033[0m");
|
||||||
if (c < 0x20 || c >= 0x7f)
|
if (c < 0x20 || c >= 0x7f)
|
||||||
result.print("\033[1m<%02x>\033[22m", c & 0xff);
|
result.print("\033[7m<%02x>\033[27m", c & 0xff);
|
||||||
else
|
else
|
||||||
result.append(c);
|
result.append(c);
|
||||||
if (i == offs+len-1) result.append("\033[47m");
|
if (i == offs+len-1) result.append("\033[47m");
|
||||||
|
@ -1088,7 +1088,7 @@ getFieldAddress(const char* fieldname, StreamBuffer& address)
|
|||||||
// FIELD in this record or VAL in other record
|
// FIELD in this record or VAL in other record
|
||||||
StreamBuffer fullname;
|
StreamBuffer fullname;
|
||||||
fullname.print("%s.%s", name(), fieldname);
|
fullname.print("%s.%s", name(), fieldname);
|
||||||
if (dbNameToAddr(fullname(), &dbaddr) != OK)
|
if (dbNameToAddr(fullname(), &dbaddr) != OK || strcmp(((dbFldDes*)dbaddr.pfldDes)->name, fieldname) != 0)
|
||||||
{
|
{
|
||||||
// VAL in other record
|
// VAL in other record
|
||||||
fullname.clear().print("%s.VAL", fieldname);
|
fullname.clear().print("%s.VAL", fieldname);
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
#include "StreamError.h"
|
#include "StreamError.h"
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -39,6 +42,18 @@ FILE *StreamDebugFile = NULL;
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define localtime_r(timet,tm) localtime_s(tm,timet)
|
#define localtime_r(timet,tm) localtime_s(tm,timet)
|
||||||
|
|
||||||
|
/* Enable ANSI colors in Windows console */
|
||||||
|
static int win_console_init() {
|
||||||
|
DWORD dwMode = 0;
|
||||||
|
HANDLE hCons = GetStdHandle(STD_ERROR_HANDLE);
|
||||||
|
GetConsoleMode(hCons, &dwMode);
|
||||||
|
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
|
||||||
|
SetConsoleMode(hCons, dwMode);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
static int s = win_console_init();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* You can globally change the printTimestamp function
|
/* You can globally change the printTimestamp function
|
||||||
@ -115,4 +130,3 @@ print(const char* fmt, ...)
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define STREAM_MAJOR 2
|
#define STREAM_MAJOR 2
|
||||||
#define STREAM_MINOR 8
|
#define STREAM_MINOR 8
|
||||||
#define STREAM_PATCHLEVEL 0
|
|
||||||
|
|
||||||
#ifndef OK
|
#ifndef OK
|
||||||
#define OK 0
|
#define OK 0
|
||||||
|
@ -33,11 +33,12 @@ static long readData(dbCommon *record, format_t *format)
|
|||||||
{
|
{
|
||||||
case DBF_ULONG:
|
case DBF_ULONG:
|
||||||
case DBF_LONG:
|
case DBF_LONG:
|
||||||
|
case DBF_ENUM:
|
||||||
{
|
{
|
||||||
if (streamScanf(record, format, &val) == ERROR) return ERROR;
|
if (streamScanf(record, format, &val) == ERROR) return ERROR;
|
||||||
|
if (mbbo->mask) val &= mbbo->mask;
|
||||||
mbbo->rbv = val;
|
mbbo->rbv = val;
|
||||||
mbbo->rval = val;
|
mbbo->rval = val;
|
||||||
if (mbbo->mask) val &= mbbo->mask;
|
|
||||||
if (mbbo->shft > 0) val >>= mbbo->shft;
|
if (mbbo->shft > 0) val >>= mbbo->shft;
|
||||||
/* read VAL or RBV? Look if any value is defined */
|
/* read VAL or RBV? Look if any value is defined */
|
||||||
if (mbbo->sdef)
|
if (mbbo->sdef)
|
||||||
@ -56,17 +57,12 @@ static long readData(dbCommon *record, format_t *format)
|
|||||||
mbbo->val = (epicsEnum16)val;
|
mbbo->val = (epicsEnum16)val;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DBF_ENUM:
|
|
||||||
{
|
|
||||||
if (streamScanf(record, format, &val) == ERROR) return ERROR;
|
|
||||||
mbbo->val = (epicsEnum16)val;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case DBF_STRING:
|
case DBF_STRING:
|
||||||
{
|
{
|
||||||
char buffer[sizeof(mbbo->zrst)];
|
char buffer[sizeof(mbbo->zrst)];
|
||||||
if (streamScanfN(record, format, buffer, sizeof(buffer)) == ERROR)
|
if (streamScanfN(record, format, buffer, sizeof(buffer)) == ERROR)
|
||||||
return ERROR;
|
return ERROR;
|
||||||
|
mbbo->val = 65535; /* initalize to unknown state*/
|
||||||
for (val = 0; val < 16; val++)
|
for (val = 0; val < 16; val++)
|
||||||
{
|
{
|
||||||
if (strcmp ((&mbbo->zrst)[val], buffer) == 0)
|
if (strcmp ((&mbbo->zrst)[val], buffer) == 0)
|
||||||
@ -75,6 +71,7 @@ static long readData(dbCommon *record, format_t *format)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return ERROR;
|
return ERROR;
|
||||||
@ -82,12 +79,21 @@ static long readData(dbCommon *record, format_t *format)
|
|||||||
if (record->pact) return DO_NOT_CONVERT;
|
if (record->pact) return DO_NOT_CONVERT;
|
||||||
/* In @init handler, no processing, enforce monitor updates. */
|
/* In @init handler, no processing, enforce monitor updates. */
|
||||||
monitor_mask = recGblResetAlarms(record);
|
monitor_mask = recGblResetAlarms(record);
|
||||||
|
if (mbbo->val > 15) {
|
||||||
|
recGblSetSevr(record, STATE_ALARM, mbbo->unsv);
|
||||||
|
} else {
|
||||||
|
recGblSetSevr(record, STATE_ALARM, (&(mbbo->zrsv))[mbbo->val]);
|
||||||
|
}
|
||||||
|
mbbo->lalm = mbbo->val;
|
||||||
|
if (mbbo->val != mbbo->lalm) {
|
||||||
|
if (!recGblSetSevr(record, COS_ALARM, mbbo->cosv)) mbbo->lalm = mbbo->val;
|
||||||
|
}
|
||||||
if (mbbo->mlst != mbbo->val)
|
if (mbbo->mlst != mbbo->val)
|
||||||
{
|
{
|
||||||
monitor_mask |= (DBE_VALUE | DBE_LOG);
|
monitor_mask |= (DBE_VALUE | DBE_LOG);
|
||||||
mbbo->mlst = mbbo->val;
|
mbbo->mlst = mbbo->val;
|
||||||
}
|
}
|
||||||
if (monitor_mask){
|
if (monitor_mask) {
|
||||||
db_post_events(record, &mbbo->val, monitor_mask);
|
db_post_events(record, &mbbo->val, monitor_mask);
|
||||||
}
|
}
|
||||||
if (mbbo->oraw != mbbo->rval) {
|
if (mbbo->oraw != mbbo->rval) {
|
||||||
@ -110,39 +116,38 @@ static long writeData(dbCommon *record, format_t *format)
|
|||||||
switch (format->type)
|
switch (format->type)
|
||||||
{
|
{
|
||||||
case DBF_ULONG:
|
case DBF_ULONG:
|
||||||
|
case DBF_ENUM:
|
||||||
/* print VAL or RVAL ? */
|
/* print VAL or RVAL ? */
|
||||||
val = mbbo->val;
|
val = mbbo->val;
|
||||||
|
if (mbbo->shft > 0) val <<= mbbo->shft;
|
||||||
if (mbbo->sdef) for (i=0; i<16; i++)
|
if (mbbo->sdef) for (i=0; i<16; i++)
|
||||||
{
|
{
|
||||||
if ((&mbbo->zrvl)[i])
|
if ((&mbbo->zrvl)[i])
|
||||||
{
|
{
|
||||||
/* any values defined ? */
|
/* any values defined ? */
|
||||||
val = mbbo->rval;
|
val = mbbo->rval;
|
||||||
if (mbbo->mask) val &= mbbo->mask;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (mbbo->mask) val &= mbbo->mask;
|
||||||
return streamPrintf(record, format, val);
|
return streamPrintf(record, format, val);
|
||||||
case DBF_LONG:
|
case DBF_LONG:
|
||||||
{
|
{
|
||||||
/* print VAL or RVAL ? */
|
/* print VAL or RVAL ? */
|
||||||
val = (epicsInt16)mbbo->val;
|
val = (epicsInt16)mbbo->val;
|
||||||
|
if (mbbo->shft > 0) val <<= mbbo->shft;
|
||||||
if (mbbo->sdef) for (i=0; i<16; i++)
|
if (mbbo->sdef) for (i=0; i<16; i++)
|
||||||
{
|
{
|
||||||
if ((&mbbo->zrvl)[i])
|
if ((&mbbo->zrvl)[i])
|
||||||
{
|
{
|
||||||
/* any values defined ? */
|
/* any values defined ? */
|
||||||
val = (epicsInt32)mbbo->rval;
|
val = (epicsInt32)mbbo->rval;
|
||||||
if (mbbo->mask) val &= mbbo->mask;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (mbbo->mask) val &= mbbo->mask;
|
||||||
return streamPrintf(record, format, val);
|
return streamPrintf(record, format, val);
|
||||||
}
|
}
|
||||||
case DBF_ENUM:
|
|
||||||
{
|
|
||||||
return streamPrintf(record, format, mbbo->val);
|
|
||||||
}
|
|
||||||
case DBF_STRING:
|
case DBF_STRING:
|
||||||
{
|
{
|
||||||
if (mbbo->val >= 16) return ERROR;
|
if (mbbo->val >= 16) return ERROR;
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
if (@ARGV[0] == "-3.13") {
|
if (@ARGV[0] eq "--with-asyn") {
|
||||||
|
shift;
|
||||||
|
$asyn = 1;
|
||||||
|
}
|
||||||
|
if (@ARGV[0] eq "-3.13") {
|
||||||
shift;
|
shift;
|
||||||
} else {
|
} else {
|
||||||
print "variable(streamDebug, int)\n";
|
print "variable(streamDebug, int)\n";
|
||||||
print "variable(streamError, int)\n";
|
print "variable(streamError, int)\n";
|
||||||
print "registrar(streamRegistrar)\n";
|
print "registrar(streamRegistrar)\n";
|
||||||
|
if ($asyn) { print "registrar(AsynDriverInterfaceRegistrar)\n"; }
|
||||||
}
|
}
|
||||||
print "driver(stream)\n";
|
print "driver(stream)\n";
|
||||||
for (@ARGV) {
|
for (@ARGV) {
|
||||||
|
@ -54,8 +54,6 @@ set debug 0
|
|||||||
startioc
|
startioc
|
||||||
|
|
||||||
# Some formats give different results on 32 bit and 64 bit machines.
|
# Some formats give different results on 32 bit and 64 bit machines.
|
||||||
# This occurs when printing negative numbers with unsigned formats.
|
|
||||||
# This is normal. E.g. -1 HAS a different number of 1 bits.
|
|
||||||
# Specify the width field in the format if this is a problem.
|
# Specify the width field in the format if this is a problem.
|
||||||
|
|
||||||
put DZ:percent 1
|
put DZ:percent 1
|
||||||
@ -75,17 +73,9 @@ assure "12345 12345 012345 3039 003039 11000000111001 11000000111001 111001 !!..
|
|||||||
put DZ:lo 2147483647
|
put DZ:lo 2147483647
|
||||||
assure "2147483647 2147483647 2147483647 7fffffff FFFFFF 1111111111111111111111111111111 1111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
|
assure "2147483647 2147483647 2147483647 7fffffff FFFFFF 1111111111111111111111111111111 1111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
|
||||||
put DZ:lo -1
|
put DZ:lo -1
|
||||||
if {$tcl_platform(machine) == "x86_64"} {
|
|
||||||
assure "-1 -1 -00001 ffffffffffffffff FFFFFF 1111111111111111111111111111111111111111111111111111111111111111 1111111111111111111111111111111111111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
|
|
||||||
} else {
|
|
||||||
assure "-1 -1 -00001 ffffffff FFFFFF 11111111111111111111111111111111 11111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
|
assure "-1 -1 -00001 ffffffff FFFFFF 11111111111111111111111111111111 11111111111111111111111111111111 111111 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
|
||||||
}
|
|
||||||
put DZ:lo -1234
|
put DZ:lo -1234
|
||||||
if {$tcl_platform(machine) == "x86_64"} {
|
|
||||||
assure "-1234 -1234 -01234 fffffffffffffb2e FFFB2E 1111111111111111111111111111111111111111111111111111101100101110 1111111111111111111111111111111111111111111111111111101100101110 101110 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!..!.!!!. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!..!.!!!.\n"
|
|
||||||
} else {
|
|
||||||
assure "-1234 -1234 -01234 fffffb2e FFFB2E 11111111111111111111101100101110 11111111111111111111101100101110 101110 !!!!!!!!!!!!!!!!!!!!!.!!..!.!!!. !!!!!!!!!!!!!!!!!!!!!.!!..!.!!!.\n"
|
assure "-1234 -1234 -01234 fffffb2e FFFB2E 11111111111111111111101100101110 11111111111111111111101100101110 101110 !!!!!!!!!!!!!!!!!!!!!.!!..!.!!!. !!!!!!!!!!!!!!!!!!!!!.!!..!.!!!.\n"
|
||||||
}
|
|
||||||
put DZ:lo 255
|
put DZ:lo 255
|
||||||
assure "255 255 000255 ff 0000FF 11111111 11111111 111111 !!!!!!!! !!!!!!!!\n"
|
assure "255 255 000255 ff 0000FF 11111111 11111111 111111 !!!!!!!! !!!!!!!!\n"
|
||||||
put DZ:lo 65535
|
put DZ:lo 65535
|
||||||
|
Reference in New Issue
Block a user