Skip to content

Commit

Permalink
Update Str struct in hvm.h
Browse files Browse the repository at this point in the history
  • Loading branch information
developedby committed Jul 11, 2024
1 parent c7dce46 commit ff09a6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ typedef struct Tup {
// For example, `(CON a (CON b (CON c)))` is a 3-tuple (a, b, c).
extern Tup readback_tup(Net* net, Book* book, Port port, u32 size);

// Readback: λ-Encoded Str (UTF-32), null-terminated
// FIXME: this is actually ASCII :|
typedef struct Str {
u32 text_len;
char text_buf[256];
u32 len;
char *buf;
} Str;

// Reads a constructor-encoded string (of length at most 255 characters),
Expand Down

0 comments on commit ff09a6b

Please sign in to comment.