X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/28bf4b0bfd405a2057d865910f8589c54a40f17b..312c981596ce6202de7686f2d4c46aec1bae3939:/src/messageLog.c?ds=sidebyside diff --git a/src/messageLog.c b/src/messageLog.c index d8c5250..1525492 100644 --- a/src/messageLog.c +++ b/src/messageLog.c @@ -1,6 +1,6 @@ /* -** LCLint - annotation-assisted static program checker -** Copyright (C) 1994-2001 University of Virginia, +** Splint - annotation-assisted static program checker +** Copyright (C) 1994-2002 University of Virginia, ** Massachusetts Institute of Technology ** ** This program is free software; you can redistribute it and/or modify it @@ -17,15 +17,15 @@ ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, ** MA 02111-1307, USA. ** -** For information on lclint: lclint-request@cs.virginia.edu -** To report a bug: lclint-bug@cs.virginia.edu -** For more information: http://lclint.cs.virginia.edu +** For information on splint: info@splint.org +** To report a bug: splint-bug@splint.org +** For more information: http://www.splint.org */ /* ** messageLog.c (from slist_template.c) */ -# include "lclintMacros.nf" +# include "splintMacros.nf" # include "basic.h" /*@only@*/ messageLog @@ -51,10 +51,12 @@ msgentry_create (fileloc loc, cstring mess) return msg; } +# ifdef S_SPLINT_S static /*@unused@*/ cstring msgentry_unparse (msgentry msg) /*@*/ { return message ("%q:%s", fileloc_unparse (msg->loc), msg->msg); } +# endif static void msgentry_free (/*@only@*/ msgentry msg) { @@ -157,9 +159,6 @@ bool messageLog_add (messageLog s, fileloc fl, cstring mess) { if (msgentry_equal (msg, s->elements[ind + 1])) { - DPRINTF (("Messages equivalent: %s / %s", - msgentry_unparse (msg), - msgentry_unparse (s->elements[ind+1]))); msgentry_free (msg); return FALSE; }