Changeset 172d852 in git for kernel/oswrapper/fereadl.c


Ignore:
Timestamp:
Jan 24, 2019, 2:32:29 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
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
Message:
Merge pull request #906 from rbehrends/prelim-thread-rewrite

Singular changes for multi-threading support.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/oswrapper/fereadl.c

    r5abb79f r172d852  
    5757#define feCTRL(C) ((C) & 0x1F)    /* <ctrl> character  */
    5858
    59 struct termios fe_saved_attributes;
    60 
    61 static BOOLEAN fe_stdout_is_tty;
    62 static BOOLEAN fe_stdin_is_tty;
    63 BOOLEAN fe_use_fgets=FALSE;
    64 static BOOLEAN fe_is_initialized=FALSE;
    65 
    66 FILE *  fe_echo; /*the output file for echoed characters*/
     59VAR struct termios fe_saved_attributes;
     60
     61STATIC_VAR BOOLEAN fe_stdout_is_tty;
     62STATIC_VAR BOOLEAN fe_stdin_is_tty;
     63VAR BOOLEAN fe_use_fgets=FALSE;
     64STATIC_VAR BOOLEAN fe_is_initialized=FALSE;
     65
     66VAR FILE *  fe_echo; /*the output file for echoed characters*/
    6767
    6868#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*/
     69VAR char ** fe_hist=NULL;
     70VAR short   fe_hist_pos;
     71VAR BOOLEAN fe_is_raw_tty=0;
     72VAR short   fe_cursor_pos; /* 0..colmax-1*/
     73VAR short   fe_cursor_line; /* 0..pagelength-1*/
    7474
    7575#ifndef HAVE_ATEXIT
     
    131131}
    132132
    133 static char termcap_buff[2048];
     133STATIC_VAR char termcap_buff[2048];
    134134static int fe_out_char(int c)
    135135{
     
    197197    {
    198198      #ifndef __CYGWIN__
    199       extern char *BC;
    200       extern char *UP;
    201       extern char PC;
     199      EXTERN_VAR char *BC;
     200      EXTERN_VAR char *UP;
     201      EXTERN_VAR char PC;
    202202      #endif
    203203      /* OB: why this ? HS: char t_buf[128] does not work with glibc2 systems */
     
    713713  char *(*fe_filename_completion_function)(); /* 3 */
    714714  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 */
    718718  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
     726VAR void * fe_rl_hdl=NULL;
    727727
    728728char *command_generator (char *text, int state);
Note: See TracChangeset for help on using the changeset viewer.