diff options
author | axel <axel@liljencrantz.se> | 2006-01-24 06:40:14 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-01-24 06:40:14 +1000 |
commit | 29c488c6dc4344015a6711efdd9a618813a82249 (patch) | |
tree | b7b8f3eee14261ddf2cd7546aa2f7102f8eb4ff0 /reader.c | |
parent | 14ae10daf7de7a14335047d2cd52bcfed9352e36 (diff) |
Fixes to api documentation, added .PHONY to makefile actions, made a few private functions static
darcs-hash:20060123204014-ac50b-b9d2a10c7f00945b5d9d244cb3b8c1489fe280de.gz
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -277,8 +277,16 @@ static struct termios saved_modes; */ static pid_t original_pid; +/** + This variable is set to true by the signal handler when ^C is pressed +*/ static int interupted=0; +/** + Original terminal mode when fish was started +*/ +static struct termios old_modes; + /* Prototypes for a bunch of functions defined later on. */ @@ -287,8 +295,10 @@ static void reader_save_status(); static void reader_check_status(); static void reader_super_highlight_me_plenty( wchar_t * buff, int *color, int pos, array_list_t *error ); -static struct termios old_modes; +/** + Give up control of terminal +*/ static void term_donate() { tcgetattr(0,&old_modes); /* get the current terminal modes */ @@ -313,6 +323,9 @@ static void term_donate() } +/** + Grab control of terminal +*/ static void term_steal() { @@ -1728,6 +1741,9 @@ void reader_current_subshell_extent( wchar_t **a, wchar_t **b ) *b = end; } +/** + Get the beginning and dend of the job or process definition under the cursor +*/ static void reader_current_job_or_process_extent( wchar_t **a, wchar_t **b, int process ) @@ -1997,6 +2013,9 @@ static int contains( const wchar_t *needle, } +/** + Reset the data structures associated with the token search +*/ static void reset_token_history() { wchar_t *begin, *end; |