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

Diff for /mandoc/Attic/mdoc.3 between version 1.43 and 1.44

version 1.43, 2010/06/27 15:52:41 version 1.44, 2010/06/27 16:18:13
Line 35 
Line 35 
 .Vt extern const char * const * mdoc_argnames;  .Vt extern const char * const * mdoc_argnames;
 .Ft "struct mdoc *"  .Ft "struct mdoc *"
 .Fo mdoc_alloc  .Fo mdoc_alloc
 .Fa "const struct regset *regs"  .Fa "struct regset *regs"
 .Fa "void *data"  .Fa "void *data"
 .Fa "int pflags"  .Fa "int pflags"
 .Fa "mandocmsg msgs"  .Fa "mandocmsg msgs"
Line 259  on the finished parse tree with
Line 259  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 mdoc *mdoc;  struct mdoc *mdoc;
 const struct mdoc_node *node;  const struct mdoc_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;
 mdoc = mdoc_alloc(NULL, 0, NULL);  mdoc = mdoc_alloc(&regs, NULL, 0, NULL);
 buf = NULL;  buf = NULL;
 alloc_len = 0;  alloc_len = 0;
   

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

CVSweb