Commit 75452689 authored by Xavier Thompson's avatar Xavier Thompson

Adapt test programs to namespace change

parent 1837e07c
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
int fibo(int n) { int fibo(int n) {
if (n < 2) { if (n < 2) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Task<int> fibo(int n) { Task<int> fibo(int n) {
if (n < 2) { if (n < 2) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
int fibo(int n) { int fibo(int n) {
if (n < 2) if (n < 2)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
int fibo(int n) { int fibo(int n) {
if (n < 2) if (n < 2)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Join<int> fibo(int n); Join<int> fibo(int n);
Fork<int> fork_fibo(int n); Fork<int> fork_fibo(int n);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
int fibo(int n) { int fibo(int n) {
if (n < 2) { if (n < 2) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Task<int> add(int a, int b) { Task<int> add(int a, int b) {
co_return a + b; co_return a + b;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Task<int> fibo(int n) { Task<int> fibo(int n) {
if (n < 2) { if (n < 2) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Task<int> fibo(int n) { Task<int> fibo(int n) {
// printf("fibo(%d)\n", n); // printf("fibo(%d)\n", n);
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Root root() { Root root() {
printf("root resumed on %u\n", Scheduler::thread_id); printf("root resumed on %u\n", Scheduler::thread_id);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Task<int> add(int a, int b) { Task<int> add(int a, int b) {
printf("add(%d, %d)\n", a, b); printf("add(%d, %d)\n", a, b);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <cstdio> #include <cstdio>
using namespace typon::rt; using namespace typon;
Task<int> add(int a, int b) { Task<int> add(int a, int b) {
co_return a + b; co_return a + b;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment