Changeset 50a84c in git
- Timestamp:
- Mar 16, 1999, 4:33:16 PM (25 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 1799c9fbabec720f27f0705fcdd3b0ce44cbfb14
- Parents:
- 3e23be413b53a8a512a19cc775abe1326f3a1a52
- Location:
- Singular
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
r3e23be r50a84c 1 Tue Mar 16 15:54:02 MET 1999 hannes 2 * introduced new routine ERROR(string) (iparith.cc, tok.h) 3 * added trace flag for proc (ipid.cc iplib.cc, febase*) 4 1 5 Mon Mar 8 18:27:26 MET 1999 hannes 2 6 * access to coeff-description via functions (1. approach) -
Singular/attrib.cc
r3e23be r50a84c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: attrib.cc,v 1.1 0 1998-05-28 16:50:45Singular Exp $ */4 /* $Id: attrib.cc,v 1.11 1999-03-16 15:33:04 Singular Exp $ */ 5 5 6 6 /* … … 263 263 } 264 264 attr at=v->attribute; 265 if (v->Typ()==PROC_CMD) 266 { 267 procinfo *p=(procinfo *)v->Data(); 268 if (p->trace_flag!=0) 269 Print("trace:%d\n",p->trace_flag); 270 } 265 271 if (hasFlag(v,FLAG_STD)) 266 272 { … … 294 300 res->data=(void *)(((ideal)v->Data())->rank); 295 301 } 302 else if ((v->Typ()==PROC_CMD) && (strcmp(name,"trace")==0)) 303 { 304 procinfo *p=(procinfo *)v->Data(); 305 res->rtyp=INT_CMD; 306 res->data=(void *)p->trace_flag; 307 } 296 308 else 297 309 { … … 350 362 I->rank=max(I->rank,(int)c->Data()); 351 363 } 364 else if ((strcmp(name,"trace")==0)&&(v->Typ()==PROC_CMD)) 365 { 366 if (c->Typ()!=INT_CMD) 367 { 368 WerrorS("attrib `trace` must be int"); 369 return TRUE; 370 } 371 procinfo *p=(procinfo *)v->Data(); 372 p->trace_flag=(int)c->Data(); 373 } 352 374 #ifdef DRING 353 375 else if (strcmp(name,"D")==0) -
Singular/febase.h
r3e23be r50a84c 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: febase.h,v 1.2 6 1999-02-26 15:32:01Singular Exp $ */6 /* $Id: febase.h,v 1.27 1999-03-16 15:33:05 Singular Exp $ */ 7 7 /* 8 * ABSTRACT 8 * ABSTRACT: basic i/o 9 9 */ 10 10 #include <stdio.h> -
Singular/febase.inc
r3e23be r50a84c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: febase.inc,v 1. 19 1998-10-29 13:26:52Singular Exp $ */4 /* $Id: febase.inc,v 1.20 1999-03-16 15:33:06 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: handling of 'voices' … … 392 392 ) 393 393 || (traceit&TRACE_SHOW_LINE) 394 || (traceit&TRACE_SHOW_LINE1)) 394 || (traceit&TRACE_SHOW_LINE1) 395 || ((currentVoice->pi!=NULL)&&(currentVoice->pi->trace_flag&TRACE_SHOW_LINE))) 395 396 { 396 397 if (currentVoice->typ!=BT_example) … … 420 421 } 421 422 } 422 else if (traceit&TRACE_SHOW_LINENO) 423 else if ((traceit&TRACE_SHOW_LINENO) 424 || ((currentVoice->pi!=NULL)&&(currentVoice->pi->trace_flag&TRACE_SHOW_LINENO))) 423 425 { 424 426 Print("{%d}",yylineno); -
Singular/iparith.cc
r3e23be r50a84c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.13 7 1999-03-16 13:38:08Singular Exp $ */4 /* $Id: iparith.cc,v 1.138 1999-03-16 15:33:09 Singular Exp $ */ 5 5 6 6 /* … … 149 149 { "extgcd", 0, EXTGCD_CMD , CMD_2}, 150 150 { "EXTGCD", 2, EXTGCD_CMD , CMD_2}, 151 { "ERROR", 0, ERROR_CMD , CMD_1}, 151 152 { "eliminate", 0, ELIMINATION_CMD, CMD_23}, 152 153 { "else", 0, ELSE_CMD , ELSE_CMD}, … … 1418 1419 setFlag(res,FLAG_STD); 1419 1420 return FALSE; 1421 } 1422 static BOOLEAN jjERROR(leftv res, leftv u) 1423 { 1424 WerrorS((char *)u->Data()); 1425 return TRUE; 1420 1426 } 1421 1427 static BOOLEAN jjDIM2(leftv res, leftv v, leftv w) … … 3403 3409 ,{jjDUMP, DUMP_CMD, NONE, LINK_CMD } 3404 3410 ,{jjE, E_CMD, VECTOR_CMD, INT_CMD } 3411 ,{jjERROR, ERROR_CMD, NONE, STRING_CMD } 3405 3412 #ifdef HAVE_FACTORY 3406 3413 ,{jjFAC_P, FAC_CMD, LIST_CMD, POLY_CMD } -
Singular/ipid.cc
r3e23be r50a84c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipid.cc,v 1.3 0 1999-03-15 16:18:52Singular Exp $ */4 /* $Id: ipid.cc,v 1.31 1999-03-16 15:33:13 Singular Exp $ */ 5 5 6 6 /* … … 765 765 void iiname2hdl(const char *name, idhdl *pck, idhdl *h) 766 766 { 767 c har *q = strchr(name, ':');767 const char *q = strchr(name, ':'); 768 768 char *p, *i; 769 769 -
Singular/iplib.cc
r3e23be r50a84c 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.5 1 1999-02-26 09:35:14 krueger Exp $ */4 /* $Id: iplib.cc,v 1.52 1999-03-16 15:33:14 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 412 412 #endif 413 413 iiRETURNEXPR[myynest+1].Init(); 414 if (traceit&TRACE_SHOW_PROC) 414 if ((traceit&TRACE_SHOW_PROC) 415 || (pi->trace_flag&TRACE_SHOW_PROC)) 415 416 { 416 417 if (traceit&TRACE_SHOW_LINENO) PrintLn(); … … 437 438 break; 438 439 } 439 if (traceit&TRACE_SHOW_PROC) 440 if ((traceit&TRACE_SHOW_PROC) 441 || (pi->trace_flag&TRACE_SHOW_PROC)) 440 442 { 441 443 if (traceit&TRACE_SHOW_LINENO) PrintLn(); -
Singular/subexpr.h
r3e23be r50a84c 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: subexpr.h,v 1.1 4 1999-02-26 09:36:18 krueger Exp $ */6 /* $Id: subexpr.h,v 1.15 1999-03-16 15:33:15 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT: handling of leftv … … 145 145 short ref; 146 146 char is_static; // if set, proc not accessible for user 147 char trace_flag; 147 148 procinfodata data; 148 149 }; -
Singular/tok.h
r3e23be r50a84c 7 7 * ABSTRACT: token for interpreter, as types; general macros 8 8 */ 9 /* $Id: tok.h,v 1.2 2 1999-01-22 17:40:52Singular Exp $ */9 /* $Id: tok.h,v 1.23 1999-03-16 15:33:16 Singular Exp $ */ 10 10 11 11 #ifndef MYYSTYPE … … 60 60 DUMP_CMD, 61 61 END_GRAMMAR, 62 ERROR_CMD, 62 63 EXTGCD_CMD, 63 64 FAC_CMD,
Note: See TracChangeset
for help on using the changeset viewer.