Changeset 91e77a868d76fab126a8de04f8e3b11fd2e324c5

Show
Ignore:
Timestamp:
04/14/10 00:08:17 (2 years ago)
Author:
Philip Herron <redbrain@…>
Parents:
41c78d09c225d11d8c9f5dbd3bbec838c6f90bdf
Children:
4c5f389b4583cde85e1c06f9cd61fabe3feba888
git-committer:
Philip Herron <redbrain@omicron.(none)> / 2010-04-14T00:08:17Z+0100
Message:

objects can be created now need accessor code

Location:
src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/rr_context.c

    r41c78d0 r91e77a8  
    390390        crl_malloc( sizeof(crl_obj_state_t) ); 
    391391      retval->identifier = crl_strdup( (*obj_s)->identifier ); 
    392       crl_debug("retval->identifier = <%s>!\n", retval->identifier ); 
    393392      retval->state = ((*obj_s)->state); 
    394       crl_debug("object state set!\n"); 
    395393      retval->context = crl_context_clone_branch( &((*obj_s)->context) ); 
    396394      crl_debug("cloned context!\n"); 
  • src/rr_runtime.c

    rfc30a33 r91e77a8  
    595595            { 
    596596              crl_obj_state_t *o = sym->op_a.object_state; 
    597               fprintf( fd, "object of type <%s> state <", o->identifier ); 
     597              fprintf( fd, "Object <%s> State <", o->identifier ); 
    598598              if( o->state == CLASS_UNINIT ) 
    599599                { 
    600                   fprintf( fd, "un-initilized> "); 
     600                  fprintf( fd, "UN_INIT> "); 
    601601                } 
    602602              else if( o->state == CLASS_INIT ) 
    603603                { 
    604                   fprintf( fd, "initilized> "); 
     604                  fprintf( fd, "INIT> "); 
    605605                } 
    606606              else if( o->state == CLASS_DESTROYED ) 
    607607                { 
    608                   fprintf( fd, "destroyed> "); 
    609                 } 
    610               fprintf( fd, "<%p>!\n", (void*)(o) ); 
     608                  fprintf( fd, "DESTROYED> "); 
     609                } 
     610              fprintf( fd, "At <%p>!", (void*)(o) ); 
    611611            } 
    612612          break; 
     
    708708          break; 
    709709 
     710        case TYPE_OBJ_STATE: 
     711          retval->op_a.object_state = crl_context_clone_obj_state( &((*sym)->op_a.object_state) ); 
     712          break; 
     713 
    710714        case TYPE_SYMBOL_NIL: 
    711715          retval->op_a.symbol_table= NULL; 
     
    776780              retval->op_b.stack_table= t; 
    777781            } 
     782          break; 
     783 
     784        case TYPE_OBJ_STATE: 
     785          retval->op_b.object_state = crl_context_clone_obj_state( &((*sym)->op_b.object_state) ); 
    778786          break; 
    779787