From 008185cf06750c2d3858d707dba480305e51a70c Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 19 4月 2015 05:20:37 +0800 Subject: [PATCH] Remove generationg .so and update makefiles --- libscpi/src/parser.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c index 122b557..5940432 100644 --- a/libscpi/src/parser.c +++ b/libscpi/src/parser.c @@ -593,8 +593,10 @@ return FALSE; } + paramSkipWhitespace(context); if (locateText(context->paramlist.parameters, context->paramlist.length, value, &length)) { - paramSkipBytes(context, length); + paramSkipBytes(context, length + 2); + paramSkipWhitespace(context); if (len) { *len = length; } @@ -683,3 +685,7 @@ const char * pattern = context->paramlist.cmd->pattern; return matchCommand (pattern, cmd, strlen (cmd)); } + +scpi_bool_t SCPI_Match(const char * pattern, const char * value, size_t len) { + return matchCommand (pattern, value, len); +} -- Gitblit v1.9.1