Files
mercury/java/runtime/DuPtagLayout.java
Zoltan Somogyi d23cbe32bd 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.
2018-07-10 03:07:17 +02:00

40 lines
910 B
Java

//
// Copyright (C) 2001-2003 The University of Melbourne.
// Copyright (C) 2018 The Mercury team.
// This file is distributed under the terms specified in COPYING.LIB.
//
package jmercury.runtime;
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,
byte numbits)
{
sectag_sharers = sharers;
sectag_locn = locn;
sectag_alternatives = alts;
sectag_numbits = numbits;
}
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;
}
}