[OPEN-ILS-DEV] PATCH: osrf_json_parser.c (bug fix in _jsonParserError)

Bill Erickson erickson at esilibrary.com
Tue Dec 11 10:15:28 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Rylander wrote:
> On Dec 10, 2007 11:53 PM, Scott McKellar <mck9 at swbell.net> wrote:
>> This patch corrects some problems with _jsonParserError(), which
>> constructs and issues a message about a parsing error.  The problems
>> arise in the course of extracting a fragment of JSON text to provide
>> the context of the error.
> 
> Humbly applied.  (Yeah, those loops look silly to eyes in general now,
> I think. ;) )

Hahaaa... These are going into the hall of fame ;)

while( pre < 0 ) pre++;
while( post >= ctx->chunksize ) post--;

$1 says I felt like a genius after writing them.

- -bill

- --
Bill Erickson
| VP, Software Development & Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: erickson at esilibrary.com
| web: http://esilibrary.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXqmQTYLnlSoY2kIRAlj3AJwNRPzlQQMsu+0HzHBC6SswlCPt6QCfbXv+
0nq6exNEbmoeyDfXauc9/bA=
=4B2B
-----END PGP SIGNATURE-----


More information about the Open-ils-dev mailing list