back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/lexical_analysis.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-06-20 18:38:11 +0300
committerscratko <m@scratko.xyz>2024-06-21 01:00:37 +0300
commitef4604d9c146dbab1a653f66209103b74e6feb36 (patch)
tree62562f68a0080cd65d94a525110180dab3b99919 /lexical_analysis.h
parent8f4f87eabec13330a2b3a974975053c1e4632a11 (diff)
downloadshell-ef4604d9c146dbab1a653f66209103b74e6feb36.tar.gz
shell-ef4604d9c146dbab1a653f66209103b74e6feb36.tar.bz2
shell-ef4604d9c146dbab1a653f66209103b74e6feb36.zip
Shell-edit release
Autocomplete program and file names (tab). Moving the cursor to edit commands (left and right arrows). Deleting a character in a command (backspace).
Diffstat (limited to 'lexical_analysis.h')
-rw-r--r--lexical_analysis.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lexical_analysis.h b/lexical_analysis.h
index 3266ad7..9d7d556 100644
--- a/lexical_analysis.h
+++ b/lexical_analysis.h
@@ -2,6 +2,7 @@
#define LEXICAL_ANALYSIS_H_SENTRY
#include "shell.h"
+#include "readline.h"
int is_double_quotes_pair(struct param_type params);
int escape_double_quotes_or_backslash(int ch, struct param_type params);
@@ -26,7 +27,8 @@ int is_double_token(struct param_type *params);
int stream_redirect_tokens(struct w_queue *word_chain,
struct dynamic_array *tmp_word,
- int ch, struct param_type *params);
+ int ch, struct param_type *params,
+ struct readline_type *readline);
int double_quotes_again(int ch, struct param_type params);
@@ -37,6 +39,6 @@ int pipeline_token_processing(struct w_queue *word_chain,
int special_tokens(struct w_queue *word_chain, struct c_queue *cmdlines,
struct dynamic_array *tmp_word, int ch,
- struct param_type *params);
+ struct param_type *params, struct readline_type *readline);
#endif