Changeset 172d852 in git for kernel/oswrapper/feread.cc


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/feread.cc

    r5abb79f r172d852  
    5454char *command_generator (char *text, int state)
    5555{
    56   static int list_index, len;
    57   static idhdl h;
     56  STATIC_VAR int list_index, len;
     57  STATIC_VAR idhdl h;
    5858  const char *name;
    5959
     
    126126  #ifndef READLINE_READLINE_H_OK
    127127    /* declare everything we need explicitely and do not rely on includes */
    128     extern char * rl_readline_name;
    129     extern char *rl_line_buffer;
     128    EXTERN_VAR char * rl_readline_name;
     129    EXTERN_VAR char *rl_line_buffer;
    130130    char *rl_filename_completion_function(const char*, int);
    131131    typedef char **CPPFunction ();
    132132
    133133    extern char ** rl_completion_matches (const char*, RL_PROC);
    134     extern CPPFunction * rl_attempted_completion_function;
    135     extern FILE * rl_outstream;
     134    EXTERN_VAR CPPFunction * rl_attempted_completion_function;
     135    EXTERN_VAR FILE * rl_outstream;
    136136    extern char * readline (const char *);
    137137    extern void add_history (char *);
     
    164164  char *(*fe_filename_completion_function)(); /* 3 */
    165165  char *(* fe_readline) (char *);             /* 4 */
    166   void (*fe_add_history) (char *);            /* 5 */
    167   char ** fe_rl_readline_name;                /* 6 */
    168   char **fe_rl_line_buffer;                   /* 7 */
     166  VAR void (*fe_add_history) (char *);            /* 5 */
     167  VAR char ** fe_rl_readline_name;                /* 6 */
     168  VAR char **fe_rl_line_buffer;                   /* 7 */
    169169  char **(*fe_completion_matches)(...);          /* 8 */
    170   CPPFunction **fe_rl_attempted_completion_function; /* 9 */
    171   FILE ** fe_rl_outstream;                    /* 10 */
    172   int (*fe_write_history) ();                 /* 11 */
    173   int (*fe_history_total_bytes) ();           /* 12 */
    174   void (*fe_using_history) ();                /* 13 */
    175   int (*fe_read_history) (char *);            /* 14 */
     170  VAR CPPFunction **fe_rl_attempted_completion_function; /* 9 */
     171  VAR FILE ** fe_rl_outstream;                    /* 10 */
     172  VAR int (*fe_write_history) ();                 /* 11 */
     173  VAR int (*fe_history_total_bytes) ();           /* 12 */
     174  VAR void (*fe_using_history) ();                /* 13 */
     175  VAR int (*fe_read_history) (char *);            /* 14 */
    176176
    177177}
Note: See TracChangeset for help on using the changeset viewer.