/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/Map.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-04-09 18:45:12 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150409184512-fn8m3f26mzsqdy4n
* Started to structuce the dectumentation a little better.
* Added Callback.[c,h] which will contain the methods to add callbacks to SObjects.
  This is still a work it pregross.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
*/
22
22
 
23
23
#include "Map.h"
 
24
#include "baseobject.h"
24
25
#include <stdlib.h>
25
26
 
26
27
 
48
49
  SMap * self = malloc (sizeof (SMap));
49
50
  SMapClass * klass = malloc (sizeof (SMapClass));
50
51
  
 
52
  s_object_initialize (S_OBJECT(self));
 
53
  
 
54
  s_object_set_class (S_OBJECT_CLASS(klass));
 
55
  
51
56
  self->priv = malloc (sizeof (SMapPrivate));
52
 
  
53
57
  self->priv->len = 0;
54
58
  
55
59
  klass->is_equal = comp_func;
59
63
   */
60
64
  klass->free_key = free_key;
61
65
  klass->free_value = free_value;
62
 
 
 
66
  
63
67
  return self;
64
68
}
65
69