Changeset 2272c33 in git
- Timestamp:
- Dec 3, 1999, 12:20:15 PM (24 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 119b42669f61fbdc46ad811506b6378c287583fb
- Parents:
- caa8e6acf436c3f1afc45aa776a9230ee6926ea0
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
rcaa8e6 r2272c33 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: cntrlc.cc,v 1.2 7 1999-11-15 17:19:52obachman Exp $ */4 /* $Id: cntrlc.cc,v 1.28 1999-12-03 11:20:13 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - interupt handling … … 19 19 #include "cntrlc.h" 20 20 #include "polys.h" 21 #include "feOpt.h" 21 22 #ifdef PAGE_TEST 22 23 #include "page.h" … … 342 343 { 343 344 int cnt=0; 344 fprintf(stderr,"\n(last cmd:%d: `%s` in line\n>>%s<<)", 345 iiOp,Tok2Cmdname(iiOp),my_yylinebuf); 346 fputs("\nabort command(a), continue(c) or quit Singular(q) ?",stderr);fflush(stderr); 347 switch(fgetc(stdin)) 345 int c; 346 fprintf(stderr,"// ** Interrupt at cmd:`%s` in line:'%s'\n", 347 Tok2Cmdname(iiOp),my_yylinebuf); 348 if (feGetOptValue(FE_OPT_EMACS) == NULL) 349 { 350 fputs("abort command(a), continue(c) or quit Singular(q) ?",stderr);fflush(stderr); 351 c = fgetc(stdin); 352 } 353 else 354 { 355 c = 'a'; 356 } 357 358 switch(c) 348 359 { 349 360 #if defined(MONOM_COUNT) || defined(DIV_COUNT) … … 379 390 siCntrlc++; 380 391 case 'c': 381 fgetc(stdin);392 if (feGetOptValue(FE_OPT_EMACS) == NULL) fgetc(stdin); 382 393 signal(SIGINT ,(si_hdl_typ)sigint_handler); 383 394 return; -
Singular/extra.cc
rcaa8e6 r2272c33 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.12 4 1999-12-01 13:22:51 SingularExp $ */4 /* $Id: extra.cc,v 1.125 1999-12-03 11:20:14 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 482 482 res->rtyp=STRING_CMD; 483 483 res->data=(void *)mstrdup( 484 "Olaf Bachmann, Hubert Grassmann, Kai Krueger, Wolfgang Neumann, Thomas Nuessler, Wilfred Pohl, Jens Schmidt, Thomas Siebert, Ruediger Stobbe, Tim Wichmann");484 "Olaf Bachmann, Hubert Grassmann, Kai Krueger, Wolfgang Neumann, Thomas Nuessler, Wilfred Pohl, Jens Schmidt, Thomas Siebert, Ruediger Stobbe, Moritz Wenk, Tim Wichmann"); 485 485 return FALSE; 486 486 } -
Singular/feOpt.cc
rcaa8e6 r2272c33 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feOpt.cc,v 1. 7 1999-11-15 17:19:56obachman Exp $ */4 /* $Id: feOpt.cc,v 1.8 1999-12-03 11:20:14 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: Implementation of option buisness … … 247 247 } 248 248 return FE_OPT_UNDEF; 249 } 250 251 void* feGetOptValue(feOptIndex opt) 252 { 253 return feOptSpec[(int)opt].value; 249 254 } 250 255 -
Singular/feOpt.h
rcaa8e6 r2272c33 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: feOpt.h,v 1. 3 1999-11-15 17:19:56obachman Exp $ */6 /* $Id: feOpt.h,v 1.4 1999-12-03 11:20:15 obachman Exp $ */ 7 7 /* 8 8 * ABSTRACT: Declarations for working with Options … … 15 15 #define LONG_OPTION_RETURN 13 16 16 17 / / specifies format of options17 /* specifies format of options */ 18 18 extern struct fe_option feOptSpec[]; 19 19 20 20 #ifndef GENERATE_OPTION_INDEX 21 21 22 / / provides feOptIndex enum type for fast accesses to feOptSpec22 /* provides feOptIndex enum type for fast accesses to feOptSpec */ 23 23 #if ! defined(GENTABLE) && ! defined(GENERATE_DEPEND) 24 24 #ifdef ESINGULAR … … 30 30 typedef enum {FE_OPT_UNDEF} feOptIndex; 31 31 #endif 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 void* feGetOptValue(feOptIndex opt); 38 39 40 #ifdef __cplusplus 41 } 32 42 33 43 inline void* feOptValue(feOptIndex opt) … … 72 82 void fePrintOptValues(); 73 83 74 #endif / / ! GENERATE_OPTION_INDEX84 #endif /* __cplusplus */ 75 85 76 #endif // FEOPTS_H 86 #endif /* ! GENERATE_OPTION_INDEX */ 87 88 #endif /* FEOPTS_H */ -
Singular/feResource.cc
rcaa8e6 r2272c33 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: feResource.cc,v 1.1 6 1999-11-15 17:19:57obachman Exp $ */4 /* $Id: feResource.cc,v 1.17 1999-12-03 11:20:15 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: management of resources … … 75 75 {"HtmlDir", 'h', feResDir, "SINGULAR_HTML_DIR", "%r/html", ""}, 76 76 {"ManualUrl", 'u', feResUrl, "SINGULAR_URL", "http://www.mathematik.uni-kl.de/~zca/Singular/Manual/"S_VERSION1, ""}, 77 {"EmacsDir", 'e', feResDir, "SINGULAR_EMACS_DIR", "%r/emacs", ""},78 77 #if !defined(macintosh) 79 78 {"netscape", 'N', feResBinary,"NETSCAPE", "%b/netscape", ""}, … … 85 84 86 85 #ifdef ESINGULAR 87 {"emacs", 'E', feResBinary, "EMACS", "%b/emacs", ""}, 88 {"SingularEmacs",'M',feResBinary, "SINGULAR", "%b/Singular", ""}, 89 {"EmacsLoad",'l', feResFile, "SINGULAR_EMACS_LOAD", "%e/.emacs-singular", ""}, 86 {"emacs", 'E', feResBinary, "ESINGULAR_EMACS", "%b/emacs", ""}, 87 {"SingularEmacs",'M',feResBinary, "ESINGULAR_SINGULAR", "%b/Singular", ""}, 88 {"EmacsLoad",'l', feResFile, "ESINGULAR_EMACS_LOAD", "%e/.emacs-singular", ""}, 89 {"EmacsDir", 'e', feResDir, "ESINGULAR_EMACS_DIR", "%r/emacs", ""}, 90 #else 91 {"EmacsDir", 'e', feResDir, "SINGULAR_EMACS_DIR", "%r/emacs", ""}, 90 92 #endif 91 93 {NULL, 0, feResUndef, NULL, NULL, NULL}, // must be the last record
Note: See TracChangeset
for help on using the changeset viewer.