Changeset c874cb in git for Singular


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

git-svn-id: file:///usr/local/Singular/svn/trunk@12980 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 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  {
  • Singular/tesths.cc

    r68f5f1a rc874cb  
    144144  extern void mpsr_ttGen(); // For initialization of (CMD, MP_COP) tables
    145145  extern char *iparith_inc;
     146  extern char *mpsr_Tok_inc;
    146147  mpsr_ttGen();
    147148  ttGen4();
     
    150151  rename(iparith_inc,"iparith.inc");
    151152  rename("plural_cmd.xx","plural_cmd.inc");
    152   rename("mpsr_Tok.xx","mpsr_Tok.inc");
     153  rename(mpsr_Tok_inc,"mpsr_Tok.inc");
    153154#else
    154155  // Don't worry: ifdef OM_NDEBUG, then all these calls are undef'ed
Note: See TracChangeset for help on using the changeset viewer.