From ef4604d9c146dbab1a653f66209103b74e6feb36 Mon Sep 17 00:00:00 2001 From: scratko Date: Thu, 20 Jun 2024 18:38:11 +0300 Subject: 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). --- lexical_analysis.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lexical_analysis.h') 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 -- cgit v1.2.3