/*! ========================================================================
** Extended Template and Library
** State Machine Abstraction Class Implementation
-** $Id: _smach.h,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $
+** $Id$
**
** Copyright (c) 2002 Robert B. Quattlebaum Jr.
**
#ifdef _MSC_VER
#pragma warning (disable:4786)
-#pragma warning (disable:4290) // MSVC6 doesnt like function declarations with exception specs
+#pragma warning (disable:4290) // MSVC6 doesn't like function declarations with exception specs
#endif
//#define ETL_MUTEX_LOCK() _mutex::lock lock(mutex)
const state_base *prev_state=default_state;
// If we are already in a state, leave it and
- // colapse the state stack
+ // collapse the state stack
if(default_state)
default_state->leave_state(default_context);
while(states_on_stack) pop_state();
// If we are not in a state, then I guess
- // we were succesful.
+ // we were successful.
if(!curr_state)
return true;
const state_base* old_state=curr_state;
void *old_context=state_context;
- // Clear out the current state and it's state_context
+ // Clear out the current state and its state_context
curr_state=0;state_context=0;
// Leave the state
const state_base *prev_state=curr_state;
// If we are already in a state, leave it and
- // colapse the state stack
+ // collapse the state stack
if(curr_state)
egress();