diff runtime/blueprint.h @ 186:ba35ab624ec2

Add support for raw C function output from C backend as well as an option to use Boehm-GC instead of reference counting
author Mike Pavone <pavone@retrodev.com>
date Fri, 07 Oct 2011 00:10:02 -0700
parents 9fab36cc706b
children
line wrap: on
line diff
--- a/runtime/blueprint.h	Wed Jul 27 21:32:40 2011 -0700
+++ b/runtime/blueprint.h	Fri Oct 07 00:10:02 2011 -0700
@@ -11,20 +11,17 @@
 int32_t _internal_blueprint_eq(object * left, object * right);
 int32_t _internal_blueprint_rawsize(object * bp);
 
-typedef struct {
-	blueprint * bp;
-} lt_Build;
+#define ldec_Build lvar(blueprint *, bp)
+LocalsType(ldec_Build, Build)
 
-typedef struct {
-	blueprint * bp;
-} lt_BlueprintSP_Of;
 
-typedef struct {
-	object * id;
-} lt_ID;
+#define ldec_BlueprintSP_Of lvar(blueprint *, bp)
+LocalsType(ldec_BlueprintSP_Of ,BlueprintSP_Of)
 
-typedef struct {
-	uint32_t type;
-} lt_BlueprintSP_FromSP_ID;
+#define ldec_ID lvar(object *, id)
+LocalsType(ldec_ID, ID)
+
+#define ldec_BlueprintSP_FromSP_ID lvar(uint32_t, type)
+LocalsType(ldec_BlueprintSP_FromSP_ID, BlueprintSP_FromSP_ID)
 
 #endif //BLUEPRINT_H_