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

Diff for /mandoc/mdoc.h between version 1.66 and 1.72

version 1.66, 2009/07/17 10:56:57 version 1.72, 2009/10/26 04:09:45
Line 17 
Line 17 
 #ifndef MDOC_H  #ifndef MDOC_H
 #define MDOC_H  #define MDOC_H
   
 #include <time.h>  
   
 /*  /*
  * This library implements a validating scanner/parser for ``mdoc'' roff   * This library implements a validating scanner/parser for ``mdoc'' roff
  * macro documents, a.k.a. BSD manual page documents.  The mdoc.c file   * macro documents, a.k.a. BSD manual page documents.  The mdoc.c file
Line 149 
Line 147 
 #define MDOC__Q          117  #define MDOC__Q          117
 #define MDOC_br          118  #define MDOC_br          118
 #define MDOC_sp          119  #define MDOC_sp          119
 #define MDOC_MAX         120  #define MDOC__U          120
   #define MDOC_MAX         121
   
 /* What follows is a list of ALL possible macro arguments. */  /* What follows is a list of ALL possible macro arguments. */
   
Line 179 
Line 178 
 #define MDOC_Emphasis    23  #define MDOC_Emphasis    23
 #define MDOC_Symbolic    24  #define MDOC_Symbolic    24
 #define MDOC_Nested      25  #define MDOC_Nested      25
 #define MDOC_ARG_MAX     26  #define MDOC_Centred     26
   #define MDOC_ARG_MAX     27
   
 /* Type of a syntax node. */  /* Type of a syntax node. */
 enum    mdoc_type {  enum    mdoc_type {
Line 200  enum mdoc_sec {
Line 200  enum mdoc_sec {
         SEC_SYNOPSIS,          SEC_SYNOPSIS,
         SEC_DESCRIPTION,          SEC_DESCRIPTION,
         SEC_IMPLEMENTATION,          SEC_IMPLEMENTATION,
           SEC_EXIT_STATUS,
         SEC_RETURN_VALUES,          SEC_RETURN_VALUES,
         SEC_ENVIRONMENT,          SEC_ENVIRONMENT,
         SEC_FILES,          SEC_FILES,
         SEC_EXAMPLES,          SEC_EXAMPLES,
         SEC_DIAGNOSTICS,          SEC_DIAGNOSTICS,
Line 213  enum mdoc_sec {
Line 214  enum mdoc_sec {
         SEC_AUTHORS,          SEC_AUTHORS,
         SEC_CAVEATS,          SEC_CAVEATS,
         SEC_BUGS,          SEC_BUGS,
           SEC_SECURITY,
         SEC_CUSTOM              /* User-defined. */          SEC_CUSTOM              /* User-defined. */
 };  };
   
Line 258  struct mdoc_node {
Line 260  struct mdoc_node {
         enum mdoc_type    type;          enum mdoc_type    type;
         enum mdoc_sec     sec;          enum mdoc_sec     sec;
   
         /* FIXME: union/struct this with #defines. */  
         struct mdoc_arg  *args;         /* BLOCK/ELEM */          struct mdoc_arg  *args;         /* BLOCK/ELEM */
         struct mdoc_node *head;         /* BLOCK */          struct mdoc_node *head;         /* BLOCK */
         struct mdoc_node *body;         /* BLOCK */          struct mdoc_node *body;         /* BLOCK */
Line 272  struct mdoc_node {
Line 273  struct mdoc_node {
 #define MDOC_IGN_CHARS   (1 << 3) /* Ignore disallowed chars. */  #define MDOC_IGN_CHARS   (1 << 3) /* Ignore disallowed chars. */
   
 /* Call-backs for parse messages. */  /* Call-backs for parse messages. */
 /* FIXME: unify somehow with man_cb. */  
 struct  mdoc_cb {  struct  mdoc_cb {
         int     (*mdoc_err)(void *, int, int, const char *);          int     (*mdoc_err)(void *, int, int, const char *);
         int     (*mdoc_warn)(void *, int, int, const char *);          int     (*mdoc_warn)(void *, int, int, const char *);

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.72

CVSweb