Skip to content

Commit 3e83878

Browse files
committed
include "ctype.h", comment SESSION_ID_MAX_LEN, reduce COMMANDS_ALIASES enum
1 parent 61b16cc commit 3e83878

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/common.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <stdarg.h>
88
#include <termios.h>
99
#include <fcntl.h>
10+
#include <ctype.h>
1011
#include <time.h>
1112

1213
#include <sys/wait.h>
@@ -32,7 +33,7 @@
3233

3334
#define STRING(_x) #_x
3435

35-
#define SESSION_ID_MAX_LEN 16
36+
#define SESSION_ID_MAX_LEN 16 // it's represented as date ddmmyyyyHHMM
3637

3738
extern char* prompt_basename;
3839
extern history_t* history;
@@ -62,13 +63,12 @@ extern const unsigned int SPEC_SYMBOLS_NUM;
6263

6364
// commands aliases
6465
typedef enum cmds_aliases {
65-
ECHO_CMD,
66-
LS_CMD,
67-
CAT_CMD,
68-
PWD_CMD,
69-
CLEAR_CMD,
7066
EXIT_CMD,
67+
68+
// settings
7169
CHANGE_PB_CMD,
70+
71+
// information
7272
CMDS_LIST_CMD,
7373

7474
// history commands

0 commit comments

Comments
 (0)