Changeset c874cb in git for Singular/mpsr_Tok.cc


Ignore:
Timestamp:
Jul 12, 2010, 2:22:53 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
53f204db47ee058755a76f754ec4b8c21f0bce22
Parents:
68f5f1a1f054c3230d5e4cfa1635c6b1b9de674c
Message:
tr 241

git-svn-id: file:///usr/local/Singular/svn/trunk@12980 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/mpsr_Tok.cc

    r68f5f1a rc874cb  
    409409
    410410// This actually generates the tables of mpsr_tok.inc
     411char *mpsr_Tok_inc;
    411412void mpsr_ttGen()
    412413{
     
    453454
    454455  // 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");
    456466  if (outfile == NULL)
    457467  {
Note: See TracChangeset for help on using the changeset viewer.