mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
Discussion of these changes can be found on the Mercury developers
mailing list archives from June 2018.
COPYING.LIB:
Add a special linking exception to the LGPL.
*:
Update references to COPYING.LIB.
Clean up some minor errors that have accumulated in copyright
messages.
32 lines
879 B
Java
32 lines
879 B
Java
//
|
|
// Copyright (C) 2004 The University of Melbourne.
|
|
// Copyright (C) 2018 The Mercury team.
|
|
// This file is distributed under the terms specified in COPYING.LIB.
|
|
//
|
|
|
|
package jmercury.runtime;
|
|
|
|
// This corresponds to the C typedef "MR_TypeClassDeclStruct"
|
|
// in runtime/mercury_types.h, i.e. the C struct
|
|
// "struct MR_TypeClassDecl_Struct" in runtime/mercury_typeclass_info.h.
|
|
|
|
public class TypeClassDeclStruct implements java.io.Serializable {
|
|
public TypeClassId tc_decl_id;
|
|
public int tc_decl_version_number;
|
|
public int tc_decl_num_supers; // redundant
|
|
public TypeClassConstraint tc_decl_supers;
|
|
|
|
public TypeClassDeclStruct()
|
|
{
|
|
}
|
|
|
|
public void init(TypeClassId id, int version_number,
|
|
int num_supers, TypeClassConstraint supers)
|
|
{
|
|
tc_decl_id = id;
|
|
tc_decl_version_number = version_number;
|
|
tc_decl_num_supers = num_supers;
|
|
tc_decl_supers = supers;
|
|
}
|
|
}
|