From a2006d9935f97a233f75942e1a3eab69f27cf4b3 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 19 4月 2015 17:59:23 +0800 Subject: [PATCH] Update c++ example, make special numbers more correct --- libscpi/src/debug.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libscpi/src/debug.c b/libscpi/src/debug.c index bec35e0..15c050c 100644 --- a/libscpi/src/debug.c +++ b/libscpi/src/debug.c @@ -42,12 +42,12 @@ * @param context * @return */ -bool_t SCPI_DebugCommand(scpi_t * context) { +scpi_bool_t SCPI_DebugCommand(scpi_t * context) { size_t res; - printf("**DEBUG: %s (\"", context->paramlist.cmd->pattern); - res = fwrite(context->paramlist.parameters, 1, context->paramlist.length, stdout); + printf("**DEBUG: %s (\"", context->param_list.cmd->pattern); + res = fwrite(context->param_list.lex_state.buffer, 1, context->param_list.lex_state.len, stdout); (void)res; - printf("\" - %ld\r\n", (uint32_t)context->paramlist.length); + printf("\" - %lu\r\n", (unsigned long)context->param_list.lex_state.len); return TRUE; } -- Gitblit v1.9.1