Changeset 27 for trunk/orca/ovalue.c

Show
Ignore:
Timestamp:
02/07/06 16:12:19 (3 years ago)
Author:
krobillard
Message:

Added orResetEnv().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/ovalue.c

    r26 r27  
    523523    memReport( 1 ); 
    524524#endif 
     525} 
     526 
     527 
     528/** 
     529  Recover from an error.  It does not modify any existing values; nothing 
     530  is freed and no files are closed. 
     531  This should only be used from outside a top-level eval call. 
     532*/ 
     533void orResetEnv( OEnv* env ) 
     534{ 
     535    env->callStack.used = 0; 
     536    env->dataStack.used = 0; 
     537    env->quickHoldsTop = env->quickHolds; 
     538    env->error = 0;      //orErrorClear; 
    525539} 
    526540