aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVibhav Pant2017-01-26 23:03:02 +0530
committerVibhav Pant2017-01-26 23:03:02 +0530
commit25d38a06eceb0853190a2d9acf53d85686f524bd (patch)
treeaef89095e6db7a11abb609a79f0f57bde463125b
parenta7e4870f165e9fd36d5cfcabb19b215b94373602 (diff)
downloademacs-25d38a06eceb0853190a2d9acf53d85686f524bd.tar.gz
emacs-25d38a06eceb0853190a2d9acf53d85686f524bd.zip
* lisp/emacs-lisp/bytecomp.el:(bc-cond-jump-table-info)add docstring
-rw-r--r--lisp/emacs-lisp/bytecomp.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index b955e9919de..eb297288c63 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -3983,6 +3983,13 @@ that suppresses all warnings during execution of BODY."
3983 (and (symbolp obj2) (byte-compile-cond-valid-obj2-p obj1) (cons obj2 obj1)))) 3983 (and (symbolp obj2) (byte-compile-cond-valid-obj2-p obj1) (cons obj2 obj1))))
3984 3984
3985(defun byte-compile-cond-jump-table-info (clauses) 3985(defun byte-compile-cond-jump-table-info (clauses)
3986 "If CLAUSES is a `cond' form where:
3987The condition for each clause is of the form (TEST VAR VALUE).
3988VAR is a variable.
3989TEST and VAR are the same throughtout all conditions.
3990VALUE is either a constant or a quoted form.
3991
3992Return a list of the form ((TEST . VAR) ((VALUE BODY) ...))"
3986 (let ((cases '()) 3993 (let ((cases '())
3987 (ok t) 3994 (ok t)
3988 prev-var prev-test) 3995 prev-var prev-test)