Browse Source

Rename clish_shell_state_t to clish_shell_state_e

Serj Kalichev 8 years ago
parent
commit
b683ac259c
3 changed files with 6 additions and 6 deletions
  1. 3 3
      clish/shell.h
  2. 1 1
      clish/shell/private.h
  3. 2 2
      clish/shell/shell_parse.c

+ 3 - 3
clish/shell.h

@@ -64,7 +64,7 @@ typedef enum {
 	SHELL_STATE_HELPING = 7,
 	SHELL_STATE_EOF = 8, /* EOF of input stream */
 	SHELL_STATE_CLOSING = 9
-} clish_shell_state_t;
+} clish_shell_state_e;
 
 typedef enum {
 	SHELL_VAR_NONE, /* Nothing to escape */
@@ -158,9 +158,9 @@ char * clish_shell__get_lockfile(clish_shell_t * instance);
 int clish_shell__set_socket(clish_shell_t * instance, const char * path);
 int clish_shell_load_scheme(clish_shell_t * instance, const char * xml_path, const char *xslt_path);
 int clish_shell_loop(clish_shell_t * instance);
-clish_shell_state_t clish_shell__get_state(const clish_shell_t * instance);
+clish_shell_state_e clish_shell__get_state(const clish_shell_t * instance);
 void clish_shell__set_state(clish_shell_t * instance,
-	clish_shell_state_t state);
+	clish_shell_state_e state);
 void clish_shell__set_startup_view(clish_shell_t * instance, const char * viewname);
 void clish_shell__set_startup_viewid(clish_shell_t * instance, const char * viewid);
 void clish_shell__set_default_shebang(clish_shell_t * instance, const char * shebang);

+ 1 - 1
clish/shell/private.h

@@ -68,7 +68,7 @@ struct clish_shell_s {
 	unsigned int wdog_timeout; /* Watchdog timeout */
 	bool_t wdog_active; /* If watchdog is active now */
 
-	clish_shell_state_t state; /* The current state */
+	clish_shell_state_e state; /* The current state */
 	char *overview; /* Overview text for this shell */
 	tinyrl_t *tinyrl; /* Tiny readline instance */
 	clish_shell_file_t *current_file; /* file currently in use for input */

+ 2 - 2
clish/shell/shell_parse.c

@@ -317,14 +317,14 @@ clish_pargv_status_t clish_shell_parse_pargv(clish_pargv_t *pargv,
 }
 
 /*----------------------------------------------------------- */
-clish_shell_state_t clish_shell__get_state(const clish_shell_t *this)
+clish_shell_state_e clish_shell__get_state(const clish_shell_t *this)
 {
 	return this->state;
 }
 
 /*----------------------------------------------------------- */
 void clish_shell__set_state(clish_shell_t *this,
-	clish_shell_state_t state)
+	clish_shell_state_e state)
 {
 	assert(this);
 	this->state = state;