1 /* 2 * cook - file construction tool 3 * Copyright (C) 1990-1994, 1997, 1999, 2006, 2007 Peter Miller; 4 * All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see 18 * <http://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef COOK_ID_H 22 #define COOK_ID_H 23 24 #include <common/str_list.h> 25 26 struct expr_position_ty; /* existence */ 27 struct opcode_context_ty; /* existence */ 28 29 extern string_ty *id_need; 30 extern string_ty *id_younger; 31 extern string_ty *id_targets; 32 extern string_ty *id_target; 33 extern string_ty *id_search_list; 34 35 typedef struct id_ty id_ty; 36 struct id_ty 37 { 38 struct id_method_ty *method; 39 }; 40 41 void id_initialize(void); 42 void id_reset(void); 43 void id_dump(char *); 44 45 int id_interpret(id_ty *, struct opcode_context_ty *, 46 const struct expr_position_ty *); 47 int id_interpret_script(id_ty *, struct opcode_context_ty *, 48 const struct expr_position_ty *); 49 50 #endif /* COOK_ID_H */ 51