Subversion Repositories Kolibri OS

Rev

Rev 5975 | Rev 7746 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5965 leency 1
#define MEMSIZE 4096*120
5959 leency 2
 
3
#include "../lib/io.h"
4
#include "../lib/collection.h"
5
 
5974 leency 6
 
5959 leency 7
void main()
8
{
9
	io.run("/sys/develop/board", "");
5974 leency 10
	test1();
11
	test2();
12
}
13
 
6285 leency 14
void test1()
15
 collection s;
16
 {
5965 leency 17
	s.add("Hello");
18
	s.add("World!");
5974 leency 19
	debugln(s.get(0)); //-> Hello
20
	debugln(s.get(1)); //-> World
5965 leency 21
	s.drop();
5974 leency 22
}
23
 
5975 leency 24
void test2()
6285 leency 25
 collection_int ci;
26
 int i;
27
 {
28
	ci.add(0);
29
	ci.add(1);
30
	ci.add(2);
31
	ci.add(3);
32
	for (i=0; i 0 1 2 3
33
	ci.count--;
34
	ci.count--;
35
	ci.add(4);
36
	for (i=0; i 0 1 4
37
	ci.drop();
5959 leency 38
}