Hmm WITH patch this time... ----- Origineel bericht ----- Van: waltergooss...@home.nl Datum: maandag, maart 22, 2010 10:33 Onderwerp: [splint-discuss] Small patch Aan: splint-discuss@mail.cs.virginia.edu
> Hi list, > > Using splint I found that the "hh" modifier in sscanf is not > supported. Attached is a patch to add this. I'm not quite sure if this > is the right place to send this patch to but splint seems mostly > abandoned so I thought this might help a bit reviving a great project! > > Greetz > Walter > > PS: If no-one has time/interrest in accepting patches like this, I'll > volunteer to step up, not being a hard-core splint guru but willing to > learn. > _______________________________________________ > splint-discuss mailing list > splint-discuss@mail.cs.virginia.edu > http://www.cs.virginia.edu/mailman/listinfo/splint-discuss
Index: src/exprNode.c =================================================================== RCS file: /cvsroot/splint/splint/src/exprNode.c,v retrieving revision 1.85 diff -u -r1.85 exprNode.c --- src/exprNode.c 12 Jan 2004 22:50:56 -0000 1.85 +++ src/exprNode.c 22 Mar 2010 09:52:29 -0000 @@ -1852,6 +1852,14 @@ key = *(++code); codetext = cstring_appendChar (codetext, key); fileloc_incColumn (formatloc); + /* Check for a "double h" argument */ + if (key == 'h') + { + modtype = ctype_char; /* char */ + key = *(++code); + codetext = cstring_appendChar (codetext, key); + fileloc_incColumn (formatloc); + } } else if (key == 'l' || key == 'L') {
_______________________________________________ splint-discuss mailing list splint-discuss@mail.cs.virginia.edu http://www.cs.virginia.edu/mailman/listinfo/splint-discuss