Skip to content

Commit

Permalink
Merge pull request #92 from gap-packages/mh/TmpName
Browse files Browse the repository at this point in the history
Use TmpName instead of TmpNameAllArchs
  • Loading branch information
osj1961 authored Jan 30, 2024
2 parents dbdbd45 + 1343183 commit 3cba5de
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions lib/codeman.gi
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ function(C, wt)
return CWS;
else
#Print("the C code programs are compiled, so using Leon's binary....\n");
incode := TmpNameAllArchs();
incode := TmpName();
PrintTo( incode, "\n" );
infile := TmpNameAllArchs();
cwsc := TmpNameAllArchs();
infile := TmpName();
cwsc := TmpName();
PrintTo( infile, "\n" );
GuavaToLeon(C, incode);
Process(DirectoryCurrent(),
Expand Down
22 changes: 11 additions & 11 deletions lib/codeops.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1696,10 +1696,10 @@ function(C)
Print("... automatically switching to PermutationGroup ...\n");
return PermutationGroup(C);
fi;
incode := TmpNameAllArchs(); PrintTo( incode, "\n" );
inV := TmpNameAllArchs(); PrintTo( inV, "\n" );
outgroup := TmpNameAllArchs(); PrintTo( outgroup, "\n" );
infile := TmpNameAllArchs(); PrintTo( infile, "\n" );
incode := TmpName(); PrintTo( incode, "\n" );
inV := TmpName(); PrintTo( inV, "\n" );
outgroup := TmpName(); PrintTo( outgroup, "\n" );
infile := TmpName(); PrintTo( infile, "\n" );
# Calculate with dual code if it is smaller:
if Dimension(C) > QuoInt(WordLength(C), 2) then
Ccalc := DualCode(C);
Expand Down Expand Up @@ -2003,12 +2003,12 @@ function(C1, C2)
Error("GUAVA can only calculate equivalence over GF(2)");
fi;

code1 := TmpNameAllArchs(); PrintTo( code1, "\n" );
code2 := TmpNameAllArchs(); PrintTo( code2, "\n" );
cwcode1 := TmpNameAllArchs(); PrintTo( cwcode1, "\n" );
cwcode2 := TmpNameAllArchs(); PrintTo( cwcode2, "\n" );
output := TmpNameAllArchs(); PrintTo( output, "\n" );
infile := TmpNameAllArchs(); PrintTo( infile, "\n" );
code1 := TmpName(); PrintTo( code1, "\n" );
code2 := TmpName(); PrintTo( code2, "\n" );
cwcode1 := TmpName(); PrintTo( cwcode1, "\n" );
cwcode2 := TmpName(); PrintTo( cwcode2, "\n" );
output := TmpName(); PrintTo( output, "\n" );
infile := TmpName(); PrintTo( infile, "\n" );
GuavaToLeon(C1, code1);
GuavaToLeon(C2, code2);
#Exec(Filename(DirectoriesPackagePrograms("guava"), "wtdist"),
Expand Down Expand Up @@ -2754,7 +2754,7 @@ function(C)
k := DimensionsMat(G)[1];
n := DimensionsMat(G)[2];
#path := DirectoriesPackagePrograms( "guava" );; #seems unnecessary -- already done above...
tmpFile := TmpNameAllArchs(); tmpOutFile := TmpNameAllArchs();
tmpFile := TmpName(); tmpOutFile := TmpName();

PrintTo(tmpFile, k, " ", n, " ", Size(LeftActingDomain(C)), "\n");
for r in [1..k] do;
Expand Down

0 comments on commit 3cba5de

Please sign in to comment.