From 323ec66d62f19673e66762fe25585746d3b2a5e0 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周三, 18 3月 2015 17:09:30 +0800 Subject: [PATCH] Add new AUTO special value, resolve #20 --- libscpi/src/units.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libscpi/src/units.c b/libscpi/src/units.c index 958b61e..a4c7592 100644 --- a/libscpi/src/units.c +++ b/libscpi/src/units.c @@ -37,7 +37,7 @@ #include <string.h> #include "scpi/parser.h" #include "scpi/units.h" -#include "utils.h" +#include "scpi/utils_private.h" #include "scpi/error.h" @@ -109,8 +109,9 @@ {/* name */ "UP", /* type */ SCPI_NUM_UP}, {/* name */ "DOWN", /* type */ SCPI_NUM_DOWN}, {/* name */ "NAN", /* type */ SCPI_NUM_NAN}, - {/* name */ "INF", /* type */ SCPI_NUM_INF}, + {/* name */ "INFinity", /* type */ SCPI_NUM_INF}, {/* name */ "NINF", /* type */ SCPI_NUM_NINF}, + {/* name */ "AUTO", /* type */ SCPI_NUM_AUTO}, SCPI_SPECIAL_NUMBERS_LIST_END, }; -- Gitblit v1.9.1