Changeset 22851 for v6

Show
Ignore:
Timestamp:
11/01/08 23:50:57 (2 months ago)
Author:
ruoso
Message:

[smop] test/01 no longer casts 1 and 2 to SMOPObject*

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/test/01_smop_lowlevel.c

    r21267 r22851  
    2626                                    SMOP__Object* identifier, 
    2727                                    SMOP__Object* capture) { 
    28   if ((int)identifier == 1) { 
     28  if ((int)identifier == SMOP__ID__new) { 
    2929    printf("ok 3 - method 1 should be called early.\n"); 
    30   } else if ((int)identifier == 2) { 
     30  } else if ((int)identifier == SMOP__ID__invocant) { 
    3131    printf("ok 4 - method 2 should be called immediatly afterwards.\n"); 
    3232  } else if (identifier == SMOP__ID__DESTROYALL) { 
     
    7575  printf("ok 2 - got new interp successfully %p.\n",intrp); 
    7676 
    77   SMOP_DISPATCH(intrp, ri, (SMOP__Object*)1, NULL); 
     77  SMOP_DISPATCH(intrp, ri, SMOP__ID__new, NULL); 
    7878 
    7979  /* At this point, the destruction code for the object will be put in 
     
    8484  SMOP_RELEASE(intrp, obj); 
    8585 
    86   SMOP_DISPATCH(intrp, ri, (SMOP__Object*)2, NULL); 
     86  SMOP_DISPATCH(intrp, ri, SMOP__ID__invocant, NULL); 
    8787 
    8888  SMOP_DISPATCH(intrp, SMOP_RI(intrp),