--- var.h 2001/11/14 11:04:12 1.6
+++ var.h 2001/11/14 11:11:01 1.7
@@ -27,49 +27,49 @@
** var.h: VAR library API
*/
-#ifndef LIB_OSSP_VAR_H
-#define LIB_OSSP_VAR_H
+#ifndef __VAR_H__
+#define __VAR_H__
#include <stdlib.h>
/* Error codes returned by the varexp library. */
typedef enum {
- VAR_CALLBACK_ERROR = -64,
- VAR_SUBMATCH_OUT_OF_RANGE = -34,
- VAR_UNKNOWN_QUOTED_PAIR_IN_REPLACE = -33,
- VAR_EMPTY_PADDING_FILL_STRING = -32,
- VAR_MISSING_PADDING_WIDTH = -31,
- VAR_MALFORMATTED_PADDING = -30,
- VAR_INCORRECT_TRANSPOSE_CLASS_SPEC = -29,
- VAR_EMPTY_TRANSPOSE_CLASS = -28,
- VAR_TRANSPOSE_CLASSES_MISMATCH = -27,
- VAR_MALFORMATTED_TRANSPOSE = -26,
- VAR_OFFSET_LOGIC_ERROR = -25,
- VAR_OFFSET_OUT_OF_BOUNDS = -24,
- VAR_RANGE_OUT_OF_BOUNDS = -23,
- VAR_INVALID_OFFSET_DELIMITER = -22,
- VAR_MISSING_START_OFFSET = -21,
- VAR_EMPTY_SEARCH_STRING = -20,
- VAR_MISSING_PARAMETER_IN_COMMAND = -19,
- VAR_INVALID_REGEX_IN_REPLACE = -18,
- VAR_UNKNOWN_REPLACE_FLAG = -17,
- VAR_MALFORMATTED_REPLACE = -16,
- VAR_UNKNOWN_COMMAND_CHAR = -14,
- VAR_INPUT_ISNT_TEXT_NOR_VARIABLE = -13,
- VAR_UNDEFINED_VARIABLE = -12,
- VAR_INCOMPLETE_VARIABLE_SPEC = -11,
- VAR_OUT_OF_MEMORY = -10,
- VAR_INVALID_CONFIGURATION = -9,
- VAR_INCORRECT_CLASS_SPEC = -8,
- VAR_INCOMPLETE_GROUPED_HEX = -7,
- VAR_INCOMPLETE_OCTAL = -6,
- VAR_INVALID_OCTAL = -5,
- VAR_OCTAL_TOO_LARGE = -4,
- VAR_INVALID_HEX = -3,
- VAR_INCOMPLETE_HEX = -2,
- VAR_INCOMPLETE_NAMED_CHARACTER = -1,
- VAR_INCOMPLETE_QUOTED_PAIR = -1,
+ VAR_ERR_CALLBACK = -64,
+ VAR_ERR_SUBMATCH_OUT_OF_RANGE = -34,
+ VAR_ERR_UNKNOWN_QUOTED_PAIR_IN_REPLACE = -33,
+ VAR_ERR_EMPTY_PADDING_FILL_STRING = -32,
+ VAR_ERR_MISSING_PADDING_WIDTH = -31,
+ VAR_ERR_MALFORMATTED_PADDING = -30,
+ VAR_ERR_INCORRECT_TRANSPOSE_CLASS_SPEC = -29,
+ VAR_ERR_EMPTY_TRANSPOSE_CLASS = -28,
+ VAR_ERR_TRANSPOSE_CLASSES_MISMATCH = -27,
+ VAR_ERR_MALFORMATTED_TRANSPOSE = -26,
+ VAR_ERR_OFFSET_LOGIC = -25,
+ VAR_ERR_OFFSET_OUT_OF_BOUNDS = -24,
+ VAR_ERR_RANGE_OUT_OF_BOUNDS = -23,
+ VAR_ERR_INVALID_OFFSET_DELIMITER = -22,
+ VAR_ERR_MISSING_START_OFFSET = -21,
+ VAR_ERR_EMPTY_SEARCH_STRING = -20,
+ VAR_ERR_MISSING_PARAMETER_IN_COMMAND = -19,
+ VAR_ERR_INVALID_REGEX_IN_REPLACE = -18,
+ VAR_ERR_UNKNOWN_REPLACE_FLAG = -17,
+ VAR_ERR_MALFORMATTED_REPLACE = -16,
+ VAR_ERR_UNKNOWN_COMMAND_CHAR = -14,
+ VAR_ERR_INPUT_ISNT_TEXT_NOR_VARIABLE = -13,
+ VAR_ERR_UNDEFINED_VARIABLE = -12,
+ VAR_ERR_INCOMPLETE_VARIABLE_SPEC = -11,
+ VAR_ERR_OUT_OF_MEMORY = -10,
+ VAR_ERR_INVALID_CONFIGURATION = -9,
+ VAR_ERR_INCORRECT_CLASS_SPEC = -8,
+ VAR_ERR_INCOMPLETE_GROUPED_HEX = -7,
+ VAR_ERR_INCOMPLETE_OCTAL = -6,
+ VAR_ERR_INVALID_OCTAL = -5,
+ VAR_ERR_OCTAL_TOO_LARGE = -4,
+ VAR_ERR_INVALID_HEX = -3,
+ VAR_ERR_INCOMPLETE_HEX = -2,
+ VAR_ERR_INCOMPLETE_NAMED_CHARACTER = -1,
+ VAR_ERR_INCOMPLETE_QUOTED_PAIR = -1,
VAR_OK = 0
} var_rc_t;
@@ -154,4 +154,5 @@
var_cb_t lookup, void *lookup_context,
const var_config_t * config, int force_expand);
-#endif /* !defined(LIB_OSSP_VAR_H) */
+#endif /* __VAR_H__ */
+
|