00001 #ifndef __FSM_VAR_H__ 00002 #define __FSM_VAR_H__ 00003 00004 /* 00005 Copyright (c) 2006-2010 Trevor Williams 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by the Free Software 00009 Foundation; either version 2 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00012 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00013 See the GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License along with this program; 00016 if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00026 #include "defines.h" 00027 00028 00030 fsm_var* fsm_var_add( 00031 const char* funit_name, 00032 int line, 00033 expression* in_state, 00034 expression* out_state, 00035 char* name, 00036 bool exclude 00037 ); 00038 00040 void fsm_var_bind_add( char* sig_name, expression* expr, char* funit_name ); 00041 00043 void fsm_var_stmt_add( statement* stmt, char* funit_name ); 00044 00046 void fsm_var_bind(); 00047 00049 void fsm_var_cleanup(); 00050 00051 #endif 00052