We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 353111b commit ca128e7Copy full SHA for ca128e7
1 file changed
www/notes/loot/compile.rkt
@@ -474,21 +474,3 @@
474
(sar rbx ,(+ 11 imm-shift))
475
(cmp rbx #b11011)
476
(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