Changeset c874cb in git for Singular/mpsr_Tok.cc
- Timestamp:
- Jul 12, 2010, 2:22:53 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 53f204db47ee058755a76f754ec4b8c21f0bce22
- Parents:
- 68f5f1a1f054c3230d5e4cfa1635c6b1b9de674c
- File:
-
- 1 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 {
Note: See TracChangeset
for help on using the changeset viewer.