Changeset 8f769bb in git
- Timestamp:
- Sep 22, 1999, 12:19:05 PM (24 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- fcc8828a7bb095ce2cfa6cabeb554095b3e4aefe
- Parents:
- 2907f59317cf17c238dd583d6ac1c10ba279ba40
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/febase.h
r2907f5 r8f769bb 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: febase.h,v 1.3 8 1999-09-21 14:44:58 obachmanExp $ */6 /* $Id: febase.h,v 1.39 1999-09-22 10:19:04 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: basic i/o … … 244 244 /* the interface for reading: */ 245 245 extern char * (*fe_fgets_stdin)(char *pr,char *s, int size); 246 void fe_reset_input_mode(); 246 247 247 248 /* possible implementations: */ -
Singular/fegetopt.c
r2907f5 r8f769bb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: fegetopt.c,v 1. 1 1999-09-20 18:03:47 obachmanExp $ */4 /* $Id: fegetopt.c,v 1.2 1999-09-22 10:19:04 Singular Exp $ */ 5 5 6 6 /* Getopt for GNU. … … 84 84 they can distinguish the relative order of options and other arguments. */ 85 85 86 #include " getopt.h"86 #include "fegetopt.h" 87 87 88 88 /* For communication from `getopt' to the caller. -
Singular/feread.cc
r2907f5 r8f769bb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feread.cc,v 1.2 3 1999-09-20 18:03:48 obachmanExp $ */4 /* $Id: feread.cc,v 1.24 1999-09-22 10:19:04 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: input from ttys, simulating fgets … … 61 61 return ((char *)NULL); 62 62 } 63 64 65 #endif 63 #endif 64 66 65 /* ===================================================================*/ 67 66 /* = static readline = */ … … 126 125 } 127 126 128 void fe_reset_input_mode (void)129 {130 char *p = getenv("SINGULARHIST");131 if (p != NULL)132 {133 if(history_total_bytes()!=0)134 write_history (p);135 }136 }137 138 127 char * fe_fgets_stdin_rl(char *pr,char *s, int size) 139 128 { … … 188 177 } 189 178 #endif 190 191 179 192 180 /* ===================================================================*/ … … 263 251 } 264 252 265 266 253 /* Attempt to complete on the contents of TEXT. START and END show the 267 254 * region of TEXT that contains the word to complete. We can use the … … 287 274 } 288 275 289 void fe_reset_input_mode (void)290 {291 char *p = getenv("SINGULARHIST");292 if (p != NULL)293 {294 if((*fe_history_total_bytes)()!=0)295 (*fe_write_history) (p);296 }297 }298 299 276 char * fe_fgets_stdin_drl(char *pr,char *s, int size) 300 277 { … … 429 406 return fgets(s,size,stdin); 430 407 } 408 431 409 #endif 432 410 … … 439 417 return NULL; 440 418 } 419 420 /* ===================================================================*/ 421 /* = fe_reset_input_mode (all possibilities) = */ 422 /* ===================================================================*/ 423 void fe_reset_input_mode () 424 { 425 #if defined(HAVE_DYN_RL) 426 char *p = getenv("SINGULARHIST"); 427 if (p != NULL) 428 { 429 if((*fe_history_total_bytes)()!=0) 430 (*fe_write_history) (p); 431 } 432 #endif 433 #if defined(HAVE_READLINE) && !defined(HAVE_FEREAD) && !defined(HAVE_DYN_RL) 434 char *p = getenv("SINGULARHIST"); 435 if (p != NULL) 436 { 437 if(history_total_bytes()!=0) 438 write_history (p); 439 } 440 #endif 441 } 442 -
Singular/misc.cc
r2907f5 r8f769bb 99 99 } 100 100 #endif 101 fe_reset_input_mode(); 101 102 if (i<=0) 102 103 { … … 111 112 printf("\n$Bye.\n"); 112 113 } 113 #ifndef macintosh114 #ifdef HAVE_FEREAD115 #ifdef HAVE_ATEXIT116 //fe_reset_input_mode();117 #else118 //fe_reset_input_mode(0,NULL);119 #endif120 #else121 #ifdef HAVE_READLINE122 //fe_reset_input_mode();123 #endif124 #endif125 #endif126 114 #ifdef sun 127 115 #ifndef __svr4__ … … 535 523 #endif 536 524 #if defined(HAVE_DYN_RL) 537 StringAppendS("d-readline," 525 StringAppendS("d-readline,"); 538 526 #else 539 527 #if defined(HAVE_READLINE) && !defined(FEREAD) … … 569 557 #endif 570 558 #ifdef HAVE_ASSUME 571 StringAppendS("ASSUME,"); 559 StringAppendS("ASSUME,"); 572 560 #endif 573 561 #ifdef MDEBUG -
Singular/mod2.h.in
r2907f5 r8f769bb 5 5 * DO NOT EDIT! 6 6 * 7 * Version: $Id: mod2.h.in,v 1.6 6 1999-08-25 16:02:48Singular Exp $7 * Version: $Id: mod2.h.in,v 1.67 1999-09-22 10:19:05 Singular Exp $ 8 8 *******************************************************************/ 9 9 #ifndef MOD2_H … … 146 146 ******************************************************************/ 147 147 /* define to use the dynamic linking of readline in non-distributions builds */ 148 /* #undef USE_ DYN_RL */148 /* #undef USE_STATIC_RL */ 149 149 150 150 /* Default value for timer resolution in ticks per second */ … … 204 204 /* dynamic readline or readline ? */ 205 205 #ifdef HAVE_DL 206 #if defined(MAKE_DISTRIBUTION) || defined(USE_DYN_RL)206 #if !defined(USE_STATIC_RL) 207 207 #define HAVE_DYN_RL 208 208 #endif
Note: See TracChangeset
for help on using the changeset viewer.