Changeset c19e54 in git for kernel/feread.cc
- Timestamp:
- May 21, 2005, 11:16:24 AM (19 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- a0b1568e1be8abab8cc543d4a6017afa1a89b312
- Parents:
- dc94f99fe9be4faac2bce7b96ecb0753b1f20b07
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/feread.cc
rdc94f9 rc19e54 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feread.cc,v 1. 5 2005-04-30 16:38:26Singular Exp $ */4 /* $Id: feread.cc,v 1.6 2005-05-21 09:16:24 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: input from ttys, simulating fgets … … 95 95 /* ===================================================================*/ 96 96 /* some procedure are shared with "dynamic readline" */ 97 #if (defined(HAVE_READLINE) || defined(HAVE_LIBREADLINE) || defined(HAVE_DYN_RL)) && !defined(HAVE_FEREAD)97 #if (defined(HAVE_READLINE) || defined(HAVE_LIBREADLINE) || defined(HAVE_DYN_RL)) 98 98 #include <unistd.h> 99 99 #include <stdio.h> … … 108 108 extern "C" { 109 109 typedef char * (*RL_PROC)(const char*,int); 110 #ifdef READLINE_READLINE_H_OK111 #include <readline/readline.h>112 #ifdef HAVE_READLINE_HISTORY_H113 #include <readline/history.h>114 110 #ifdef READLINE_READLINE_H_OK 111 #include <readline/readline.h> 112 #ifdef HAVE_READLINE_HISTORY_H 113 #include <readline/history.h> 114 #endif 115 115 #endif 116 #endif 117 #ifdef RL_VERSION_MAJOR 118 #if (RL_VERSION_MAJOR >= 4) 119 #define USE_READLINE4 120 #endif 121 #endif 122 #ifndef USE_READLINE4 123 #define rl_filename_completion_function filename_completion_function 124 #define rl_completion_matches completion_matches 125 #endif 126 #ifndef READLINE_READLINE_H_OK 127 /* declare everything we need explicitely and do not rely on includes */ 128 extern char * rl_readline_name; 129 extern char *rl_line_buffer; 130 char *rl_filename_completion_function(const char*, int); 131 typedef char **CPPFunction (); 132 133 extern char ** rl_completion_matches (const char*, RL_PROC); 134 extern CPPFunction * rl_attempted_completion_function; 135 extern FILE * rl_outstream; 136 extern char * readline (char *); 137 extern void add_history (char *); 138 extern int write_history (); 139 extern void using_history(); 140 extern int read_history(char *); 141 extern int history_total_bytes(); 142 #endif /* READLINE_READLINE_H_OK */ 143 typedef char * (*PROC)(); 116 117 #ifdef RL_VERSION_MAJOR 118 #if (RL_VERSION_MAJOR >= 4) 119 #define USE_READLINE4 120 #endif 121 #endif 122 123 #ifndef USE_READLINE4 124 #define rl_filename_completion_function filename_completion_function 125 #define rl_completion_matches completion_matches 126 #endif 127 #ifndef READLINE_READLINE_H_OK 128 /* declare everything we need explicitely and do not rely on includes */ 129 extern char * rl_readline_name; 130 extern char *rl_line_buffer; 131 char *rl_filename_completion_function(const char*, int); 132 typedef char **CPPFunction (); 133 134 extern char ** rl_completion_matches (const char*, RL_PROC); 135 extern CPPFunction * rl_attempted_completion_function; 136 extern FILE * rl_outstream; 137 extern char * readline (char *); 138 extern void add_history (char *); 139 extern int write_history (); 140 extern void using_history(); 141 extern int read_history(char *); 142 extern int history_total_bytes(); 143 #endif /* READLINE_READLINE_H_OK */ 144 145 typedef char * (*PROC)(); 144 146 145 147 typedef char **RL_CPPFunction (const char*, int,int); … … 166 168 char ** fe_rl_readline_name; /* 6 */ 167 169 char **fe_rl_line_buffer; /* 7 */ 168 char **(*fe_completion_matches)( ); /* 8 */170 char **(*fe_completion_matches)(...); /* 8 */ 169 171 CPPFunction **fe_rl_attempted_completion_function; /* 9 */ 170 172 FILE ** fe_rl_outstream; /* 10 */
Note: See TracChangeset
for help on using the changeset viewer.