Created
May 11, 2012 22:35
-
-
Save jbclements/2662849 to your computer and use it in GitHub Desktop.
Excerpt from racket collects/drracket/private/tools.rkt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; | |
; ;; ; ;;; | |
; ; ;;; ;;; ; ; | |
; ; ; ; ; ; ; | |
; ; ;;; ; ;; ;;;; ;;; ;;; ; ; ; ; | |
; ; ; ;; ; ; ; ; ; ; ; ; ; ; | |
; ; ; ; ; ;;;; ;;; ;;;;; ; ;;; ; ; | |
; ; ; ; ; ; ; ; ; ; ; ; ; | |
; ; ; ; ; ; ; ; ; ; ; ; ; ;; ; ; | |
; ;;;; ;;; ;;; ;;; ; ;;; ;;; ;;;;; ;;; ; ;;;;; | |
; ; | |
; ; | |
; ;;; | |
; | |
;; run-phases : -> void | |
(define (run-phases phase1-extras phase2-extras) | |
(drracket:module-language-tools:no-more-online-expansion-handlers) | |
(let* ([after-phase1 (run-one-phase 'phase1 | |
(string-constant tool-error-phase1) | |
successfully-loaded-tool-phase1 | |
successfully-loaded-tools | |
phase1-extras)] | |
[after-phase2 (run-one-phase 'phase2 | |
(string-constant tool-error-phase2) | |
successfully-loaded-tool-phase2 | |
after-phase1 | |
phase2-extras)]) | |
(set! current-phase 'init-complete) | |
(set! successful-tools | |
(map (lambda (x) (make-successful-tool | |
(successfully-loaded-tool-spec x) | |
(successfully-loaded-tool-bitmap x) | |
(successfully-loaded-tool-name x) | |
(successfully-loaded-tool-url x))) | |
after-phase2)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment