repo.or.cz
/
mozart2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added cons.
[mozart2.git]
/
cons.hh
blob
68b2422c6ef209e73e8370dd5f2d2e6f21af92ce
1
extern
const
VTable consVT
;
2
struct
Cons
{
3
StableNode v
[
2
];
4
};
5
StableNode
*
mkCons
(
VM
&
vm
,
Node
&
dest
){
6
dest
.
vt
=&
consVT
;
7
dest
.
c
.
ptr
=
new
(
vm
)
Cons
();
8
return
((
Cons
*)
dest
.
c
.
ptr
)->
v
;
9
}