blob: abdb39e7c5328f1bc0cc2f156acd3cf6c8b84f4b [file] [log] [blame]
Michael Clarke6c76da2011-06-14 10:04:24 +08001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Michael Clark4504df72007-03-13 08:26:20 +00002<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4 <title>JSON-C - A JSON implementation in C - Win32 specific notes</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6 </head>
7 <body>
8 <h2>Windows specific notes for JSON-C</h2>
9 <p>Please send Win32 bug reports to <a href="mailto:christopher.watford@gmail.com">christopher.watford@gmail.com</a></p>
10 <p><b>Win32 Specific Changes:</b></p>
11 <ul>
12 <li>
13 Various functions have been redefined to their Win32 version (i.e. <tt>open</tt>
14 on win32 is <tt>_open</tt>)</li>
15 <li>
Eric Haszlakiewicz8d188152013-09-08 17:21:52 -050016 Implemented missing functions from MS's libc (i.e. <tt>vasprintf</tt>)</li>
Michael Clark4504df72007-03-13 08:26:20 +000017 <li>
18 Added code to allow Win64 support without integer resizing issues, this
19 probably makes it much nicer on 64bit machines everywhere (i.e. using <tt>ptrdiff_t</tt>
20 for pointer math)</li>
21 </ul>
22 <p><b>Porting Changelog:</b></p>
23 <dl>
24 <dt><tt>printbuf.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
25 <dd>
26 Added a Win32/Win64 compliant implementation of <tt>vasprintf</tt></dd>
27 <dt><tt>debug.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
28 <dd>
29 Removed usage of <tt>vsyslog</tt> on Win32/Win64 systems, needs to be handled
30 by a configure script</dd>
31 <dt><tt>json_object.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
32 <dd>
33 Added scope operator to wrap usage of <tt>json_object_object_foreach</tt>, this needs to be
34 rethought to be more ANSI C friendly</dd>
35 <dt><tt>json_object.h</tt> - C. Watford (christopher.watford@gmail.com)</dt>
36 <dd>
37 Added Microsoft C friendly version of <tt>json_object_object_foreach</tt></dd>
38 <dt><tt>json_tokener.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
39 <dd>
40 Added a Win32/Win64 compliant implementation of <tt>strndup</tt></dd>
41 <dt><tt>json_util.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
42 <dd>
43 Added cast and mask to suffice <tt>size_t</tt> v. <tt>unsigned int</tt>
44 conversion correctness</dd>
45 </dl>
Michael Clark4504df72007-03-13 08:26:20 +000046 <p>This program is free software; you can redistribute it and/or modify it under
Michael Clarkf6a6e482007-03-13 08:26:23 +000047 the terms of the MIT License. See COPYING for details.</p>
Michael Clark4504df72007-03-13 08:26:20 +000048 <hr />
49 </body>
50</html>