/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-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:
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.