Mercurial > repos > rhope
view runtime/blueprint.c @ 75:0083b2f7b3c7
Partially working implementation of List. Modified build scripts to allow use of other compilers. Fixed some bugs involving method implementations on different types returning different numbers of outputs. Added Fold to the 'builtins' in the comipler.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 06 Jul 2010 07:52:59 -0400 |
parents | d4b44ae2e34a |
children | 43cc42df26cc |
line wrap: on
line source
#include "blueprint.h" #include "builtin.h" #include "context.h" #include <stddef.h> typedef struct { blueprint * bp; } l_Build; object * make_Blueprint(int32_t type_id) { t_Blueprint * obj; object * ret = new_object(TYPE_BLUEPRINT); obj = (t_Blueprint *)ret; obj->bp = type_id ? get_blueprint_byid(type_id) : NULL; return ret; } int32_t _internal_blueprint_eq(object * left, object * right) { t_Blueprint * l = (t_Blueprint *)left; t_Blueprint * r = (t_Blueprint *)right; return l->bp == r->bp; }