00001 #ifndef _TOKE_FLOWCONTROL_H 00002 #define _TOKE_FLOWCONTROL_H 00003 00004 /* 00005 * OpenBIOS - free your system! 00006 * ( FCode tokenizer ) 00007 * 00008 * This program is part of a free implementation of the IEEE 1275-1994 00009 * Standard for Boot (Initialization Configuration) Firmware. 00010 * 00011 * Copyright (C) 2001-2005 Stefan Reinauer, <stepan@openbios.org> 00012 * 00013 * This program is free software; you can redistribute it and/or modify 00014 * it under the terms of the GNU General Public License as published by 00015 * the Free Software Foundation; version 2 of the License. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA 00025 * 00026 */ 00027 00028 /* ************************************************************************** 00029 * 00030 * External Variables and Function Prototypes for Support Functions 00031 * used in tokenizing FORTH Flow-Control structures. 00032 * 00033 * (C) Copyright 2005 IBM Corporation. All Rights Reserved. 00034 * Module Author: David L. Paktor dlpaktor@us.ibm.com 00035 * 00036 **************************************************************************** */ 00037 00038 00039 /* ************************************************************************** * 00040 * 00041 * Global Variables Exported 00042 * 00043 **************************************************************************** */ 00044 00045 extern int control_stack_depth; 00046 00047 /* ************************************************************************** * 00048 * 00049 * Function Prototypes / Functions Exported: 00050 * 00051 **************************************************************************** */ 00052 00053 void emit_if( void ); 00054 void emit_then( void ); 00055 void emit_else( void ); 00056 void emit_begin( void ); 00057 void emit_again( void ); 00058 void emit_until( void ); 00059 void emit_while( void ); 00060 void emit_repeat( void ); 00061 void mark_do( void ); 00062 void resolve_loop( void ); 00063 void emit_case( void ); 00064 void emit_of( void ); 00065 void emit_endof( void ); 00066 void emit_endcase( void ); 00067 00068 void announce_control_structs( int severity, char *call_cond, 00069 unsigned int abs_token_limit); 00070 void clear_control_structs_to_limit( char *call_cond, 00071 unsigned int abs_token_limit); 00072 void clear_control_structs( char *call_cond); 00073 00074 #endif /* _TOKE_FLOWCONTROL_H */