Michael Clark | 4504df7 | 2007-03-13 08:26:20 +0000 | [diff] [blame^] | 1 | <!DOCTYPE html
|
| 2 | PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
| 5 | <head>
|
| 6 | <title>JSON-C - A JSON implementation in C - Win32 specific notes</title>
|
| 7 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
| 8 | </head>
|
| 9 | <body>
|
| 10 | <h2>Windows specific notes for JSON-C</h2>
|
| 11 | <p>Please send Win32 bug reports to <a href="mailto:christopher.watford@gmail.com">christopher.watford@gmail.com</a></p>
|
| 12 | <p><b>Win32 Specific Changes:</b></p>
|
| 13 | <ul>
|
| 14 | <li>
|
| 15 | Various functions have been redefined to their Win32 version (i.e. <tt>open</tt>
|
| 16 | on win32 is <tt>_open</tt>)</li>
|
| 17 | <li>
|
| 18 | Implemented missing functions from MS's libc (i.e. <tt>vasprintf</tt> and <tt>strndup</tt>)</li>
|
| 19 | <li>
|
| 20 | Added code to allow Win64 support without integer resizing issues, this
|
| 21 | probably makes it much nicer on 64bit machines everywhere (i.e. using <tt>ptrdiff_t</tt>
|
| 22 | for pointer math)</li>
|
| 23 | </ul>
|
| 24 | <p><b>Porting Changelog:</b></p>
|
| 25 | <dl>
|
| 26 | <dt><tt>printbuf.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
|
| 27 | <dd>
|
| 28 | Added a Win32/Win64 compliant implementation of <tt>vasprintf</tt></dd>
|
| 29 | <dt><tt>debug.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
|
| 30 | <dd>
|
| 31 | Removed usage of <tt>vsyslog</tt> on Win32/Win64 systems, needs to be handled
|
| 32 | by a configure script</dd>
|
| 33 | <dt><tt>json_object.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
|
| 34 | <dd>
|
| 35 | Added scope operator to wrap usage of <tt>json_object_object_foreach</tt>, this needs to be
|
| 36 | rethought to be more ANSI C friendly</dd>
|
| 37 | <dt><tt>json_object.h</tt> - C. Watford (christopher.watford@gmail.com)</dt>
|
| 38 | <dd>
|
| 39 | Added Microsoft C friendly version of <tt>json_object_object_foreach</tt></dd>
|
| 40 | <dt><tt>json_tokener.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
|
| 41 | <dd>
|
| 42 | Added a Win32/Win64 compliant implementation of <tt>strndup</tt></dd>
|
| 43 | <dt><tt>json_util.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
|
| 44 | <dd>
|
| 45 | Added cast and mask to suffice <tt>size_t</tt> v. <tt>unsigned int</tt>
|
| 46 | conversion correctness</dd>
|
| 47 | </dl>
|
| 48 | <h3>Anonymous CVS</h3>
|
| 49 | <p><code># <b>export CVSROOT=:pserver:anoncvs@cvs.metaparadigm.com:/cvsroot</b><br />
|
| 50 | # <b>cvs login</b><br />
|
| 51 | Logging in to :pserver:anoncvs@cvs.metaparadigm.com:2401/cvsroot<br />
|
| 52 | CVS password: <enter '<b>anoncvs</b>'><br />
|
| 53 | # <b>cvs co json-c</b></code></p>
|
| 54 | <p>Copyright Metaparadigm Pte. Ltd. 2004. <a href="mailto:michael@metaparadigm.com">Michael
|
| 55 | Clark </a>
|
| 56 | </p>
|
| 57 | <p>This program is free software; you can redistribute it and/or modify it under
|
| 58 | the terms of the GNU Lesser General Public (LGPL) License as published by the
|
| 59 | Free Software Foundation; either version 2.1 of the License, or (at your
|
| 60 | option) any later version.</p>
|
| 61 | <hr />
|
| 62 | </body>
|
| 63 | </html>
|