Module Name: src
Committed By: wiz
Date: Wed Sep 8 22:17:27 UTC 2010
Modified Files:
src/crypto/external/bsd/netpgp/dist/src/libmj: libmj.3
Log Message:
Add RCS Id, use more markup, use standard section headers,
fill in more fields in ECMA-262 reference.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/crypto/external/bsd/netpgp/dist/src/libmj/libmj.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/netpgp/dist/src/libmj/libmj.3
diff -u src/crypto/external/bsd/netpgp/dist/src/libmj/libmj.3:1.2 src/crypto/external/bsd/netpgp/dist/src/libmj/libmj.3:1.3
--- src/crypto/external/bsd/netpgp/dist/src/libmj/libmj.3:1.2 Wed Sep 8 03:21:22 2010
+++ src/crypto/external/bsd/netpgp/dist/src/libmj/libmj.3 Wed Sep 8 22:17:27 2010
@@ -1,3 +1,4 @@
+.\" $NetBSD: libmj.3,v 1.3 2010/09/08 22:17:27 wiz Exp $
.\"
.\" Copyright (c) 2010 Alistair Crooks <[email protected]>
.\" All rights reserved.
@@ -102,7 +103,7 @@
.Pp
The
.Nm
-library can be used to create a string in memory which contains a textutal
+library can be used to create a string in memory which contains a textual
representation of a number of objects, arbitrarily structured.
The library can also be used to reconstruct the structure.
Data can thus be serialised easily and efficiently, and data structures
@@ -158,8 +159,9 @@
.Fa depth
and for the formatted output to be followed by a
.Fa trailer
-string, which is usually NULL for external calls,
-but can be any valid string.
+string, which is usually
+.Dv NULL
+for external calls, but can be any valid string.
Output is sent to the
.Fa stream
file stream.
@@ -188,8 +190,7 @@
This restriction of values for an integer type may be removed at a later date.
.Pp
Within a JSON object, the key values can be iterated over using an integer
-index to access the individual
-JSON objects.
+index to access the individual JSON objects.
The index can also be found using the
.Fn mj_object_find
function.
@@ -202,8 +203,7 @@
Arrays are implemented as a simple array.
Thus, to find an object in an array using
.Fn mj_object_find ,
-a value of 1 should be used as the
-increment value.
+a value of 1 should be used as the increment value.
This means that every entry in the internal array will be examined,
and the first match after the starting point will be returned.
For objects, an incremental value of 2 should be used,
@@ -212,13 +212,17 @@
.Xr calloc 3 ,
.Xr free 3
.Rs
+.%Q Ecma International
+.%D December 2009
+.%T ECMA-262: ECMAScript Language Specification
.%U http://www.ecma-international.org/publications/files/ecma-st/ECMA-262.pdf
+.%O 5th Edition
.Re
.Sh HISTORY
The
.Nm
library first appeared in
.Nx 6.0 .
-.Sh AUTHOR
+.Sh AUTHORS
.An Alistair Crooks Aq [email protected]
wrote this implementation and manual page.