| | |
| | | #include "scpi/parser.h" |
| | | #include "scpi/units.h" |
| | | #include "scpi/utils_private.h" |
| | | #include "scpi/utils.h" |
| | | #include "scpi/error.h" |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | for (i = 0; specs[i].name != NULL; i++) { |
| | | if (matchPattern(specs[i].name, strlen(specs[i].name), str, len)) { |
| | | if (matchPattern(specs[i].name, strlen(specs[i].name), str, len, NULL)) { |
| | | value->type = specs[i].type; |
| | | return TRUE; |
| | | } |
| | |
| | | return min(strlen(type), len); |
| | | } |
| | | |
| | | result = doubleToStr(value->value, str, len); |
| | | result = SCPI_DoubleToStr(value->value, str, len); |
| | | |
| | | unit = translateUnitInverse(context->units, value->unit); |
| | | |