[BACK]Return to man.3 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/man.3 between version 1.17 and 1.23

version 1.17, 2010/05/25 21:46:48 version 1.23, 2010/08/16 09:51:17
Line 32 
Line 32 
 .In man.h  .In man.h
 .Vt extern const char * const * man_macronames;  .Vt extern const char * const * man_macronames;
 .Ft "struct man *"  .Ft "struct man *"
 .Fn man_alloc "void *data" "int pflags" "mandocmsg msgs"  .Fo man_alloc
   .Fa "struct regset *regs"
   .Fa "void *data"
   .Fa "int pflags"
   .Fa "mandocmsg msgs"
   .Fc
 .Ft int  .Ft int
 .Fn man_endparse "struct man *man"  .Fn man_endparse "struct man *man"
 .Ft void  .Ft void
Line 42 
Line 47 
 .Ft "const struct man_node *"  .Ft "const struct man_node *"
 .Fn man_node "const struct man *man"  .Fn man_node "const struct man *man"
 .Ft int  .Ft int
 .Fn man_parseln "struct man *man" "int line" "char *buf"  .Fo man_parseln
   .Fa "struct man *man"
   .Fa "int line"
   .Fa "char *buf"
   .Fc
 .Ft void  .Ft void
 .Fn man_reset "struct man *man"  .Fn man_reset "struct man *man"
 .Sh DESCRIPTION  .Sh DESCRIPTION
Line 107  documents to be correctly formatted:
Line 116  documents to be correctly formatted:
 \e*(PI (pi),  \e*(PI (pi),
 \e*(L" (left double-quote),  \e*(L" (left double-quote),
 \e*(R" (right double-quote),  \e*(R" (right double-quote),
 \e*(C+ (C++),  
 \e*(C` (left single-quote),  \e*(C` (left single-quote),
 \e*(C' (right single-quote),  \e*(C' (right single-quote),
 \e*(Aq (apostrophe),  \e*(Aq (apostrophe),
Line 162  Function descriptions follow:
Line 170  Function descriptions follow:
 Allocates a parsing structure.  Allocates a parsing structure.
 The  The
 .Fa data  .Fa data
 pointer is passed to callbacks in  pointer is passed to
 .Fa cb ,  .Fa msgs .
 which are documented further in the header file.  
 The  The
 .Fa pflags  .Fa pflags
 arguments are defined in  arguments are defined in
Line 282  on the finished parse tree with
Line 289  on the finished parse tree with
 .Fn parsed .  .Fn parsed .
 This example does not error-check nor free memory upon failure.  This example does not error-check nor free memory upon failure.
 .Bd -literal -offset indent  .Bd -literal -offset indent
   struct regset regs;
 struct man *man;  struct man *man;
 struct man_node *node;  struct man_node *node;
 char *buf;  char *buf;
 size_t len;  size_t len;
 int line;  int line;
   
   bzero(&regs, sizeof(struct regset));
 line = 1;  line = 1;
 man = man_alloc(NULL, 0, NULL);  man = man_alloc(&regs, NULL, 0, NULL);
 buf = NULL;  buf = NULL;
 alloc_len = 0;  alloc_len = 0;
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.23

CVSweb