Update the C# and Java runtimes ...

... after my recent changes.

java/runtime/DuFunctorDesc.java:
java/runtime/DuPtagLayout.java:
    Add the new field to the Java equivalents of the two C structures
    affected by the recent change to support packing arguments next to
    local secondary tags.

runtime/mercury_dotnet.cs.in:
    Add the new field to the C# equivalent of one of two C structures
    affected by the recent change to support packing arguments next to
    local secondary tags; the other was done earlier.

runtime/mercury_type_info.h:
    Include java/runtime/* among the files that may need to be updated
    after a change in this file.
This commit is contained in:
Zoltan Somogyi
2018-07-10 03:07:17 +02:00
parent ee8589d111
commit d23cbe32bd
4 changed files with 29 additions and 5 deletions

View File

@@ -11,17 +11,29 @@ public class DuPtagLayout implements java.io.Serializable {
public int sectag_sharers;
public Sectag_Locn sectag_locn;
public /* final */ DuFunctorDesc[] sectag_alternatives;
public byte sectag_numbits;
public DuPtagLayout(int sharers, Sectag_Locn locn, DuFunctorDesc[] alts)
public DuPtagLayout(
int sharers,
Sectag_Locn locn,
DuFunctorDesc[] alts,
byte numbits)
{
sectag_sharers = sharers;
sectag_locn = locn;
sectag_alternatives = alts;
sectag_numbits = numbits;
}
public DuPtagLayout(int sharers, int locn, DuFunctorDesc[] alts) {
public DuPtagLayout(
int sharers,
int locn,
DuFunctorDesc[] alts,
byte numbits)
{
sectag_sharers = sharers;
sectag_locn = new Sectag_Locn(locn);
sectag_alternatives = alts;
sectag_numbits = numbits;
}
}