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:
Zoltan Somogyi
2018-07-10 13:52:11 +02:00
parent d8fb7d15a8
commit 8e45a89895
64 changed files with 947 additions and 960 deletions

View File

@@ -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,28 +11,32 @@ package jmercury.runtime;
// in runtime/mercury_typeclass_info.h.
public class TypeClassId implements java.io.Serializable {
public String tc_id_module_name;
public String tc_id_name;
public int tc_id_arity;
public int tc_id_num_type_vars; // XXX redundant
public int tc_id_num_methods; // XXX redundant
public String[] tc_id_var_names;
public TypeClassMethod[] tc_id_methods;
public String tc_id_module_name;
public String tc_id_name;
public int tc_id_arity;
public int tc_id_num_type_vars; // XXX redundant
public int tc_id_num_methods; // XXX redundant
public String[] tc_id_var_names;
public TypeClassMethod[] tc_id_methods;
public TypeClassId()
{
}
public TypeClassId()
{
}
public void init(String module_name, String name, int arity,
int num_type_vars, int num_methods,
String[] var_names, TypeClassMethod[] methods)
{
tc_id_module_name = module_name;
tc_id_name = name;
tc_id_arity = arity;
tc_id_num_type_vars = num_type_vars;
tc_id_num_methods = num_methods;
tc_id_var_names = var_names;
tc_id_methods = methods;
}
public void init(String module_name,
String name,
int arity,
int num_type_vars,
int num_methods,
String[] var_names,
TypeClassMethod[] methods)
{
tc_id_module_name = module_name;
tc_id_name = name;
tc_id_arity = arity;
tc_id_num_type_vars = num_type_vars;
tc_id_num_methods = num_methods;
tc_id_var_names = var_names;
tc_id_methods = methods;
}
}