mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
%nil -> #nil
* module/language/assembly.scm (object->assembly, assembly->object): * module/language/elisp/compile-tree-il.scm (compile-pair): * module/language/glil/decompile-assembly.scm (decompile-load-program): Change instances of %nil to #nil.
This commit is contained in:
parent
7c4aad9cc7
commit
54e53aa430
3 changed files with 5 additions and 5 deletions
|
@ -106,7 +106,7 @@
|
||||||
(define (object->assembly x)
|
(define (object->assembly x)
|
||||||
(cond ((eq? x #t) `(make-true))
|
(cond ((eq? x #t) `(make-true))
|
||||||
((eq? x #f) `(make-false))
|
((eq? x #f) `(make-false))
|
||||||
((and (defined? '%nil) (eq? x %nil)) `(make-nil))
|
((eq? x #nil) `(make-nil))
|
||||||
((null? x) `(make-eol))
|
((null? x) `(make-eol))
|
||||||
((and (integer? x) (exact? x))
|
((and (integer? x) (exact? x))
|
||||||
(cond ((and (<= -128 x) (< x 128))
|
(cond ((and (<= -128 x) (< x 128))
|
||||||
|
@ -136,7 +136,7 @@
|
||||||
(pmatch code
|
(pmatch code
|
||||||
((make-true) #t)
|
((make-true) #t)
|
||||||
((make-false) #f) ;; FIXME: Same as the `else' case!
|
((make-false) #f) ;; FIXME: Same as the `else' case!
|
||||||
((make-nil) %nil)
|
((make-nil) #nil)
|
||||||
((make-eol) '())
|
((make-eol) '())
|
||||||
((make-int8 ,n)
|
((make-int8 ,n)
|
||||||
(if (< n 128) n (- n 256)))
|
(if (< n 128) n (- n 256)))
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; Guile Emacs Lisp
|
;;; Guile Emacs Lisp
|
||||||
|
|
||||||
;; Copyright (C) 2009 Free Software Foundation, Inc.
|
;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
;; it under the terms of the GNU General Public License as published by
|
;; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -750,7 +750,7 @@
|
||||||
; (if condition
|
; (if condition
|
||||||
; (begin body
|
; (begin body
|
||||||
; (iterate))
|
; (iterate))
|
||||||
; %nil))))
|
; #nil))))
|
||||||
; (iterate))
|
; (iterate))
|
||||||
;
|
;
|
||||||
; As letrec is not directly accessible from elisp, while is implemented here
|
; As letrec is not directly accessible from elisp, while is implemented here
|
||||||
|
|
|
@ -123,7 +123,7 @@
|
||||||
((make-false)
|
((make-false)
|
||||||
(lp (cdr in) (cons #f stack) out (1+ pos)))
|
(lp (cdr in) (cons #f stack) out (1+ pos)))
|
||||||
((make-nil)
|
((make-nil)
|
||||||
(lp (cdr in) (cons %nil stack) out (1+ pos)))
|
(lp (cdr in) (cons #nil stack) out (1+ pos)))
|
||||||
((load-program ,labels ,sublen ,meta . ,body)
|
((load-program ,labels ,sublen ,meta . ,body)
|
||||||
(lp (cdr in)
|
(lp (cdr in)
|
||||||
(cons (decompile-load-program (decompile-meta meta)
|
(cons (decompile-load-program (decompile-meta meta)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue