Skip to content

Commit 88ebdd7

Browse files
committed
incorporate tick printing to newer langs
1 parent 1fbd7da commit 88ebdd7

5 files changed

Lines changed: 9 additions & 0 deletions

File tree

langs/hustle/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ int main(int argc, char** argv) {
2929
// `heap` gets passed in `rdi`
3030
// (defined by the calling convention, not up to us!)
3131
int64_t result = entry(heap);
32+
// See if we need to print the initial tick
3233
if (cons_type_tag == (ptr_type_mask & result)) printf("'");
3334
print_result(result);
3435
if (result != val_void) printf("\n");

langs/iniquity/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ int main(int argc, char** argv) {
2626
error_handler = &error_exit;
2727
heap = malloc(8 * heap_size);
2828
int64_t result = entry(heap);
29+
// See if we need to print the initial tick
30+
if (cons_type_tag == (ptr_type_mask & result)) printf("'");
2931
print_result(result);
3032
if (result != val_void) printf("\n");
3133
free(heap);

langs/jig/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ int main(int argc, char** argv) {
2626
error_handler = &error_exit;
2727
heap = malloc(8 * heap_size);
2828
int64_t result = entry(heap);
29+
// See if we need to print the initial tick
30+
if (cons_type_tag == (ptr_type_mask & result)) printf("'");
2931
print_result(result);
3032
if (result != val_void) printf("\n");
3133
free(heap);

langs/knock/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ int main(int argc, char** argv) {
2626
error_handler = &error_exit;
2727
heap = malloc(8 * heap_size);
2828
int64_t result = entry(heap);
29+
// See if we need to print the initial tick
30+
if (cons_type_tag == (ptr_type_mask & result)) printf("'");
2931
print_result(result);
3032
if (result != val_void) printf("\n");
3133
free(heap);

langs/loot/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ void print_codepoint(int64_t);
1818
int main(int argc, char** argv) {
1919
void * heap = malloc(heap_size);
2020
int64_t result = entry(heap);
21+
// See if we need to print the initial tick
22+
if (cons_type_tag == (ptr_type_mask & result)) printf("'");
2123
print_result(result);
2224
printf("\n");
2325
return 0;

0 commit comments

Comments
 (0)