Changeset 799ce1 in git
- Timestamp:
- May 5, 1998, 3:46:39 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 8d525d24817ecbbf4965a24b18bdb2b1554fef76
- Parents:
- 95ba43dd6254b9f183dccb7cc9ca1463c7f1f302
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
r95ba43 r799ce1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.2 2 1998-05-05 13:20:46 obachmanExp $ */4 /* $Id: iplib.cc,v 1.23 1998-05-05 13:46:37 krueger Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 507 507 # endif 508 508 // if (BVERBOSE(V_LOAD_LIB)) Print( "// ** loading %s...", libnamebuf); 509 extern int lpverbose; 510 if (BVERBOSE(V_DEBUG_LIB)) lpverbose=1; else lpverbose=0; 509 511 yylplex(newlib, libnamebuf, &lib_style); 510 512 if(yylp_errno) { … … 518 520 return TRUE; 519 521 } 520 if (BVERBOSE(V_LOAD_LIB)) Print( "// ** loaded %s", libnamebuf); 522 if (BVERBOSE(V_LOAD_LIB)) Print( "// ** loaded %s %s", libnamebuf, 523 text_buffer); 521 524 if( (lib_style == OLD_LIBSTYLE) && (BVERBOSE(V_LOAD_LIB))) 522 525 Warn( "library %s has an old format. Please fix it for the next time", -
Singular/libparse.l
r95ba43 r799ce1 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 /* $Id: libparse.l,v 1.1 8 1998-05-05 12:07:01 schmidtExp $ */5 /* $Id: libparse.l,v 1.19 1998-05-05 13:46:38 krueger Exp $ */ 6 6 #include <stdio.h> 7 7 #include <string.h> … … 248 248 printf("Version:%s;\n", libnamebuf); 249 249 #else 250 //text_buffer = mstrdup(libnamebuf); 251 print_version(mode, libnamebuf); 250 text_buffer = mstrdup(libnamebuf); 252 251 #endif 253 252 } … … 260 259 BEGIN(pdef); 261 260 found_proc_in_proc = 0; 261 proc[0]='\0'; 262 sscanf( yytext, "%*[^p]proc %s", proc); 263 if(strlen(proc)<1) sscanf( yytext, "proc %s", proc); 262 264 #if YYLPDEBUG > 1 263 265 printf("Newlib:%s\n", newlib); … … 269 271 } 270 272 pi = (procinfo *)malloc(sizeof(procinfo)); 271 iiInitSingularProcinfo(pi, newlib, yytext+5, yylplineno,273 iiInitSingularProcinfo(pi, newlib, proc, yylplineno, 272 274 current_pos(0), p_static); 273 275 #else STANDALONE_PARSER 274 276 if( mode == LOAD_LIB) { 275 proc[0]='\0';276 sscanf( yytext, "%*[^p]proc %s", proc);277 if(strlen(proc)<1) sscanf( yytext, "proc %s", proc);278 277 h0 = enterid( mstrdup(proc), myynest, PROC_CMD, 279 278 &idroot, FALSE ); … … 287 286 SET_DEF_END(mode, pi, current_pos(yyleng+1)); 288 287 #if YYLPDEBUG 289 if(lpverbose>1) printf("PROC %d at %d/%d: (%d) %s\n", p_static, 290 yylplineno, current_pos(0), brace1, yytext); 288 if(lpverbose) 289 printf("// %s PROC '%s' at line %d,%d: (%d).\n", 290 p_static ? "local" : "global", proc, 291 yylplineno, current_pos(0), brace1); 291 292 #endif 292 293 p_static=FALSE; … … 299 300 SET_EXAMPLE_START(mode, pi, yylplineno, current_pos(0)); 300 301 #if YYLPDEBUG 301 if(lpverbose>1) printf("EXAMPLE at %d/%d (%d)\n", yylplineno, 302 if(lpverbose) 303 printf("// EXAMPLE at line %d,%d (%d)\n", yylplineno, 302 304 current_pos(0), brace1); 303 305 #endif … … 310 312 <header>({comment}+{tos}+{dolar}+Id:+{string}+[^\n]*)|({comment}+{tos}+{dolar}+Header:+{string}+[^\n]*) { 311 313 make_version(yytext, 0); 312 //print_version(mode, "");313 314 #if YYLPDEBUG > 1 314 315 printf("+(id)HEAD:%s\n", yytext); … … 326 327 } 327 328 <header>^proc\ { yyless(0); 328 //print_version(mode, libfile);329 329 BEGIN(INITIAL); 330 330 yymore(); … … 338 338 339 339 <header>^LIB[ \t]+"\"" { quote++; 340 //print_version(mode, libfile);341 340 BEGIN(libcmd); 342 341 } … … 346 345 printf(" HEAD:%s\n", yytext); 347 346 #endif 348 //print_version(mode, libfile);349 347 yyless(0); 350 348 BEGIN(help); … … 434 432 } else { 435 433 brace1++; BEGIN(pbody); 434 if(lpverbose) 435 printf("// BODY at line %d,%d (%d)\n", yylplineno, 436 current_pos(0), brace1); 436 437 SET_BODY_START(mode, pi, yylplineno, current_pos(0)); 437 438 } … … 489 490 <poldhelp>"{" { 490 491 brace1++; BEGIN(pbody); 492 if(lpverbose) 493 printf("// BODY at line %d,%d (%d)\n", yylplineno, 494 current_pos(0), brace1); 491 495 #if YYLPDEBUG > 1 492 496 printf("BEGIN(pbody){=%d, (=%d, [=%d\n", brace1, brace2, brace3); … … 508 512 <phelp>"{" { 509 513 brace1++; BEGIN(pbody); 514 if(lpverbose) 515 printf("// BODY at line %d,%d (%d)\n", yylplineno, 516 current_pos(0), brace1); 510 517 #if YYLPDEBUG > 1 511 518 printf("BEGIN(pbody){=%d, (=%d, [=%d\n", brace1, brace2, brace3); -
Singular/mod2.h.in
r95ba43 r799ce1 132 132 /* Define to use new namespaces techniks */ 133 133 #undef HAVE_NAMESPACES 134 #undef HAVE_DYNAMIC_LOADING 134 135 135 136 /* Define to use scanner when loading libraries */ … … 206 207 # undef YYLPDEBUG 207 208 #else 208 # define YYLPDEBUG 0209 # define YYLPDEBUG 1 209 210 #endif 210 211
Note: See TracChangeset
for help on using the changeset viewer.