X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fana%2Fdfs_t.h;h=a2de7b70c6ba4e24d3245279237d676fc900ba06;hb=f7ee5f2c535d6650ecef9af8653dcbf683cc9db2;hp=7af7bef08fb45a1e1afd94606a292a8d0dc70019;hpb=6032e9e802d2d5c696b90fd17f4b4c9bf9a39540;p=libfirm diff --git a/ir/ana/dfs_t.h b/ir/ana/dfs_t.h index 7af7bef08..a2de7b70c 100644 --- a/ir/ana/dfs_t.h +++ b/ir/ana/dfs_t.h @@ -1,24 +1,10 @@ /* - * 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. + * Copyright (C) 2012 University of Karlsruhe. */ /** - * @file dfs_t.h + * @file * @author Sebastian Hack * @date 21.04.2007 * @brief @@ -70,7 +56,7 @@ static dfs_node_t *_dfs_get_node(const dfs_t *self, const void *node) dfs_node_t templ; memset(&templ, 0, sizeof(templ)); templ.node = node; - return (dfs_node_t*) set_insert(self->nodes, &templ, sizeof(templ), hash_ptr(node)); + return set_insert(dfs_node_t, self->nodes, &templ, sizeof(templ), hash_ptr(node)); } #define _dfs_int_is_ancestor(n, m) ((m)->pre_num >= (n)->pre_num && (m)->pre_num <= (n)->max_pre_num)