repo.or.cz
/
eigenmath-fx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Little fix after the last commit (mostly a git fail)
[eigenmath-fx.git]
/
cons.cpp
blob
d59a1503951e9e9109a1fbfb6d135fa07e73929f
1
// Cons two things on the stack.
2
3
#include
"stdafx.h"
4
#include
"defs.h"
5
6
void
7
cons
(
void
)
8
{
9
// auto var ok, no opportunity for garbage collection after p = alloc()
10
U
*
p
;
11
p
=
alloc
();
12
p
->
k
=
CONS
;
13
p
->
u
.
cons
.
cdr
=
pop
();
14
p
->
u
.
cons
.
car
=
pop
();
15
push
(
p
);
16
}