Skip to content

Commit ca128e7

Browse files
committed
Remove symbol->label.
1 parent 353111b commit ca128e7

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

www/notes/loot/compile.rkt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -474,21 +474,3 @@
474474
(sar rbx ,(+ 11 imm-shift))
475475
(cmp rbx #b11011)
476476
(je err)))
477-
478-
;; Symbol -> Label
479-
;; Produce a symbol that is a valid Nasm label
480-
(define (symbol->label s)
481-
(string->symbol
482-
(string-append
483-
"label_"
484-
(list->string
485-
(map (λ (c)
486-
(if (or (char<=? #\a c #\z)
487-
(char<=? #\A c #\Z)
488-
(char<=? #\0 c #\9)
489-
(memq c '(#\_ #\$ #\# #\@ #\~ #\. #\?)))
490-
c
491-
#\_))
492-
(string->list (symbol->string s))))
493-
"_"
494-
(number->string (eq-hash-code s) 16))))

0 commit comments

Comments
 (0)