From f73b07e6aeddf13923c51a413ba69889fd593d32 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周二, 04 12月 2012 18:14:17 +0800
Subject: [PATCH] Code cleanup - remove "(void) context;"

---
 scpi/scpi_error.h |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/scpi/scpi_error.h b/scpi/scpi_error.h
index 7014424..5d8315e 100644
--- a/scpi/scpi_error.h
+++ b/scpi/scpi_error.h
@@ -37,13 +37,17 @@
 #ifndef SCPI_ERROR_H
 #define	SCPI_ERROR_H
 
+#include "scpi_types.h"
+
 #ifdef	__cplusplus
 extern "C" {
 #endif
-
-    void SCPI_ErrorClear(scpi_context_t * context);
-    int16_t SCPI_ErrorPop(scpi_context_t * context);
-    void SCPI_ErrorPush(scpi_context_t * context, int16_t err);
+    
+    void SCPI_ErrorInit(scpi_t * context);
+    void SCPI_ErrorClear(scpi_t * context);
+    int16_t SCPI_ErrorPop(scpi_t * context);
+    void SCPI_ErrorPush(scpi_t * context, int16_t err);
+    int32_t SCPI_ErrorCount(scpi_t * context);    
     const char * SCPI_ErrorTranslate(int16_t err);
 
 #define SCPI_ERROR_SYNTAX               -102
@@ -51,7 +55,11 @@
 #define SCPI_ERROR_UNDEFINED_HEADER     -113
 #define SCPI_ERROR_PARAMETER_NOT_ALLOWED        -108
 #define SCPI_ERROR_MISSING_PARAMETER    -109
+#define SCPI_ERROR_INVALID_SUFFIX       -131
+#define SCPI_ERROR_SUFFIX_NOT_ALLOWED   -138
 
+#define SCPI_ERROR_EXECUTION_ERROR      -200    
+    
 #ifdef	__cplusplus
 }
 #endif

--
Gitblit v1.9.1