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

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

diff --git a/libscpi/src/units.c b/libscpi/src/units.c
index 493c4ce..958b61e 100644
--- a/libscpi/src/units.c
+++ b/libscpi/src/units.c
@@ -122,7 +122,7 @@
  * @param value resultin value
  * @return TRUE if str matches one of specs patterns
  */
-static bool_t translateSpecialNumber(const scpi_special_number_def_t * specs, const char * str, size_t len, scpi_number_t * value) {
+static scpi_bool_t translateSpecialNumber(const scpi_special_number_def_t * specs, const char * str, size_t len, scpi_number_t * value) {
     int i;
 
     value->value = 0.0;
@@ -218,7 +218,7 @@
  * @param value preparsed numeric value
  * @return TRUE if value parameter was converted to base units
  */
-static bool_t transformNumber(scpi_t * context, const char * unit, size_t len, scpi_number_t * value) {
+static scpi_bool_t transformNumber(scpi_t * context, const char * unit, size_t len, scpi_number_t * value) {
     size_t s;
     const scpi_unit_def_t * unitDef;
     s = skipWhitespace(unit, len);
@@ -248,8 +248,8 @@
  * @param mandatory if the parameter is mandatory
  * @return 
  */
-bool_t SCPI_ParamNumber(scpi_t * context, scpi_number_t * value, bool_t mandatory) {
-    bool_t result;
+scpi_bool_t SCPI_ParamNumber(scpi_t * context, scpi_number_t * value, scpi_bool_t mandatory) {
+    scpi_bool_t result;
     const char * param;
     size_t len;
     size_t numlen;

--
Gitblit v1.9.1