X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fdebug%2Fseqnumbers.c;h=93e5378cf50e0ff2f6d24167e3267287fd1dbac6;hb=dbce362ff915753bf77eb5a923e35d3f81fd190d;hp=bb674b340b438a29a12ec47cfafdec9d99e4b328;hpb=4126c6f4324744bdb92fd91607789543f9aa0a0d;p=libfirm diff --git a/ir/debug/seqnumbers.c b/ir/debug/seqnumbers.c index bb674b340..93e5378cf 100644 --- a/ir/debug/seqnumbers.c +++ b/ir/debug/seqnumbers.c @@ -1,25 +1,35 @@ /* - * Project: libFIRM - * File name: ir/debug/seqnumbers.c - * Purpose: Implements simple sequence numbers for Firm debug info. - * Author: Michael Beck - * Modified by: - * Created: 2005 - * CVS-ID: $Id$ - * Copyright: (c) 2001-2005 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 seqnumbers.c - * - * Sequence numbers for Firm. + * @file + * @brief Implements simple sequence numbers for Firm debug info. + * @author Michael Beck + * @date 2005 + * @version $Id$ + * @summary + * Sequence numbers for Firm. * - * A sequence number is an unique number representing a filename - * and a line number. The number 0 represents empty information. - * This module is an optional "snap-in" for the Firm debug info. + * A sequence number is an unique number representing a filename + * and a line number. The number 0 represents empty information. + * This module is an optional "snap-in" for the Firm debug info. */ - #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -49,6 +59,7 @@ static int seqno_cmp(const void *elt, const void *key, size_t size) { seqno_t e1 = (seqno_t)elt; seqno_t e2 = (seqno_t)key; + (void) size; return (e1->filename != e2->filename) | (e1->lineno - e2->lineno); }