home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / FSM.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  733b  |  26 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /* =======================================================================
  4.     FSM.h           Finite State machines.
  5.                     Version 0.01x, 93-08-04.
  6.  
  7.  _____              This version is Public Domain.
  8.  /_|__|             A.Reitsma, Delft, Nederland.
  9. /  | \  --------------------------------------------------------------- */
  10.  
  11. struct FSMstate_entry
  12. {
  13.     int state ;
  14.     int cond  ;
  15.     int next  ;
  16.     int (*action)(int);
  17. };
  18.  
  19. #define STATE_LIST_END  { -1, -1, 0, NULL }
  20. #define LIST_DEFAULT   -1
  21.  
  22. int FSMsetup( struct FSMstate_entry * StateTable );
  23. int FSMaction( int Cond );
  24.  
  25. /* === FSM.h ========================================================== */
  26.