Skip to content

Commit

Permalink
[emurt] drop vendored print_s implementation and use printf in newlib
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin authored and sequencer committed Jan 11, 2025
1 parent 1b26600 commit 0deb54c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions tests/emurt/emurt.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ void _exit(int code) {
__builtin_unreachable();
}

void print_s(const char *c) {
while (*c) {
t1_put_char(*c);
c++;
}
}

///////////////////////
// allocation
///////////////////////
Expand Down
1 change: 0 additions & 1 deletion tests/emurt/emurt.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

#include <stdint.h>

void print_s(const char *c);
void place_counter(int i);
3 changes: 2 additions & 1 deletion tests/emurt/tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ in
dontUnpack = true;
csrc = writeText "simple-emurt-test.c" ''
#include <emurt.h>
#include <stdio.h>
void test() {
place_counter(1);
print_s("Hello, World\n");
printf("Hello, %s", "World\n");
place_counter(2);
}
'';
Expand Down

0 comments on commit 0deb54c

Please sign in to comment.