Skip to content

Commit

Permalink
Update runtime systems for Ziggy langs for new string representation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Feb 14, 2024
1 parent 37e8453 commit 20f4584
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions langs/iniquity/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ void print_str(val_str_t* s)

void print_str_char_u(val_char_t c)
{
printf("\\u%04X", c);
printf("\\u%04" PRIX64, c);
}

void print_str_char_U(val_char_t c)
{
printf("\\U%08X", c);
printf("\\U%08" PRIX64, c);
}

void print_str_char(val_char_t c)
Expand Down
2 changes: 1 addition & 1 deletion langs/iniquity/values.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef enum type_t {
T_STR,
} type_t;

typedef uint32_t val_char_t;
typedef uint64_t val_char_t;
typedef struct val_box_t {
val_t val;
} val_box_t;
Expand Down
4 changes: 2 additions & 2 deletions langs/jig/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ void print_str(val_str_t* s)

void print_str_char_u(val_char_t c)
{
printf("\\u%04X", c);
printf("\\u%04" PRIX64, c);
}

void print_str_char_U(val_char_t c)
{
printf("\\U%08X", c);
printf("\\U%08" PRIX64, c);
}

void print_str_char(val_char_t c)
Expand Down
2 changes: 1 addition & 1 deletion langs/jig/values.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef enum type_t {
T_STR,
} type_t;

typedef uint32_t val_char_t;
typedef uint64_t val_char_t;
typedef struct val_box_t {
val_t val;
} val_box_t;
Expand Down
4 changes: 2 additions & 2 deletions langs/knock/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ void print_str(val_str_t* s)

void print_str_char_u(val_char_t c)
{
printf("\\u%04X", c);
printf("\\u%04" PRIX64, c);
}

void print_str_char_U(val_char_t c)
{
printf("\\U%08X", c);
printf("\\U%08" PRIX64, c);
}

void print_str_char(val_char_t c)
Expand Down
2 changes: 1 addition & 1 deletion langs/knock/values.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef enum type_t {
T_STR,
} type_t;

typedef uint32_t val_char_t;
typedef uint64_t val_char_t;
typedef struct val_box_t {
val_t val;
} val_box_t;
Expand Down

0 comments on commit 20f4584

Please sign in to comment.