coan 4.2.4
|
00001 #ifndef CONFIGURED_SYMBOLS_H 00002 #define CONFIGURED_SYMBOLS_H 00003 00004 /*************************************************************************** 00005 * Copyright (C) 2007-2011 Mike Kinghan, imk@strudl.org * 00006 * All rights reserved. * 00007 * * 00008 * Contributed originally by Mike Kinghan, imk@strudl.org * 00009 * * 00010 * Redistribution and use in source and binary forms, with or without * 00011 * modification, are permitted provided that the following conditions * 00012 * are met: * 00013 * * 00014 * Redistributions of source code must retain the above copyright * 00015 * notice, this list of conditions and the following disclaimer. * 00016 * * 00017 * Redistributions in binary form must reproduce the above copyright * 00018 * notice, this list of conditions and the following disclaimer in the * 00019 * documentation and/or other materials provided with the distribution. * 00020 * * 00021 * Neither the name of Symbian Software Ltd. nor the names of its * 00022 * contributors may be used to endorse or promote products derived from * 00023 * this software without specific prior written permission. * 00024 * * 00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * 00026 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * 00027 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * 00028 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * 00029 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * 00030 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * 00031 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * 00032 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * 00033 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,* 00034 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF * 00035 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH * 00036 * DAMAGE. * 00037 * * 00038 **************************************************************************/ 00039 00040 #include "state_utils.h" 00041 #include "ptr_set.h" 00042 #include "symbol.h" 00043 00051 00059 extern symbol_h 00060 configured_symbol_seek(char const **cpp); 00061 00069 extern symbol_const_h 00070 configured_symbol_seek_const(char const **cpp); 00071 00079 extern symbol_h 00080 configured_symbol_match(char const *symname, size_t len); 00081 00083 extern symbol_const_h 00084 configured_symbol_match_const(char const *symname, size_t len); 00085 00089 extern void 00090 configured_symbols_rewind(void); 00091 00100 extern symbol_h 00101 configured_symbol_find(canonical_string_const_h cs, size_t *start); 00102 00113 extern line_type_t 00114 configured_symbol_add(bool define, symbol_h sym, char const *tail, char const **pend); 00115 00121 PUBLIC_STATE_DEF(configured_symbols) 00122 { 00124 ptr_set_h global_sym_tab; 00126 ptr_set_h sym_tab; 00127 } 00128 00129 PUBLIC_STATE_T(configured_symbols); 00134 IMPORT(configured_symbols); 00138 #endif /* EOF*/