FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mercury/java/runtime/TypeLayout.java at master · Mercury-Language/mercury · GitHub
Mercury-Language
/
mercury
Public
Notifications
You must be signed in to change notification settings
Fork
71
Star
1.1k
Code
Issues
13
Pull requests
8
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mercury
/
java
/
runtime
/
TypeLayout.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (39 loc) · 1.42 KB
Breadcrumbs
mercury
/
java
/
runtime
/
TypeLayout.java
Copy path
File metadata and controls
45 lines (39 loc) · 1.42 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// vim: ts=4 sw=4 expandtab ft=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
TypeLayout
implements
java
.
io
.
Serializable
{
// This should hold a value of one of the types
// accessible by the access functions that follow.
public
java
.
lang
.
Object
layout_init
;
// In runtime/mercury_type_info.h:
// typedef MR_DuPtagLayout *MR_DuTypeLayout;
// so here we just use DuPtagLayout[].
public
DuPtagLayout
[]
layout_du
() {
return
(
DuPtagLayout
[])
layout_init
;
}
// In runtime/mercury_type_info.h:
// typedef MR_EnumFunctorDesc **EnumTypeLayout;
// so here we just use EnumFunctorDesc[][]
public
EnumFunctorDesc
[]
layout_enum
() {
return
(
EnumFunctorDesc
[])
layout_init
;
}
// In runtime/mercury_type_info.h:
// typedef MR_NotagFunctorDesc *MR_NotagTypeLayout;
// so here we just us NotagFunctorDesc[]
public
NotagFunctorDesc
[]
layout_notag
() {
return
(
NotagFunctorDesc
[])
layout_init
;
}
// In runtime/mercury_type_info.h:
// typedef MR_PseudoTypeInfo MR_EquivType;
// so here we just use MR_PseudoTypeInfo
public
PseudoTypeInfo
layout_equiv
() {
return
(
PseudoTypeInfo
)
layout_init
;
}
public
TypeLayout
(
java
.
lang
.
Object
init
) {
layout_init
=
init
;
}
}
Back
|
FazBrowse Home
|
New Git URL