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

Diff for /mandoc/mandoc_headers.3 between version 1.3 and 1.7

version 1.3, 2015/03/27 17:37:25 version 1.7, 2015/10/13 22:59:54
Line 54  require inclusion of the header where that type is def
Line 54  require inclusion of the header where that type is def
 Each of the following headers can be included without including  Each of the following headers can be included without including
 any other mandoc header.  any other mandoc header.
 These headers should be included before any other mandoc headers.  These headers should be included before any other mandoc headers.
 Afterwards, any other mandoc headers can be included as needed.  
 .Bl -tag -width Ds  .Bl -tag -width Ds
 .It Qq Pa mandoc_aux.h  .It Qq Pa mandoc_aux.h
 Requires  Requires
Line 99  and the functions
Line 98  and the functions
 described in  described in
 .Xr mandoc 3 .  .Xr mandoc 3 .
 .Pp  .Pp
 Uses the opaque types  Uses the opaque type
 .Vt struct mparse  .Vt struct mparse
 from  from
 .Pa read.c  .Pa read.c
 and  
 .Vt struct mchars  
 from  
 .Pa chars.c  
 for function prototypes.  for function prototypes.
 Uses the types  Uses the types
 .Vt struct mdoc  .Vt struct mdoc
Line 117  and
Line 112  and
 from  from
 .Pa libman.h  .Pa libman.h
 as opaque types for function prototypes.  as opaque types for function prototypes.
   .It Qq Pa roff.h
   Provides
   .Vt enum mdoc_endbody ,
   .Vt enum roff_sec ,
   .Vt enum roff_type ,
   .Vt struct roff_meta ,
   and
   .Vt struct roff_node .
   .Pp
   Uses pointers to the types
   .Vt struct mdoc_arg
   and
   .Vt union mdoc_data
   from
   .Qq Pa mdoc.h
   as opaque struct members.
   .El
   .Pp
   The following two require
   .Qq Pa roff.h
   but no other mandoc headers.
   Afterwards, any other mandoc headers can be included as needed.
   .Bl -tag -width Ds
 .It Qq Pa mdoc.h  .It Qq Pa mdoc.h
 Requires  Requires
 .In sys/types.h  .In sys/types.h
 for  for
 .Vt size_t .  .Vt size_t
   and
   .Qq Pa roff.h
   for
   .Vt enum roff_type .
 .Pp  .Pp
 Provides  Provides
 .Vt enum mdoct ,  
 .Vt enum mdocargt ,  .Vt enum mdocargt ,
 .Vt enum mdoc_type ,  
 .Vt enum mdoc_sec ,  
 .Vt enum mdoc_endbody ,  
 .Vt enum mdoc_disp ,  .Vt enum mdoc_disp ,
 .Vt enum mdoc_list ,  .Vt enum mdoc_list ,
 .Vt enum mdoc_auth ,  .Vt enum mdoc_auth ,
 .Vt enum mdoc_font ,  .Vt enum mdoc_font ,
 .Vt struct mdoc_meta ,  
 .Vt struct mdoc_argv ,  .Vt struct mdoc_argv ,
 .Vt struct mdoc_arg ,  .Vt struct mdoc_arg ,
 .Vt struct mdoc_bd ,  .Vt struct mdoc_bd ,
Line 141  Provides
Line 158  Provides
 .Vt struct mdoc_an ,  .Vt struct mdoc_an ,
 .Vt struct mdoc_bf ,  .Vt struct mdoc_bf ,
 .Vt struct mdoc_rs ,  .Vt struct mdoc_rs ,
 .Vt struct mdoc_node ,  
 and the functions  and the functions
 .Fn mdoc_*  .Fn mdoc_*
 described in  described in
Line 163  When this header is included, the same file should not
Line 179  When this header is included, the same file should not
 or  or
 .Pa libroff.h .  .Pa libroff.h .
 .It Qq Pa man.h  .It Qq Pa man.h
 Provides  Requires
 .Vt enum mant ,  .Qq Pa roff.h
 .Vt enum man_type ,  for
 .Vt struct man_meta ,  .Vt enum roff_type .
 .Vt struct man_node ,  .Pp
 and the functions  Provides the functions
 .Fn man_*  .Fn man_*
 described in  described in
 .Xr mandoc 3 .  .Xr mandoc 3 .
Line 204  are included, the same file should not include any for
Line 220  are included, the same file should not include any for
 Requires  Requires
 .In sys/types.h  .In sys/types.h
 for  for
 .Vt size_t  .Vt size_t ,
 and  
 .Qq Pa mandoc.h  .Qq Pa mandoc.h
 for  for
 .Vt enum mandocerr .  .Vt enum mandocerr ,
   and
   .Qq Pa roff.h
   for
   .Vt struct roff_meta
   and
   .Vt struct roff_node .
 .Pp  .Pp
 Provides  Provides
 .Vt enum rofferr ,  .Vt enum rofferr ,
Line 243  as opaque types for function prototypes.
Line 264  as opaque types for function prototypes.
 Requires  Requires
 .Qq Pa mdoc.h  .Qq Pa mdoc.h
 for  for
 .Vt enum mdoct ,  .Vt enum mdoc_*
 .Vt enum mdoc_* ,  
 and  and
 .Vt struct mdoc_* .  .Vt struct mdoc_* .
 .Pp  .Pp
Line 274  or
Line 294  or
 .Pa libroff.h .  .Pa libroff.h .
 .It Qq Pa libman.h  .It Qq Pa libman.h
 Requires  Requires
 .Qq Pa man.h  .Qq Pa roff.h
 for  for
 .Vt enum mant  .Vt struct roff_meta
 and  and
 .Vt struct man_node.  .Vt struct roff_node .
 .Pp  .Pp
 Provides  Provides
 .Vt enum man_next ,  .Vt enum man_next ,
Line 387  Provides
Line 407  Provides
 .Vt struct termp ,  .Vt struct termp ,
 and many terminal formatting functions.  and many terminal formatting functions.
 .Pp  .Pp
 Uses the opaque types  Uses the opaque type
 .Vt struct mchars  
 from  
 .Pa chars.c  
 and  
 .Vt struct termp_ps  .Vt struct termp_ps
 from  from
 .Pa term_ps.c .  .Pa term_ps.c .
Line 401  and
Line 417  and
 .Vt struct eqn  .Vt struct eqn
 from  from
 .Pa mandoc.h  .Pa mandoc.h
   and
   .Vt struct roff_meta
   from
   .Qq Pa roff.h
 as opaque types for function prototypes.  as opaque types for function prototypes.
 .Pp  .Pp
 When this header is included, the same file should not include  When this header is included, the same file should not include
Line 432  Provides
Line 452  Provides
 .Vt struct html ,  .Vt struct html ,
 and many HTML formatting functions.  and many HTML formatting functions.
 .Pp  .Pp
 Uses the opaque type  
 .Vt struct mchars  
 from  
 .Pa chars.c .  
 .Pp  
 When this header is included, the same file should not include  When this header is included, the same file should not include
 .Pa term.h  .Pa term.h
 or  or
Line 444  or
Line 459  or
 .It Qq Pa main.h  .It Qq Pa main.h
 Provides the top level steering functions for all formatters.  Provides the top level steering functions for all formatters.
 .Pp  .Pp
 Uses the opaque type  
 .Vt struct mchars  
 from  
 .Pa chars.c .  
 Uses the types  Uses the types
 .Vt struct mdoc  .Vt struct mdoc
 from  from

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.7

CVSweb