- Timestamp:
- 09/21/08 16:09:51 (2 months ago)
- Location:
- v6/smop
- Files:
-
- 6 modified
-
include/smop_s1p.h (modified) (1 diff)
-
src/idconst.c (modified) (1 diff)
-
src/smop_mold.c (modified) (2 diffs)
-
src/smop_s1p_code.sm0p (modified) (1 diff)
-
src/smop_s1p_io.ri (modified) (1 diff)
-
tools/ri (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
v6/smop/include/smop_s1p.h
r22300 r22303 63 63 SMOP__Object* invocant = SMOP__NATIVE__capture_invocant(interpreter, capture); \ 64 64 assert(SMOP_RI(invocant) == (SMOP__ResponderInterface*)self) 65 #define ___VALUE_FETCH___\ 66 ret = invocant; 67 #define ___VALUE_STORE___ \ 68 { \ 69 fprintf(stderr, "can't call STORE or an read-only value at %s line %d file %s\n",__func__,__LINE__,__FILE__); \ 70 abort(); \ 71 } 65 72 66 73 #define ___UNKNOWN_METHOD___ \ -
v6/smop/src/idconst.c
r22017 r22303 54 54 } 55 55 56 static SMOP__Object* idconst_message(SMOP__Object* stack,56 static SMOP__Object* idconst_message(SMOP__Object* interpreter, 57 57 SMOP__ResponderInterface* self, 58 58 SMOP__Object* identifier, 59 59 SMOP__Object* capture) { 60 ___UNKNOWN_METHOD___; 60 ___NATIVE_CAPTURE_ONLY___; 61 ___CONST_IDENTIFIER_ONLY___; 62 ___INVOCANT_RI_SHOULD_MATCH___; 63 64 SMOP__Object* ret = SMOP__NATIVE__bool_false; 65 66 if (SMOP__ID__FETCH == identifier) { 67 ___VALUE_FETCH___; 68 } else if (SMOP__ID__STORE == identifier) { 69 ___VALUE_STORE___; 70 } else { 71 ___UNKNOWN_METHOD___; 72 } 73 74 SMOP_RELEASE(interpreter,invocant); 75 SMOP_RELEASE(interpreter,capture); 76 return ret; 61 77 } 62 78 -
v6/smop/src/smop_mold.c
r22283 r22303 42 42 int position; 43 43 SMOP__Object* back; 44 SMOP__Object* ctx;45 44 SMOP__Object** registers; 46 45 int target; … … 93 92 ret->position = 0; 94 93 ret->back = NULL; 95 ret->ctx = SMOP__NATIVE__bool_false;96 94 ret->registers = (SMOP__Object**) calloc(mold->registers,sizeof(SMOP__ResponderInterface)); 97 95 ret->target = 0; -
v6/smop/src/smop_s1p_code.sm0p
r22282 r22303 94 94 if (outer) SMOP_RELEASE(interpreter,outer); 95 95 96 } else if (SMOP__ID__FETCH == identifier) { 97 ___VALUE_FETCH___; 98 } else if (SMOP__ID__STORE == identifier) { 99 ___VALUE_STORE___; 96 100 } else { 97 101 ___UNKNOWN_METHOD___; -
v6/smop/src/smop_s1p_io.ri
r22274 r22303 2 2 %RI.id lowlevel io 3 3 %prefix smop_s1p_io 4 %include <stdlib.h>,<stdio.h>5 4 6 5 %{ -
v6/smop/tools/ri
r22281 r22303 58 58 #include <smop_lowlevel.h> 59 59 #include <smop_s1p.h> 60 #include <stdlib.h> 61 #include <stdio.h> 60 62 ]; 61 63 for (split (/,/,$properties{include} || '')) {
