--- var.c 2002/03/01 21:59:37 1.72
+++ var.c 2002/03/01 22:02:40 1.73
@@ -2096,6 +2096,7 @@
**
*/
+/* create variable expansion context */
var_rc_t
var_create(
var_t **pvar)
@@ -2112,6 +2113,7 @@
return VAR_OK;
}
+/* destroy variable expansion context */
var_rc_t
var_destroy(
var_t *var)
@@ -2122,6 +2124,7 @@
return VAR_OK;
}
+/* configure variable expansion context */
var_rc_t
var_config(
var_t *var,
@@ -2173,6 +2176,7 @@
return VAR_OK;
}
+/* perform unescape operation on a buffer */
var_rc_t
var_unescape(
var_t *var,
@@ -2234,6 +2238,7 @@
return VAR_OK;
}
+/* perform expand operation on a buffer */
var_rc_t
var_expand(
var_t *var,
@@ -2286,6 +2291,7 @@
return VAR_RC(rc);
}
+/* var_rc_t to string mapping table */
static const char *var_errors[] = {
"everything ok", /* VAR_OK = 0 */
"incomplete named character", /* VAR_ERR_INCOMPLETE_NAMED_CHARACTER */
@@ -2332,6 +2338,7 @@
"invalid character in loop limits" /* VAR_ERR_INVALID_CHAR_IN_LOOP_LIMITS */
};
+/* transslate a return code into its corresponding descriptive text */
var_rc_t var_strerror(var_t *var, var_rc_t rc, char **str)
{
if (str == NULL)
|