Changeset 1be9b03 in git
- Timestamp:
- Sep 25, 2000, 4:46:55 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 122d498cedb975079e9eff3554a721e5e8f3af86
- Parents:
- e1618211b1c146a0b73c1e83e6615ce5e91eb39d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/feread.cc
re16182 r1be9b03 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feread.cc,v 1.3 8 2000-09-18 09:18:56obachman Exp $ */4 /* $Id: feread.cc,v 1.39 2000-09-25 14:46:55 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: input from ttys, simulating fgets … … 207 207 208 208 extern "C" { 209 typedef char* (*String_Func)(); 210 typedef void (*Void_Func)(); 211 typedef int (*Int_Func)(); 212 typedef char** (*CharStarStar_Func)(); 209 213 char *(*fe_filename_completion_function)(); /* 3 */ 210 214 char *(* fe_readline) (); /* 4 */ … … 241 245 if (fe_rl_hdl==NULL) { return 1;} 242 246 243 fe_filename_completion_function= 244 dynl_sym(fe_rl_hdl, "filename_completion_function");247 fe_filename_completion_function= (String_Func) 248 dynl_sym(fe_rl_hdl, "filename_completion_function"); 245 249 if (fe_filename_completion_function==NULL) { res=3; break; } 246 fe_readline= dynl_sym(fe_rl_hdl,"readline");250 fe_readline=(String_Func)dynl_sym(fe_rl_hdl,"readline"); 247 251 if (fe_readline==NULL) { res=4; break; } 248 fe_add_history= dynl_sym(fe_rl_hdl,"add_history");252 fe_add_history=(Void_Func)dynl_sym(fe_rl_hdl,"add_history"); 249 253 if (fe_add_history==NULL) { res=5; break; } 250 fe_rl_readline_name= dynl_sym(fe_rl_hdl,"rl_readline_name");254 fe_rl_readline_name=(char**)dynl_sym(fe_rl_hdl,"rl_readline_name"); 251 255 if (fe_rl_readline_name==NULL) { res=6; break; } 252 fe_rl_line_buffer= dynl_sym(fe_rl_hdl,"rl_line_buffer");256 fe_rl_line_buffer=(char**)dynl_sym(fe_rl_hdl,"rl_line_buffer"); 253 257 if (fe_rl_line_buffer==NULL) { res=7; break; } 254 fe_completion_matches= dynl_sym(fe_rl_hdl,"completion_matches");258 fe_completion_matches=(CharStarStar_Func)dynl_sym(fe_rl_hdl,"completion_matches"); 255 259 if (fe_completion_matches==NULL) { res=8; break; } 256 260 fe_rl_attempted_completion_function= 257 dynl_sym(fe_rl_hdl,"rl_attempted_completion_function");261 (CPPFunction**) dynl_sym(fe_rl_hdl,"rl_attempted_completion_function"); 258 262 if (fe_rl_attempted_completion_function==NULL) { res=9; break; } 259 fe_rl_outstream= dynl_sym(fe_rl_hdl,"rl_outstream");263 fe_rl_outstream=(FILE**)dynl_sym(fe_rl_hdl,"rl_outstream"); 260 264 if (fe_rl_outstream==NULL) { res=10; break; } 261 fe_write_history= dynl_sym(fe_rl_hdl,"write_history");265 fe_write_history=(Int_Func)dynl_sym(fe_rl_hdl,"write_history"); 262 266 if (fe_write_history==NULL) { res=11; break; } 263 fe_history_total_bytes= dynl_sym(fe_rl_hdl,"history_total_bytes");267 fe_history_total_bytes=(Int_Func)dynl_sym(fe_rl_hdl,"history_total_bytes"); 264 268 if (fe_history_total_bytes==NULL) { res=12; break; } 265 fe_using_history= dynl_sym(fe_rl_hdl,"using_history");269 fe_using_history=(Void_Func)dynl_sym(fe_rl_hdl,"using_history"); 266 270 if (fe_using_history==NULL) { res=13; break; } 267 fe_read_history= dynl_sym(fe_rl_hdl,"read_history");271 fe_read_history=(Int_Func)dynl_sym(fe_rl_hdl,"read_history"); 268 272 if (fe_read_history==NULL) { res=14; break; } 269 273 return 0;
Note: See TracChangeset
for help on using the changeset viewer.