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

Diff for /mandoc/mandoc.3 between version 1.32 and 1.36

version 1.32, 2015/07/19 06:05:16 version 1.36, 2016/01/08 17:48:09
Line 1 
Line 1 
 .\"     $Id$  .\"     $Id$
 .\"  .\"
 .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>  .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
 .\" Copyright (c) 2010, 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>  .\" Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org>
 .\"  .\"
 .\" Permission to use, copy, modify, and distribute this software for any  .\" Permission to use, copy, modify, and distribute this software for any
 .\" purpose with or without fee is hereby granted, provided that the above  .\" purpose with or without fee is hereby granted, provided that the above
Line 50 
Line 50 
 .Fa "int options"  .Fa "int options"
 .Fa "enum mandoclevel wlevel"  .Fa "enum mandoclevel wlevel"
 .Fa "mandocmsg mmsg"  .Fa "mandocmsg mmsg"
 .Fa "const struct mchars *mchars"  
 .Fa "char *defos"  .Fa "char *defos"
 .Fc  .Fc
 .Ft void  .Ft void
Line 74 
Line 73 
 .Fo mparse_keep  .Fo mparse_keep
 .Fa "struct mparse *parse"  .Fa "struct mparse *parse"
 .Fc  .Fc
 .Ft "enum mandoclevel"  .Ft int
 .Fo mparse_open  .Fo mparse_open
 .Fa "struct mparse *parse"  .Fa "struct mparse *parse"
 .Fa "int *fd"  
 .Fa "const char *fname"  .Fa "const char *fname"
 .Fc  .Fc
 .Ft "enum mandoclevel"  .Ft "enum mandoclevel"
Line 178  or
Line 176  or
 parse it with  parse it with
 .Fn mparse_readfd ;  .Fn mparse_readfd ;
 .It  .It
   close it with
   .Xr close 2 ;
   .It
 retrieve the syntax tree with  retrieve the syntax tree with
 .Fn mparse_result ;  .Fn mparse_result ;
 .It  .It
Line 210  An error or warning message during parsing.
Line 211  An error or warning message during parsing.
 A classification of an  A classification of an
 .Vt "enum mandocerr"  .Vt "enum mandocerr"
 as regards system operation.  as regards system operation.
 .It Vt "struct mchars"  
 An opaque pointer to a a character table.  
 Created with  
 .Xr mchars_alloc 3  
 and freed with  
 .Xr mchars_free 3 .  
 .It Vt "struct mparse"  .It Vt "struct mparse"
 An opaque pointer to a running parse sequence.  An opaque pointer to a running parse sequence.
 Created with  Created with
Line 340  A callback function to handle errors and warnings.
Line 335  A callback function to handle errors and warnings.
 See  See
 .Pa main.c  .Pa main.c
 for an example.  for an example.
 .It Ar mchars  
 An opaque pointer to a a character table obtained from  
 .Xr mchars_alloc 3 .  
 .It Ar defos  .It Ar defos
 A default string for the  A default string for the
 .Xr mdoc 7  .Xr mdoc 7
Line 395  does not already end in
Line 387  does not already end in
 try again after appending  try again after appending
 .Ql .gz .  .Ql .gz .
 Save the information whether the file is zipped or not.  Save the information whether the file is zipped or not.
 Return a file descriptor open for reading in  Return a file descriptor open for reading or -1 on failure.
 .Fa fd ,  
 or -1 on failure.  
 It can be passed to  It can be passed to
 .Fn mparse_readfd  .Fn mparse_readfd
 or used directly.  or used directly.
Line 413  or
Line 403  or
 Pass the associated filename in  Pass the associated filename in
 .Va fname .  .Va fname .
 This function may be called multiple times with different parameters; however,  This function may be called multiple times with different parameters; however,
   .Xr close 2
   and
 .Fn mparse_reset  .Fn mparse_reset
 should be invoked between parses.  should be invoked between parses.
 Declared in  Declared in
Line 565  and
Line 557  and
 fields), its position in the tree (the  fields), its position in the tree (the
 .Va parent ,  .Va parent ,
 .Va child ,  .Va child ,
 .Va nchild ,  .Va last ,
 .Va next  .Va next
 and  and
 .Va prev  .Va prev

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.36

CVSweb