mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-20 06:09:17 +02:00
Print bytevectors
This commit is contained in:
parent
f54bd39484
commit
e92bd6cf7c
1 changed files with 10 additions and 0 deletions
10
runtime.c
10
runtime.c
|
@ -587,6 +587,16 @@ object Cyc_display(object x, FILE *port)
|
|||
}
|
||||
fprintf(port, ")");
|
||||
break;
|
||||
case bytevector_tag:
|
||||
fprintf(port, "#u8(");
|
||||
for (i = 0; i < ((bytevector) x)->len; i++) {
|
||||
if (i > 0) {
|
||||
fprintf(port, " ");
|
||||
}
|
||||
fprintf(port, "%d", (int)(((bytevector)x)->data[i]));
|
||||
}
|
||||
fprintf(port, ")");
|
||||
break;
|
||||
case cons_tag:
|
||||
has_cycle = Cyc_has_cycle(x);
|
||||
fprintf(port, "(");
|
||||
|
|
Loading…
Add table
Reference in a new issue