Browse Source

Rename clish_shell_var_t to clish_shell_var_e

Serj Kalichev 8 years ago
parent
commit
df27ec217f
2 changed files with 3 additions and 3 deletions
  1. 2 2
      clish/shell.h
  2. 1 1
      clish/shell/shell_var.c

+ 2 - 2
clish/shell.h

@@ -70,7 +70,7 @@ typedef enum {
 	SHELL_VAR_NONE, /* Nothing to escape */
 	SHELL_VAR_ACTION, /* Variable expanding for ACTION script */
 	SHELL_VAR_REGEX /* Variable expanding for regex usage */
-} clish_shell_var_t;
+} clish_shell_var_e;
 
 typedef enum {
 	SHELL_EXPAND_PARAM = 1,
@@ -131,7 +131,7 @@ void clish_shell_insert_var(clish_shell_t *instance, clish_var_t *var);
 clish_var_t *clish_shell_find_var(clish_shell_t *instance, const char *name);
 char *clish_shell_expand_var(const char *name, clish_context_t *context);
 char *clish_shell_expand_var_ex(const char *name, clish_context_t *context, clish_shell_expand_e flags);
-char *clish_shell_expand(const char *str, clish_shell_var_t vtype, clish_context_t *context);
+char *clish_shell_expand(const char *str, clish_shell_var_e vtype, clish_context_t *context);
 
 /*-----------------
  * attributes

+ 1 - 1
clish/shell/shell_var.c

@@ -378,7 +378,7 @@ static char *expand_nextsegment(const char **string, const char *escape_chars,
  * subtituting each occurance of a "${FRED}" type variable sub-string
  * with the appropriate value.
  */
-char *clish_shell_expand(const char *str, clish_shell_var_t vtype, clish_context_t *context)
+char *clish_shell_expand(const char *str, clish_shell_var_e vtype, clish_context_t *context)
 {
 	char *seg, *result = NULL;
 	const char *escape_chars = NULL;