X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fdfs.h;h=13fa5ae435fe329f859618b88f8599b33b593602;hb=e775a978fff2841e0722c47f13545b54d48b8f98;hp=fded933e7af58be04a0280056fd15b530ae2f494;hpb=73660ffae4a673bc11dba89455ecba9b80938298;p=libfirm diff --git a/ir/ana/dfs.h b/ir/ana/dfs.h index fded933e7..13fa5ae43 100644 --- a/ir/ana/dfs.h +++ b/ir/ana/dfs.h @@ -1,22 +1,39 @@ -/** - * @file dfs.h - * @date 20.04.2007 - * @author Sebastian Hack +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * - * Primitive depth-first search on the CFG. + * 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. * - * Copyright (C) 2007 Universitaet Karlsruhe - * Released under the GPL + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ -#ifndef _DFS_H -#define _DFS_H +/** + * @file dfs.h + * @author Sebastian Hack + * @date 20.04.2007 + * @version $Id$ + * @brief + * + * Primitive depth-first search on the CFG. + */ +#ifndef FIRM_ANA_DFS_H +#define FIRM_ANA_DFS_H #include "absgraph.h" -typedef struct _dfs_t dfs_t; -typedef struct _dfs_node_t dfs_node_t; -typedef struct _dfs_edge_t dfs_edge_t; +typedef struct dfs_t dfs_t; +typedef struct dfs_node_t dfs_node_t; +typedef struct dfs_edge_t dfs_edge_t; typedef enum { DFS_EDGE_ANC, @@ -25,10 +42,10 @@ typedef enum { DFS_EDGE_BACK } dfs_edge_kind_t; -extern dfs_edge_kind_t dfs_get_edge_kind(const dfs_t *dfs, void *src, void *tgt); +extern dfs_edge_kind_t dfs_get_edge_kind(const dfs_t *dfs, const void *src, const void *tgt); extern dfs_t *dfs_new(const absgraph_t *graph_impl, void *graph); extern void dfs_free(dfs_t *dfs); extern void dfs_dump(const dfs_t *dfs, FILE *file); -#endif /* _DFS_H */ +#endif /* FIRM_ANA_DFS_H */