X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/1b8ae6904556859bbe91aadf35b8adcc1a0611ce..5ca29538dc03edec2ad7043a925ceb4b12c1d950:/src/flagSpec.c diff --git a/src/flagSpec.c b/src/flagSpec.c index f1a90f9..939a07d 100644 --- a/src/flagSpec.c +++ b/src/flagSpec.c @@ -17,8 +17,8 @@ ** the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, ** MA 02111-1307, USA. ** -** For information on splint: splint@cs.virginia.edu -** To report a bug: splint-bug@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 */ /* @@ -30,7 +30,10 @@ static /*@only@*/ flagSpecItem flagSpecItem_create (/*@only@*/ cstring fname) { - flagSpecItem res = (flagSpecItem) dmalloc (sizeof (*res)); + flagSpecItem res = (flagSpecItem) dmalloc (sizeof (*res)); + DPRINTF (("Creating item: [%p]", fname)); + DPRINTF (("The name is: %s", fname)); + res->name = fname; res->code = flags_identifyFlag (fname); /* Invalid flag okay for now... */ @@ -48,14 +51,16 @@ static /*@only@*/ flagSpec flagSpec_create (/*@only@*/ flagSpecItem fitem, { flagSpec res = (flagSpec) dmalloc (sizeof (*res)); res->tspec = fitem; - res->trest = frest; + res->trest = frest; + DPRINTF (("New flag spec: %s", flagSpec_unparse (res))); return res; } flagSpec flagSpec_createPlain (cstring fname) { - flagSpecItem fitem = flagSpecItem_create (fname); - flagSpec res = flagSpec_create (fitem, flagSpec_undefined); + flagSpecItem fitem = flagSpecItem_create (fname); + flagSpec res = flagSpec_create (fitem, flagSpec_undefined); + DPRINTF (("New flag spec: %s", flagSpec_unparse (res))); return res; }