summaryrefslogtreecommitdiff
path: root/pmt/src/lib/pmt.cc
diff options
context:
space:
mode:
authoreb2007-02-26 00:40:37 +0000
committereb2007-02-26 00:40:37 +0000
commit7c9883d7500fcea8232e2dc860ceb2baaeb18823 (patch)
tree1e2ce3f5763f75e8a8aa4b3a13e7a88ec553d5c7 /pmt/src/lib/pmt.cc
parent455450fe17ceb0f4ed9d3c072fc7afba258b6fea (diff)
downloadgnuradio-7c9883d7500fcea8232e2dc860ceb2baaeb18823.tar.gz
gnuradio-7c9883d7500fcea8232e2dc860ceb2baaeb18823.tar.bz2
gnuradio-7c9883d7500fcea8232e2dc860ceb2baaeb18823.zip
Merged mblock work-in-progress from eb/mb -r4341:4633 into trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4634 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'pmt/src/lib/pmt.cc')
-rw-r--r--pmt/src/lib/pmt.cc24
1 files changed, 24 insertions, 0 deletions
diff --git a/pmt/src/lib/pmt.cc b/pmt/src/lib/pmt.cc
index 036a5f8ba..cf6547b57 100644
--- a/pmt/src/lib/pmt.cc
+++ b/pmt/src/lib/pmt.cc
@@ -841,3 +841,27 @@ pmt_subsetp(pmt_t list1, pmt_t list2)
}
return true;
}
+
+pmt_t
+pmt_list1(pmt_t x1)
+{
+ return pmt_cons(x1, PMT_NIL);
+}
+
+pmt_t
+pmt_list2(pmt_t x1, pmt_t x2)
+{
+ return pmt_cons(x1, pmt_cons(x2, PMT_NIL));
+}
+
+pmt_t
+pmt_list3(pmt_t x1, pmt_t x2, pmt_t x3)
+{
+ return pmt_cons(x1, pmt_cons(x2, pmt_cons(x3, PMT_NIL)));
+}
+
+pmt_t
+pmt_list4(pmt_t x1, pmt_t x2, pmt_t x3, pmt_t x4)
+{
+ return pmt_cons(x1, pmt_cons(x2, pmt_cons(x3, pmt_cons(x4, PMT_NIL))));
+}