Mercurial > repos > rhope
comparison runtime/builtin.c @ 37:640f541e9116
Added support for type declarations on user defined workers and added a few more methods to Int32 in the runtime for the C backend
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 05 Oct 2009 23:12:43 -0400 |
parents | 495dddadd058 |
children | a24eb366195c d2f9b0a9403d |
comparison
equal
deleted
inserted
replaced
36:495dddadd058 | 37:640f541e9116 |
---|---|
12 { | 12 { |
13 case TYPE_INT32: | 13 case TYPE_INT32: |
14 bp = register_type_byid(TYPE_INT32, sizeof(int32_t), NULL, NULL, NULL); | 14 bp = register_type_byid(TYPE_INT32, sizeof(int32_t), NULL, NULL, NULL); |
15 add_method(bp, METHOD_ADD, MethodName(_PL_,Int32)); | 15 add_method(bp, METHOD_ADD, MethodName(_PL_,Int32)); |
16 add_method(bp, METHOD_SUB, MethodName(_MN_,Int32)); | 16 add_method(bp, METHOD_SUB, MethodName(_MN_,Int32)); |
17 add_method(bp, METHOD_MUL, MethodName(_TM_,Int32)); | |
18 add_method(bp, METHOD_DIV, MethodName(_DV_,Int32)); | |
19 add_method(bp, METHOD_LSHIFT, MethodName(LShift,Int32)); | |
20 add_method(bp, METHOD_RSHIFT, MethodName(RShift,Int32)); | |
17 add_method(bp, METHOD_LESS, MethodName(_LT_,Int32)); | 21 add_method(bp, METHOD_LESS, MethodName(_LT_,Int32)); |
18 add_method(bp, METHOD_GREATER, MethodName(_GT_,Int32)); | 22 add_method(bp, METHOD_GREATER, MethodName(_GT_,Int32)); |
19 break; | 23 break; |
20 case TYPE_BOOLEAN: | 24 case TYPE_BOOLEAN: |
21 bp = register_type_byid(TYPE_BOOLEAN, sizeof(int32_t), NULL, NULL, NULL); | 25 bp = register_type_byid(TYPE_BOOLEAN, sizeof(int32_t), NULL, NULL, NULL); |