Sfoglia il codice sorgente

Rename clish_nspace_visibility_t to clish_nspace_visibility_e

Serj Kalichev 9 anni fa
parent
commit
6a5611091f
6 ha cambiato i file con 10 aggiunte e 10 eliminazioni
  1. 3 3
      clish/nspace.h
  2. 2 2
      clish/nspace/nspace.c
  3. 2 2
      clish/shell/private.h
  4. 1 1
      clish/shell/shell_command.c
  5. 1 1
      clish/view.h
  6. 1 1
      clish/view/view.c

+ 3 - 3
clish/nspace.h

@@ -22,7 +22,7 @@ typedef enum {
 	CLISH_NSPACE_HELP,
 	CLISH_NSPACE_COMPLETION,
 	CLISH_NSPACE_CHELP
-} clish_nspace_visibility_t;
+} clish_nspace_visibility_e;
 
 #include <regex.h>
 
@@ -41,7 +41,7 @@ clish_nspace_t *clish_nspace_new(const char *view_name);
 void clish_nspace_delete(clish_nspace_t * instance);
 const clish_command_t *clish_nspace_find_next_completion(clish_nspace_t *
 	instance, const char *iter_cmd, const char *line,
-	clish_nspace_visibility_t field);
+	clish_nspace_visibility_e field);
 clish_command_t *clish_nspace_find_command(clish_nspace_t * instance, const char *name);
 void clish_nspace_dump(const clish_nspace_t * instance);
 clish_command_t * clish_nspace_create_prefix_cmd(clish_nspace_t * instance,
@@ -61,7 +61,7 @@ bool_t clish_nspace__get_completion(const clish_nspace_t * instance);
 bool_t clish_nspace__get_context_help(const clish_nspace_t * instance);
 bool_t clish_nspace__get_inherit(const clish_nspace_t * instance);
 bool_t clish_nspace__get_visibility(const clish_nspace_t * instance,
-	clish_nspace_visibility_t field);
+	clish_nspace_visibility_e field);
 void clish_nspace__set_prefix(clish_nspace_t * instance, const char *prefix);
 void clish_nspace__set_help(clish_nspace_t * instance, bool_t help);
 void clish_nspace__set_completion(clish_nspace_t * instance, bool_t help);

+ 2 - 2
clish/nspace/nspace.c

@@ -213,7 +213,7 @@ clish_command_t *clish_nspace_find_command(clish_nspace_t * this, const char *na
 /*--------------------------------------------------------- */
 const clish_command_t *clish_nspace_find_next_completion(clish_nspace_t * this,
 	const char *iter_cmd, const char *line,
-	clish_nspace_visibility_t field)
+	clish_nspace_visibility_e field)
 {
 	const clish_command_t *cmd = NULL, *retval = NULL;
 	clish_view_t *view = clish_nspace__get_view(this);
@@ -383,7 +383,7 @@ bool_t clish_nspace__get_inherit(const clish_nspace_t * this)
 
 /*--------------------------------------------------------- */
 bool_t clish_nspace__get_visibility(const clish_nspace_t * instance,
-	clish_nspace_visibility_t field)
+	clish_nspace_visibility_e field)
 {
 	bool_t result = BOOL_FALSE;
 

+ 2 - 2
clish/shell/private.h

@@ -22,7 +22,7 @@
  */
 typedef struct {
 	const char *last_cmd;
-	clish_nspace_visibility_t field;
+	clish_nspace_visibility_e field;
 } clish_shell_iterator_t;
 
 /* this is used to maintain a stack of file handles */
@@ -101,7 +101,7 @@ struct clish_shell_s {
  */
 void
 clish_shell_iterator_init(clish_shell_iterator_t * iter,
-	clish_nspace_visibility_t field);
+	clish_nspace_visibility_e field);
 
 /**
  * get the next command which is an extension of the specified line 

+ 1 - 1
clish/shell/shell_command.c

@@ -9,7 +9,7 @@
 
 /*-------------------------------------------------------- */
 void clish_shell_iterator_init(clish_shell_iterator_t * iter,
-	clish_nspace_visibility_t field)
+	clish_nspace_visibility_e field)
 {
 	iter->last_cmd = NULL;
 	iter->field = field;

+ 1 - 1
clish/view.h

@@ -52,7 +52,7 @@ clish_command_t *clish_view_find_command(clish_view_t * instance,
 	const char *name, bool_t inherit);
 const clish_command_t *clish_view_find_next_completion(clish_view_t * instance,
 	const char *iter_cmd, const char *line,
-	clish_nspace_visibility_t field, bool_t inherit);
+	clish_nspace_visibility_e field, bool_t inherit);
 clish_command_t *clish_view_resolve_command(clish_view_t * instance,
 	const char *line, bool_t inherit);
 clish_command_t *clish_view_resolve_prefix(clish_view_t * instance,

+ 1 - 1
clish/view/view.c

@@ -285,7 +285,7 @@ static const clish_command_t *find_next_completion(clish_view_t * this,
 /*--------------------------------------------------------- */
 const clish_command_t *clish_view_find_next_completion(clish_view_t * this,
 	const char *iter_cmd, const char *line,
-	clish_nspace_visibility_t field, bool_t inherit)
+	clish_nspace_visibility_e field, bool_t inherit)
 {
 	const clish_command_t *result, *cmd;
 	clish_nspace_t *nspace;