/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
34 by Gustav Hartvigsson
* Finnished test suite
1
#include <stdlib.h>
2
#include <stdio.h>
3
#include <malloc.h>
4
#include <string.h>
5
#include <stdint.h>
6
121.1.3 by Gustav Hartvigsson
* Made the GC switchable at rutime (once) when compiled with S_USE_GC set.
7
#include <SimpleTypeSystem.h>
8
34 by Gustav Hartvigsson
* Finnished test suite
9
#include "test_macros.h"
10
#include "refcount.h"
39 by Gustav Hartvigsson
* Added "check" target for testing.
11
#include "to_string.h"
12
#include "error.h"
47 by Gustav Hartvigsson
* Added a few skeletal functions to Callback.h
13
#include "dynamic_array.h"
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
14
#include "callback.h"
109.1.5 by Gustav Hartvigsson
* Getting closer to fixing the callbacks...
15
#include "linked_list.h"
16
#include "thread.h"
109.1.7 by Gustav Hartvigsson
* Fixed SMap, for the time being...
17
#include "map.h"
116.1.1 by Gustav Hartvigsson
* Implemented the SMainLoop
18
#include "mainloop.h"
43 by Gustav Hartvigsson
* Code cleanup
19
34 by Gustav Hartvigsson
* Finnished test suite
20
int main  (int argc, char ** argv, char ** argp) {
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
21
  setup_suite ("SSTS");
116.1.1 by Gustav Hartvigsson
* Implemented the SMainLoop
22
121.1.3 by Gustav Hartvigsson
* Made the GC switchable at rutime (once) when compiled with S_USE_GC set.
23
  s_mm_init (S_MM_TYPE_GC);
24
39 by Gustav Hartvigsson
* Added "check" target for testing.
25
  test_unit (test_refcount, "Refcount");
26
  test_unit (test_to_string, "To String");
27
  test_unit (test_error, "Error");
47 by Gustav Hartvigsson
* Added a few skeletal functions to Callback.h
28
  test_unit (test_dynamic_array, "Dynamic Array");
109.1.5 by Gustav Hartvigsson
* Getting closer to fixing the callbacks...
29
  test_unit (test_linked_list, "Linked List");
109.1.7 by Gustav Hartvigsson
* Fixed SMap, for the time being...
30
  test_unit (test_map, "Map");
109.1.8 by Gustav Hartvigsson
* Fixed SMap so the callbacks will work... What a single line of code can do..
31
  test_unit (test_callback, "Callback");
116.1.1 by Gustav Hartvigsson
* Implemented the SMainLoop
32
  test_unit (test_main_loop, "Main Loop");
109.1.5 by Gustav Hartvigsson
* Getting closer to fixing the callbacks...
33
  //test_unit (test_thread, "Threading");
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
34
121.1.3 by Gustav Hartvigsson
* Made the GC switchable at rutime (once) when compiled with S_USE_GC set.
35
  s_mm_cleanup ();
36
109.1.1 by Gustav Hartvigsson
* SMap seems to be broken... Or could it be SObject's Callback stuff? Or SLinkedList?
37
  end_suite ();
34 by Gustav Hartvigsson
* Finnished test suite
38
}