Simple C Expat Wrapper (SCEW)  1.1.7
error.h
Go to the documentation of this file.
1 
37 #ifndef ERROR_H_0305051029
38 #define ERROR_H_0305051029
39 
40 #include "export.h"
41 
42 #include "parser.h"
43 
44 #include <expat.h>
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif /* __cplusplus */
49 
64 typedef enum
65  {
73  } scew_error;
74 
85 extern SCEW_API scew_error scew_error_code (void);
86 
94 extern SCEW_API XML_Char const* scew_error_string (scew_error code);
95 
96 
112 extern SCEW_API enum XML_Error scew_error_expat_code (scew_parser *parser);
113 
123 extern SCEW_API XML_Char const* scew_error_expat_string (enum XML_Error code);
124 
132 extern SCEW_API int scew_error_expat_line (scew_parser *parser);
133 
141 extern SCEW_API int scew_error_expat_column (scew_parser *parser);
142 
143 #ifdef __cplusplus
144 }
145 #endif /* __cplusplus */
146 
147 #endif /* ERROR_H_0305051029 */
Hook returned error.
Definition: error.h:69
SCEW shared library support.
scew_error
This is the type declaration of the SCEW error.
Definition: error.h:64
Internal SCEW error.
Definition: error.h:71
struct scew_parser scew_parser
This is the type declaration of the SCEW parser.
Definition: parser.h:60
Expat parser error.
Definition: error.h:70
SCEW_API scew_error scew_error_code(void)
Returns the SCEW internal error code.
SCEW parser handling routines.
SCEW_API XML_Char const * scew_error_expat_string(enum XML_Error code)
Returns a string describing the internal Expat error for the given error code.
No more memory available.
Definition: error.h:67
No error has occured.
Definition: error.h:66
SCEW_API int scew_error_expat_line(scew_parser *parser)
Returns the current line at which the error was detected.
General Input/Output error.
Definition: error.h:68
SCEW_API int scew_error_expat_column(scew_parser *parser)
Returns the current column at which the error was detected.
end of list marker
Definition: error.h:72
SCEW_API XML_Char const * scew_error_string(scew_error code)
Returns a string describing the given internal SCEW error code.
SCEW_API enum XML_Error scew_error_expat_code(scew_parser *parser)
Returns the Expat internal error code.