mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Rename new idb functions
This commit is contained in:
parent
298102c261
commit
d4d02cc2b9
1 changed files with 8 additions and 6 deletions
|
@ -54,8 +54,8 @@
|
||||||
lib:idb:ids
|
lib:idb:ids
|
||||||
lib:idb:id->import
|
lib:idb:id->import
|
||||||
lib:idb:lookup
|
lib:idb:lookup
|
||||||
lib:idb:entry:->library-name
|
lib:idb:entry->library-name
|
||||||
lib:idb:entry:->library-id
|
lib:idb:entry->library-id
|
||||||
)
|
)
|
||||||
(begin
|
(begin
|
||||||
|
|
||||||
|
@ -396,9 +396,11 @@
|
||||||
(lambda (entry)
|
(lambda (entry)
|
||||||
(cond
|
(cond
|
||||||
;; Normal identifier, no renaming
|
;; Normal identifier, no renaming
|
||||||
((equal? identifier (car entry)) (return entry))
|
((equal? identifier (car entry))
|
||||||
|
(return entry))
|
||||||
;; Identifier was renamed by an import set
|
;; Identifier was renamed by an import set
|
||||||
((equal? identifier (caar entry))
|
((and (pair? (car entry))
|
||||||
|
(equal? identifier (caar entry)))
|
||||||
(return entry))
|
(return entry))
|
||||||
;; Keep going
|
;; Keep going
|
||||||
(else #f)))
|
(else #f)))
|
||||||
|
@ -406,14 +408,14 @@
|
||||||
(return #f))))
|
(return #f))))
|
||||||
|
|
||||||
;; Take an idb entry and find the library that imported it
|
;; Take an idb entry and find the library that imported it
|
||||||
(define (lib:idb:entry:->library-name entry)
|
(define (lib:idb:entry->library-name entry)
|
||||||
(if entry
|
(if entry
|
||||||
(cdr entry)
|
(cdr entry)
|
||||||
#f))
|
#f))
|
||||||
|
|
||||||
;; Take an idb entry and find the original identifier for it,
|
;; Take an idb entry and find the original identifier for it,
|
||||||
;; that is part of the library definition.
|
;; that is part of the library definition.
|
||||||
(define (lib:idb:entry:->library-id entry)
|
(define (lib:idb:entry->library-id entry)
|
||||||
(if (pair? entry)
|
(if (pair? entry)
|
||||||
(cond
|
(cond
|
||||||
;; ID was renamed by an import set
|
;; ID was renamed by an import set
|
||||||
|
|
Loading…
Add table
Reference in a new issue