Skip to content

Commit

Permalink
Fixes #766, adds appropriate export samples
Browse files Browse the repository at this point in the history
  • Loading branch information
codemanyak committed Dec 3, 2019
1 parent bde919c commit c04ddc4
Show file tree
Hide file tree
Showing 17 changed files with 18,158 additions and 4 deletions.
1,006 changes: 1,006 additions & 0 deletions samples/export/BASIC0/TextDemo.bas

Large diffs are not rendered by default.

1,135 changes: 1,135 additions & 0 deletions samples/export/BASIC1/TextDemo.bas

Large diffs are not rendered by default.

1,302 changes: 1,302 additions & 0 deletions samples/export/C#/TextDemo.cs

Large diffs are not rendered by default.

1,215 changes: 1,215 additions & 0 deletions samples/export/C++/TextDemo.cpp

Large diffs are not rendered by default.

1,308 changes: 1,308 additions & 0 deletions samples/export/C/TextDemo.c

Large diffs are not rendered by default.

1,268 changes: 1,268 additions & 0 deletions samples/export/Java/TextDemo.java

Large diffs are not rendered by default.

1,222 changes: 1,222 additions & 0 deletions samples/export/Js/TextDemo.js

Large diffs are not rendered by default.

1,296 changes: 1,296 additions & 0 deletions samples/export/Oberon/TextDemo.Mod

Large diffs are not rendered by default.

1,203 changes: 1,203 additions & 0 deletions samples/export/PHP/TextDemo.php

Large diffs are not rendered by default.

1,336 changes: 1,336 additions & 0 deletions samples/export/Pascal/TextDemo.pas

Large diffs are not rendered by default.

1,279 changes: 1,279 additions & 0 deletions samples/export/Perl/TextDemo.pl

Large diffs are not rendered by default.

1,059 changes: 1,059 additions & 0 deletions samples/export/Python/TextDemo.py

Large diffs are not rendered by default.

1,046 changes: 1,046 additions & 0 deletions samples/export/StrukTeX/TextDemo.tex

Large diffs are not rendered by default.

1,256 changes: 1,256 additions & 0 deletions samples/export/bash/TextDemo.sh

Large diffs are not rendered by default.

1,219 changes: 1,219 additions & 0 deletions samples/export/ksh/TextDemo.ksh

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions src/lu/fisch/structorizer/generators/SubTopoSortEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
* ------ ---- -----------
* Kay Gürtzig 2016.07.19 First issue (for enh. #160)
* Kay Gürtzig 2016.08.10 Modification for bugfix #228 (KGU#237)
* Kay Gürtzig 2019-12-03 Issue #766: Sorted caller set to achieve deterministic routine order
*
******************************************************************************************************
*
* Comment:
*
******************************************************************************************************///

import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

import lu.fisch.structorizer.elements.Root;

Expand All @@ -52,7 +52,10 @@
* depends on).
*/
final class SubTopoSortEntry {
public Set<Root> callers = new HashSet<Root>();
// START KGU#754 2019-12-03: Issue #766 - we want deterministic routine orders
//public Set<Root> callers = new HashSet<Root>();
public TreeSet<Root> callers = new TreeSet<Root>(Root.SIGNATURE_ORDER);
// END KGU#754 2019-12-03
public int nReferingTo = 0; // number of different(!) routines being called

SubTopoSortEntry(Root _caller)
Expand Down
3 changes: 2 additions & 1 deletion src/lu/fisch/structorizer/gui/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Known issues:
- The Javascript generator is just a prototype and may be deficient.
- Shell export does not cope with nested array/record initializers and component access.

Current development version: 3.30-03 (2019-12-03)
Current development version: 3.30-03 (2019-12-02)
- 01: Bugfix #759: Another source of stale Mainforms dried up. <2>
- 01: Bugfix #761: Code preview defect flooded the log stream. <2>
- 01: Precautions against empty error messages on startup <2>
Expand All @@ -31,6 +31,7 @@ Current development version: 3.30-03 (2019-12-03)
- 03: Enh. #388: Support for constants on Perl export (had been missing) <2>
- 03: Enh. #423: Support for record types on Perl export (had been missing) <2>
- 03: Enh. #739: Enum type definitions introduced (incl. C99, Pascal import) <2>
- 03: Issue #766: Deterministic export order had not worked for deep hierarchies <2>
- 03: Bugfix #770: Not all CASE selectors were checked to be constant integers <2>
- 03: Enh. #775: More type-sensitive export of input instructions to OBERON <2>
- 03: Bugfix #776: Global variables are locally eclipsed on Pascal/Oberon export <2>
Expand Down

0 comments on commit c04ddc4

Please sign in to comment.