mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-05-01 17:24:34 +00:00
Use spaces, not tabs, in the Java and C# runtimes.
Add modelines to keep it that way. Fix formatting, and english in comments.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// vim: ts=4 sw=4 expandtab ft=java
|
||||
//
|
||||
// Copyright (C) 2004 The University of Melbourne.
|
||||
// Copyright (C) 2018 The Mercury team.
|
||||
@@ -10,23 +11,23 @@ package jmercury.runtime;
|
||||
// in runtime/mercury_type_info.h.
|
||||
|
||||
public class TypeClassConstraint implements java.io.Serializable {
|
||||
public TypeClassDeclStruct tc_constr_type_class;
|
||||
public PseudoTypeInfo tc_constr_arg_ptis[];
|
||||
public TypeClassDeclStruct tc_constr_type_class;
|
||||
public PseudoTypeInfo tc_constr_arg_ptis[];
|
||||
|
||||
public TypeClassConstraint()
|
||||
{
|
||||
}
|
||||
public TypeClassConstraint()
|
||||
{
|
||||
}
|
||||
|
||||
public void init(TypeClassDeclStruct type_class,
|
||||
// XXX Object[] should be PseudoTypeInfo[],
|
||||
// but mlds_to_java.m generates Object[] since
|
||||
// init_array/1 doesn't give type info
|
||||
Object[] ptis)
|
||||
{
|
||||
tc_constr_type_class = type_class;
|
||||
tc_constr_arg_ptis = new PseudoTypeInfo[ptis.length];
|
||||
for (int i = 0; i < ptis.length; i++) {
|
||||
tc_constr_arg_ptis[i] = (PseudoTypeInfo) ptis[i];
|
||||
}
|
||||
}
|
||||
public void init(TypeClassDeclStruct type_class,
|
||||
// XXX Object[] should be PseudoTypeInfo[],
|
||||
// but mlds_to_java.m generates Object[] since
|
||||
// init_array/1 doesn't give type info
|
||||
Object[] ptis)
|
||||
{
|
||||
tc_constr_type_class = type_class;
|
||||
tc_constr_arg_ptis = new PseudoTypeInfo[ptis.length];
|
||||
for (int i = 0; i < ptis.length; i++) {
|
||||
tc_constr_arg_ptis[i] = (PseudoTypeInfo) ptis[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user