From ef2855ef79cf97421eb32489235eeaf8612dd2d9 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周三, 25 12月 2013 04:54:12 +0800
Subject: [PATCH] Refactor bool_t to scpi_bool_t

---
 libscpi/src/parser.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c
index 058cf0b..42f0231 100644
--- a/libscpi/src/parser.c
+++ b/libscpi/src/parser.c
@@ -131,7 +131,7 @@
  * @param context
  * @result TRUE if context->paramlist is filled with correct values
  */
-static bool_t findCommandHeader(scpi_t * context, const char * header, int len) {
+static scpi_bool_t findCommandHeader(scpi_t * context, const char * header, int len) {
     int32_t i;
     const scpi_command_t * cmd;
 
@@ -362,14 +362,14 @@
  * @param val
  * @return
  */
-size_t SCPI_ResultBool(scpi_t * context, bool_t val) {
+size_t SCPI_ResultBool(scpi_t * context, scpi_bool_t val) {
     return SCPI_ResultIntBase(context, val ? 1 : 0, 10);
 }
 
 
 /* parsing parameters */
 
-bool_t SCPI_Parameter(scpi_t * context, scpi_parameter_t * parameter, bool_t mandatory) {
+scpi_bool_t SCPI_Parameter(scpi_t * context, scpi_parameter_t * parameter, scpi_bool_t mandatory) {
     token_t token;
     lex_state_t * state;
     int32_t value;
@@ -476,7 +476,7 @@
 }
 
 /* SCPI-99 7.3 Boolean Program Data */
-bool_t SCPI_ParamGetBoolVal(scpi_t * context, scpi_parameter_t * parameter) {
+scpi_bool_t SCPI_ParamGetBoolVal(scpi_t * context, scpi_parameter_t * parameter) {
     switch (parameter->type) {
         case TokDecimalNumericProgramData:
             return parameter->number.value ? 1 : 0;

--
Gitblit v1.9.1