/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/SimpleTypeSystem.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-09-15 21:22:33 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150915212233-lix9x9m4vhbhx8u6
* Clean up of SMap's for each code.
* started work on SMutex in Thread.[c,h]

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
THE SOFTWARE.
21
21
*/
22
22
 
23
 
#ifndef __INSIDE_SIMPLE_TYPE_SYSTEM_C__
24
 
#define __INSIDE_SIMPLE_TYPE_SYSTEM_C__
25
 
 
26
23
#include "SimpleTypeSystem.h"
27
24
 
28
25
#include <stdlib.h>
29
26
#include <string.h>
30
27
 
31
 
char *
 
28
schar *
32
29
s_get_version_string () {
33
 
  char * ret_val = malloc ( sizeof(char) * 32);
 
30
  schar * ret_val = malloc ( sizeof(char) * 32);
34
31
  sprintf (ret_val, "Version: %d.%d.%d ", s_get_version_major (),
35
32
                                           s_get_version_minor (),
36
33
                                           s_get_version_patch ());
37
34
  return ret_val;
38
35
}
39
36
 
40
 
int
 
37
sint
41
38
s_get_version_major () {
42
39
  return SIMPLE_TYPE_SYSTEM_VERSION_MAJOR;
43
40
}
44
41
 
45
 
int
 
42
sint
46
43
s_get_version_minor () {
47
44
  return SIMPLE_TYPE_SYSTEM_VERSION_MINOR;
48
45
}
49
46
 
50
 
int
 
47
sint
51
48
s_get_version_patch () {
52
49
  return SIMPLE_TYPE_SYSTEM_VERSION_PATCH;
53
50
}
54
51
 
55
 
#undef __INSIDE_C__
56
 
#endif