From 072c98d567c1e487c5471b4e52154da013fdd9f1 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周六, 05 12月 2015 18:47:41 +0800 Subject: [PATCH] Extend ieee488.c test coverage --- libscpi/src/parser.c | 17 +---------------- 1 files changed, 1 insertions(+), 16 deletions(-) diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c index 0552420..c4220f5 100644 --- a/libscpi/src/parser.c +++ b/libscpi/src/parser.c @@ -247,19 +247,6 @@ * @param interface */ void SCPI_Init(scpi_t * context) { - if (context->idn[0] == NULL) { - context->idn[0] = SCPI_DEFAULT_1_MANUFACTURE; - } - if (context->idn[1] == NULL) { - context->idn[1] = SCPI_DEFAULT_2_MODEL; - } - if (context->idn[2] == NULL) { - context->idn[2] = SCPI_DEFAULT_3; - } - if (context->idn[3] == NULL) { - context->idn[3] = SCPI_DEFAULT_4_REVISION; - } - context->buffer.position = 0; SCPI_ErrorInit(context); } @@ -1468,6 +1455,7 @@ case 4: case 8: result += SCPI_ResultArbitraryBlockHeader(context, count * item_size); + break; default: SCPI_ErrorPush(context, SCPI_ERROR_SYSTEM_ERROR); return 0; @@ -1508,9 +1496,6 @@ size_t i;\ for (i = 0; i < count; i++) {\ result += func(context, array[i]);\ - }\ - if (count > 0) {\ - result += count - 1; /* add length of commas */\ }\ } else {\ result = parserResultArrayBinary(context, array, count, sizeof(*array), format);\ -- Gitblit v1.9.1