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

  • Committer: Gustav Hartvigsson
  • Date: 2013-09-06 15:05:32 UTC
  • mfrom: (5.2.4 simple_type_system_SMap)
  • Revision ID: gustav.hartvigsson@gmail.com-20130906150532-tudew69vmiljy1t6
* Merged the still unfinished SMap impleementation,
* TODO:
       To build a working SMap the system must determin whether or not an
       object is a child to SBaseObjectInstance or not.

       This is a non-trivial thing to do, and req. a lot of base work:
         A lookup table for objects is needed, with appropriet functions
         and probobly a main-loop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 * This function creates a new base object.
127
127
 */
128
128
SBaseObjectInstance * s_base_object_new () {
129
 
  SBaseObjectInstance * self = malloc (sizeof (SBaseObjectInstance) + 1);
 
129
  SBaseObjectInstance * self = malloc (sizeof (SBaseObjectInstance));
130
130
  //allocate the class definition of the object.
131
131
  self->base_class = malloc (sizeof(SBaseObjectClass));
132
132
  //initize it.