Changeset 172d852 in git for kernel/oswrapper/fereadl.c
- Timestamp:
- Jan 24, 2019, 2:32:29 PM (5 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 08394f319ba420091cccad7e025c3f7cac04c373
- Parents:
- 5abb79fd2458b47b21d297f2c8b26f285ac9546f756676ef1fcf4cff300fb1607a6d21293b253245
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-01-24 14:32:29+01:00
- git-committer:
- GitHub <noreply@github.com>2019-01-24 14:32:29+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/oswrapper/fereadl.c
r5abb79f r172d852 57 57 #define feCTRL(C) ((C) & 0x1F) /* <ctrl> character */ 58 58 59 struct termios fe_saved_attributes;60 61 staticBOOLEAN fe_stdout_is_tty;62 staticBOOLEAN fe_stdin_is_tty;63 BOOLEAN fe_use_fgets=FALSE;64 staticBOOLEAN fe_is_initialized=FALSE;65 66 FILE * fe_echo; /*the output file for echoed characters*/59 VAR struct termios fe_saved_attributes; 60 61 STATIC_VAR BOOLEAN fe_stdout_is_tty; 62 STATIC_VAR BOOLEAN fe_stdin_is_tty; 63 VAR BOOLEAN fe_use_fgets=FALSE; 64 STATIC_VAR BOOLEAN fe_is_initialized=FALSE; 65 66 VAR FILE * fe_echo; /*the output file for echoed characters*/ 67 67 68 68 #define fe_hist_max 32 69 char ** fe_hist=NULL;70 short fe_hist_pos;71 BOOLEAN fe_is_raw_tty=0;72 short fe_cursor_pos; /* 0..colmax-1*/73 short fe_cursor_line; /* 0..pagelength-1*/69 VAR char ** fe_hist=NULL; 70 VAR short fe_hist_pos; 71 VAR BOOLEAN fe_is_raw_tty=0; 72 VAR short fe_cursor_pos; /* 0..colmax-1*/ 73 VAR short fe_cursor_line; /* 0..pagelength-1*/ 74 74 75 75 #ifndef HAVE_ATEXIT … … 131 131 } 132 132 133 staticchar termcap_buff[2048];133 STATIC_VAR char termcap_buff[2048]; 134 134 static int fe_out_char(int c) 135 135 { … … 197 197 { 198 198 #ifndef __CYGWIN__ 199 externchar *BC;200 externchar *UP;201 externchar PC;199 EXTERN_VAR char *BC; 200 EXTERN_VAR char *UP; 201 EXTERN_VAR char PC; 202 202 #endif 203 203 /* OB: why this ? HS: char t_buf[128] does not work with glibc2 systems */ … … 713 713 char *(*fe_filename_completion_function)(); /* 3 */ 714 714 char *(* fe_readline) (); /* 4 */ 715 void (*fe_add_history) (); /* 5 */716 char ** fe_rl_readline_name; /* 6 */717 char **fe_rl_line_buffer; /* 7 */715 VAR void (*fe_add_history) (); /* 5 */ 716 VAR char ** fe_rl_readline_name; /* 6 */ 717 VAR char **fe_rl_line_buffer; /* 7 */ 718 718 char **(*fe_completion_matches)(); /* 8 */ 719 CPPFunction **fe_rl_attempted_completion_function; /* 9 */720 FILE ** fe_rl_outstream; /* 10 */721 int (*fe_write_history) (); /* 11 */722 int (*fe_history_total_bytes) (); /* 12 */723 void (*fe_using_history) (); /* 13 */724 int (*fe_read_history) (); /* 14 */725 726 void * fe_rl_hdl=NULL;719 VAR CPPFunction **fe_rl_attempted_completion_function; /* 9 */ 720 VAR FILE ** fe_rl_outstream; /* 10 */ 721 VAR int (*fe_write_history) (); /* 11 */ 722 VAR int (*fe_history_total_bytes) (); /* 12 */ 723 VAR void (*fe_using_history) (); /* 13 */ 724 VAR int (*fe_read_history) (); /* 14 */ 725 726 VAR void * fe_rl_hdl=NULL; 727 727 728 728 char *command_generator (char *text, int state);
Note: See TracChangeset
for help on using the changeset viewer.