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

  • Committer: Gustav Hartvigsson
  • Date: 2013-09-04 20:52:28 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: gustav.hartvigsson@gmail.com-20130904205228-47tx12lnxqpayfne
Started work on the Map (SMap) data structure.
Still needs a method to determin if an object is a child to
SBaseObjectInstance.

**sigh**

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
void error_deinit_method (SError * self);
15
15
 
16
16
SError * s_error_new (SErrorType error, char * message) {
17
 
  SError * self = malloc (sizeof (SError) + 1);
18
 
  SErrorClass * klass = malloc (sizeof (SErrorClass) + 1);
 
17
  SError * self = malloc (sizeof (SError));
 
18
  SErrorClass * klass = malloc (sizeof (SErrorClass));
19
19
  s_base_object_set_class ((SBaseObjectInstance *) self, (SBaseObjectClass *) klass);
20
20
  s_base_object_initize ((SBaseObjectInstance *) self);
21
21
  s_base_object_set_to_string_method ((SBaseObjectInstance *) self, error_to_string_method);