Browse Source

Rename tinyrl_vt100_escape_t to tinyrl_vt100_escape_e

Serj Kalichev 3 years ago
parent
commit
de9c0be961
2 changed files with 5 additions and 5 deletions
  1. 2 2
      tinyrl/vt100.h
  2. 3 3
      tinyrl/vt100/vt100.c

+ 2 - 2
tinyrl/vt100.h

@@ -78,7 +78,7 @@ typedef enum {
 	tinyrl_vt100_DELETE, /**< Delete character on the right */
 	tinyrl_vt100_PGUP, /**< No action at the moment */
 	tinyrl_vt100_PGDOWN /**< No action at the moment */
-} tinyrl_vt100_escape_t;
+} tinyrl_vt100_escape_e;
 
 /* Return values from vt100_getchar() */
 #define VT100_EOF	-1
@@ -108,7 +108,7 @@ tinyrl_vt100__set_istream(tinyrl_vt100_t * instance, FILE * istream);
 extern FILE *tinyrl_vt100__get_istream(const tinyrl_vt100_t * instance);
 extern FILE *tinyrl_vt100__get_ostream(const tinyrl_vt100_t * instance);
 
-extern tinyrl_vt100_escape_t
+extern tinyrl_vt100_escape_e
 tinyrl_vt100_escape_decode(const tinyrl_vt100_t * instance, const char *esc_seq);
 extern void tinyrl_vt100_ding(const tinyrl_vt100_t * instance);
 extern void tinyrl_vt100_attribute_reset(const tinyrl_vt100_t * instance);

+ 3 - 3
tinyrl/vt100/vt100.c

@@ -14,7 +14,7 @@
 
 typedef struct {
 	const char* sequence;
-	tinyrl_vt100_escape_t code;
+	tinyrl_vt100_escape_e code;
 } vt100_decode_t;
 
 /* This table maps the vt100 escape codes to an enumeration */
@@ -34,10 +34,10 @@ static vt100_decode_t cmds[] = {
 };
 
 /*--------------------------------------------------------- */
-tinyrl_vt100_escape_t tinyrl_vt100_escape_decode(const tinyrl_vt100_t *this,
+tinyrl_vt100_escape_e tinyrl_vt100_escape_decode(const tinyrl_vt100_t *this,
 	const char *esc_seq)
 {
-	tinyrl_vt100_escape_t result = tinyrl_vt100_UNKNOWN;
+	tinyrl_vt100_escape_e result = tinyrl_vt100_UNKNOWN;
 	unsigned int i;
 
 	/* Decode the sequence to macros */