2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
8 #include <proto/pertask.h>
9 #include <proto/userel.h>
11 #include "pertaskvalue.h"
13 int main (int argc
, char ** argv
)
15 ULONG vec
[3] = {1, 2, 0};
18 vec
[2] = DummyAdd(vec
[0], vec
[1]);
20 Printf("%ld+%ld=%ld\n",vec
[0], vec
[1], vec
[2]);
22 parent
= PertaskGetParentBase();
24 Printf("ParentBase = %p\n",parent
);
26 Printf("104 205 306 407:\n");
27 DummyPrint4(101, 202, 303, 404);
30 Printf("\n1 == %ld ?\n", PertaskGetValue());
31 Printf("1 == %ld ?\n", GetChildValue());
34 Printf("\n2 == %ld ?\n", GetChildValue());