projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2928172
)
Remove js!bool
author
David Vázquez
<davazp@gmail.com>
Fri, 5 Jul 2013 14:09:44 +0000
(16:09 +0200)
committer
David Vázquez
<davazp@gmail.com>
Fri, 5 Jul 2013 14:09:44 +0000
(16:09 +0200)
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
a806cf3
..
66844fb
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-54,11
+54,6
@@
(js-expr arg)))))
args))
(js-expr arg)))))
args))
-;;; Wrap X with a Javascript code to convert the result from
-;;; Javascript generalized booleans to T or NIL.
-(defun js!bool (x)
- `(if ,x ,(ls-compile t) ,(ls-compile nil)))
-
;;; Concatenate the arguments and wrap them with a self-calling
;;; Javascript anonymous function. It is used to make some Javascript
;;; statements valid expressions and provide a private scope as well.
;;; Concatenate the arguments and wrap them with a self-calling
;;; Javascript anonymous function. It is used to make some Javascript
;;; statements valid expressions and provide a private scope as well.
@@
-1021,7
+1016,7
@@
`(define-raw-builtin ,op (x &rest args)
(let ((args (cons x args)))
(variable-arity args
`(define-raw-builtin ,op (x &rest args)
(let ((args (cons x args)))
(variable-arity args
- (js!bool (comparison-conjuntion args ',sym))))))
+ `(bool ,(comparison-conjuntion args ',sym))))))
(define-builtin-comparison > >)
(define-builtin-comparison < <)
(define-builtin-comparison > >)
(define-builtin-comparison < <)