Changeset c874cb in git
- Timestamp:
- Jul 12, 2010, 2:22:53 PM (13 years ago)
- Branches:
- (u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
- Children:
- 53f204db47ee058755a76f754ec4b8c21f0bce22
- Parents:
- 68f5f1a1f054c3230d5e4cfa1635c6b1b9de674c
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mpsr_Tok.cc
r68f5f1a rc874cb 409 409 410 410 // This actually generates the tables of mpsr_tok.inc 411 char *mpsr_Tok_inc; 411 412 void mpsr_ttGen() 412 413 { … … 453 454 454 455 // Generate the template file 455 outfile = myfopen("mpsr_Tok.xx", "w"); 456 mpsr_Tok_inc=omStrDup("mpsr_Tok.xxxxxxxx"); 457 int pid=getpid(); 458 mpsr_Tok_inc[8]=(pid %10)+'0'; pid/=10; 459 mpsr_Tok_inc[9]=(pid %10)+'0'; pid/=10; 460 mpsr_Tok_inc[10]=(pid %10)+'0'; pid/=10; 461 mpsr_Tok_inc[11]=(pid %10)+'0'; pid/=10; 462 mpsr_Tok_inc[12]=(pid %10)+'0'; pid/=10; 463 mpsr_Tok_inc[13]=(pid %10)+'0'; 464 465 outfile = myfopen(mpsr_Tok_inc, "w"); 456 466 if (outfile == NULL) 457 467 { -
Singular/tesths.cc
r68f5f1a rc874cb 144 144 extern void mpsr_ttGen(); // For initialization of (CMD, MP_COP) tables 145 145 extern char *iparith_inc; 146 extern char *mpsr_Tok_inc; 146 147 mpsr_ttGen(); 147 148 ttGen4(); … … 150 151 rename(iparith_inc,"iparith.inc"); 151 152 rename("plural_cmd.xx","plural_cmd.inc"); 152 rename( "mpsr_Tok.xx","mpsr_Tok.inc");153 rename(mpsr_Tok_inc,"mpsr_Tok.inc"); 153 154 #else 154 155 // Don't worry: ifdef OM_NDEBUG, then all these calls are undef'ed
Note: See TracChangeset
for help on using the changeset viewer.