[OPEN-ILS-DEV] PATCH: osrf_json_parser.c (const-correctness)
Mike Rylander
mrylander at gmail.com
Thu Oct 25 08:35:21 EDT 2007
On 10/22/07, Scott McKellar <mck9 at swbell.net> wrote:
> These patches add constness to several char * parameters, of which
> each points to a string to be parsed. It makes sense for the
> input string to remain unchanged.
>
> In order to allow the results to compile, I also added constness to
> the jsonParserContext.chunk member, which is a copy of the original
> input pointer.
Applied with adjustments to the legacy_* API and the calling code in
the gateway to keep the APIs uniform.
Thanks Scott!
--
Mike Rylander
| VP, Research and Design
| Equinox Software, Inc. / The Evergreen Experts
| phone: 1-877-OPEN-ILS (673-6457)
| email: miker at esilibrary.com
| web: http://www.esilibrary.com
More information about the Open-ils-dev
mailing list