-
Notifications
You must be signed in to change notification settings - Fork 0
/
features.h
50 lines (33 loc) · 857 Bytes
/
features.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef FEATURES_H
#define FEATURES_H
#include <stdlib.h>
#include <ctype.h>
#include <ncurses.h>
#include "editor_structs.h"
#include "trie.h"
#define ORANGE 3
#define RED 9
#define GREEN 47
#define YELLOW 11
#define WHITE 15
#define DBLUE 21
#define LBLUE 39
#define COMMENT 44
#define CB_X 35
#define CB_Y 50
#define TOT_SHORTCUT_KEYS 9
char** init_shortcut_keys();
int shortcut_key_indx(int *ch, int *move);
void init_colors();
TrieNode* init_keywords();
TrieNode_c* init_codebase(FILE *fd);
char *accept_codebase_key(int x, int y);
void store_key(FILE *fd, char *key, int lower, int upper);
int validate_codebase_key(char* key);
void print_cbError();
void print_cbAccept();
void print_cbSuccess(char* key);
void print_cbNotFound(char *key);
void print_ReadOnly();
void check_bracket(int *ch, char *start, char *end);
#endif