[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] concurrency-libtask 7be3718 07/10: Add missing defsubr
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] concurrency-libtask 7be3718 07/10: Add missing defsubr |
Date: |
Wed, 26 Oct 2016 21:32:44 +0000 (UTC) |
branch: concurrency-libtask
commit 7be3718a184b4f7534bc018084695b646c828384
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
Add missing defsubr
---
src/coroutine.c | 1 +
test/src/coroutine-tests.el | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/src/coroutine.c b/src/coroutine.c
index 5eae40b..929dd98 100644
--- a/src/coroutine.c
+++ b/src/coroutine.c
@@ -458,6 +458,7 @@ syms_of_coroutine (void)
Funintern (Qpending_coroutine_error_data, Qnil);
defsubr (&Sstart_coroutine);
+ defsubr (&Schannelp);
defsubr (&Sreceive_from_channel);
defsubr (&Stry_receive_from_channel);
defsubr (&Ssend_to_channel);
diff --git a/test/src/coroutine-tests.el b/test/src/coroutine-tests.el
index 778f3de..ef2917c 100644
--- a/test/src/coroutine-tests.el
+++ b/test/src/coroutine-tests.el
@@ -168,4 +168,9 @@
(let ((err (should-error (sleep-for 0.1))))
(should (equal err '(beginning-of-buffer foo)))))
+(ert-deftest channelp ()
+ (should-not (channelp nil))
+ (should-not (channelp 5))
+ (should (channelp (make-channel))))
+
;;; coroutine-tests.el ends here
- [Emacs-diffs] concurrency-libtask updated (6852791 -> 9d613e5), Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask f6aa233 09/10: Revert change in fd_handler., Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask b09d4ba 08/10: Fix format specifiers, Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask 38b61be 06/10: Transfer signals to main coroutine, Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask 0875d8d 05/10: Remove wrong assertion, Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask b075dc7 04/10: malloc is redefined by config.h, Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask 3a1331b 01/10: Clarify the behavior of minor mode commands, Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask 7be3718 07/10: Add missing defsubr,
Philipp Stephani <=
- [Emacs-diffs] concurrency-libtask a856316 03/10: Support for Windows fibers, Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask 9d613e5 10/10: Merge branch 'concurrency-libtask' of git.sv.gnu.org:/srv/git/emacs into concurrency-libtask, Philipp Stephani, 2016/10/26
- [Emacs-diffs] concurrency-libtask ee44c80 02/10: WIP: CSP based on libtask, Philipp Stephani, 2016/10/26