mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-05-01 17:24:34 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user