chiark / gitweb /
Refer to the correct memory allocator.
[mLib] / man / sym.3
index 5e4a700eaf1552f7b7976e45ccae9901b5cf5014..d81186b464ceb65643b0e6d34e0139d9e368d31f 100644 (file)
--- a/man/sym.3
+++ b/man/sym.3
@@ -1,7 +1,7 @@
 .\" -*-nroff-*-
 .de VS
 .sp 1
-.RS 5
+.RS
 .nf
 .ft B
 ..
@@ -84,7 +84,7 @@ passing it to the function
 After initialization, the table contains no entries.
 .PP
 Initializing a symbol table involves allocating some memory.  If this
-allocation failes, an
+allocation fails, an
 .B EXC_NOMEM
 exception is raised.
 .PP
@@ -99,27 +99,27 @@ Most of the actual work is done by the function
 It does both lookup and creation, depending on its arguments.  To do its
 job, it needs to know the following bits of information:
 .TP
-.I t
+.BI "sym_table *" t
 A pointer to a symbol table to manipulate.
 .TP
-.I n
+.BI "const char *" n
 The address of the
 .I key
 to look up or create.  Usually this will be a simple text string,
 although it can actually be any arbitrary binary data.
 .TP
-.I l
+.BI "long " l
 The length of the key.  If this is \-1,
 .B sym_find
 assumes that the key is a null-terminated string, and calculates its
 length itself.
 .TP
-.I sz
+.BI "size_t " sz
 The size of the value block to allocate if the key could not be found.
 If this is zero, no value is allocated, and a null pointer is returned
 to indicate an unsuccessful lookup.
 .TP
-.I f
+.BI "unsigned *" f
 The address of a `found' flag to set.  This is an output parameter.  On
 exit,
 .B sym_find