X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Ffirmwalk.h;h=27e5e0ddc5f17b125a22b98e1940a2e321fca00c;hb=44faeb9742640d3498eb4482f98eb1255607c4d6;hp=8fe80f94dc1dd8b80b8235b1c7dcf2ef7fc79c8f;hpb=f0f1073874982cba01a859bc63f1f2cb75d8df4d;p=libfirm diff --git a/ir/common/firmwalk.h b/ir/common/firmwalk.h index 8fe80f94d..27e5e0ddc 100644 --- a/ir/common/firmwalk.h +++ b/ir/common/firmwalk.h @@ -1,18 +1,29 @@ /* - * Project: libFIRM - * File name: ir/common/firmwalk.h - * Purpose: Walker that touches all Firm data structures - * Author: Sebastian Felis - * Modified by: - * Created: 7.2003 - * CVS-ID: $Id$ - * Copyright: (c) 2003 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ /** - * @file firmwalk.h - * + * @file + * @biref Walker that touches all Firm data structures + * @author Sebastian Felis + * @date 7.2003 + * @version $Id$ + * @summary * Firm walker over intermediate representation. * * To initialize the walker, call firm_walk_init(). This function @@ -28,13 +39,12 @@ * of any firm node, the the wrapper functions set_firm_walk_link() * and get_firm_walk_link() should be used, because the firm walker * make use of the link field to store its own data. + * @note Deprecated, better use the stuff in irgwalk.h, typewalk.h */ -#ifndef _FIRM_WALK_H_ -#define _FIRM_WALK_H_ +#ifndef FIRM_COMMON_FIRM_WALK_H +#define FIRM_COMMON_FIRM_WALK_H -#include "type.h" -#include "irgraph.h" -#include "typewalk.h" +#include "firm_types.h" #ifdef __cplusplus extern "C" { @@ -64,7 +74,7 @@ void *get_firm_walk_link(void *thing); * to a firm structure. The real link field of firm structure is used * by this firm walker to collect walking data. * - * @param thing firm structur + * @param thing firm structure * @param link Pointer to link field * * @note After calling firm_walk_finalize() the stored link @@ -79,9 +89,9 @@ typedef void firm_walk_finalize_func(void *env); /** Mode callback function definition */ typedef void firm_walk_mode_func(ir_mode *mode, void *env); /** Type callback function definition */ -typedef void firm_walk_type_func(type *tp, void *env); +typedef void firm_walk_type_func(ir_type *tp, void *env); /** Entity callback function definition */ -typedef void firm_walk_entity_func(entity *ent, void *env); +typedef void firm_walk_entity_func(ir_entity *ent, void *env); /** Graph callback function definition */ typedef void firm_walk_graph_func(ir_graph *irg, void *env); /* @{ */ @@ -218,4 +228,4 @@ void firm_walk_finalize(void); #endif -#endif /* _FIRM_WALK_H_ */ +#endif