X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2FTEMPLATE%2FTEMPLATE_map_regs.c;h=593f9aa5648ef04947e42fb6093d83a4878d5a6e;hb=c1fdf770d4d000dd5cf22daead32369342c5f5d1;hp=cd2d0f59279fe392a7601c722f313c93c36ee1fe;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/ir/be/TEMPLATE/TEMPLATE_map_regs.c b/ir/be/TEMPLATE/TEMPLATE_map_regs.c index cd2d0f592..593f9aa56 100644 --- a/ir/be/TEMPLATE/TEMPLATE_map_regs.c +++ b/ir/be/TEMPLATE/TEMPLATE_map_regs.c @@ -1,10 +1,28 @@ +/* + * 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. + */ + /** - * Register mapping for firm nodes. Stolen from bearch_firm :) - * $Id$ + * @file + * @brief Register mapping for firm nodes. Stolen from bearch_firm :) + * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -18,9 +36,10 @@ struct TEMPLATE_irn_reg_assoc { const arch_register_t *reg; }; -int TEMPLATE_cmp_irn_reg_assoc(const void *a, const void *b, size_t len) { +int TEMPLATE_cmp_irn_reg_assoc(const void *a, const void *b, size_t size) { const struct TEMPLATE_irn_reg_assoc *x = a; const struct TEMPLATE_irn_reg_assoc *y = b; + (void) size; return x->irn != y->irn; }