Little fix after the last commit (mostly a git fail)
[eigenmath-fx.git] / append.cpp
blob37cf28c6e89c4612f54ab5b5a6bce23653bb99f8
1 // Append one list to another.
3 #include "stdafx.h"
4 #include "defs.h"
6 void
7 append(void)
9 int h;
11 save();
13 p2 = pop();
14 p1 = pop();
16 h = tos;
18 while (iscons(p1)) {
19 push(car(p1));
20 p1 = cdr(p1);
23 while (iscons(p2)) {
24 push(car(p2));
25 p2 = cdr(p2);
28 list(tos - h);
30 restore();