- introduced header file dependency check

- improvements in ease drivers
- no "Counting finished" message in tas scan
This commit is contained in:
zolliker
2009-11-10 10:40:14 +00:00
parent 4aca8c9e94
commit 3021eda66f
10 changed files with 59 additions and 40 deletions

View File

@ -25,6 +25,7 @@ Markus Zolliker, March 2005
#define ILLPRIV -5
#define BADLOG -6
#define UNKPAR -7
#define PARUNDEF -8
typedef enum { NO_OP, FMT_OP, SET_OP, GET_OP, INIT_OP } ParOp;
@ -392,11 +393,10 @@ static int ParOutError(SConnection * con, ParData * o)
SCPrintf(con, eError, "ERROR: %s %s is unknown", o->name,
ctx->thisPar);
break;
/*
case BUSY:
SCPrintf(con, eError, "ERROR: %s busy", o->name);
break;
*/
case PARUNDEF:
SCPrintf(con, eError, "ERROR: %s %s is undefined",
o->name, ctx->thisPar);
break;
default:
if (ctx->returnValue < 0) {
return -1;
@ -1199,10 +1199,11 @@ void ParFloat(float *value, float defValue)
case FMT_OP:
if (*value == PAR_NAN) {
ctx->fmt = NULL;
ParOut(""); /* undefined */
/* ctx->returnValue = PARUNDEF; */
ParOut("");
} else {
if (ctx->fmt == NULL) {
ctx->fmt = "%#.5g";
ctx->fmt = "%.5g";
}
snprintf(buf, sizeof buf, ctx->fmt, *value);
ctx->fmt = NULL;
@ -1249,7 +1250,8 @@ void ParInt(int *value, int defValue)
/* fall through */
case FMT_OP:
if (*value == PAR_LNAN) {
ParOut(""); /* undefined */
/* ctx->returnValue = PARUNDEF; */
ParOut(""); /* undefined */
} else {
snprintf(buf, sizeof buf, "%d", *value);
ParOut(buf);