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

Diff for /docbook2mdoc/macro.h between version 1.2 and 1.5

version 1.2, 2019/03/28 20:41:33 version 1.5, 2019/04/16 14:26:27
Line 26  enum linestate {
Line 26  enum linestate {
         LINE_MACRO      /* In the middle of a macro line. */          LINE_MACRO      /* In the middle of a macro line. */
 };  };
   
   enum    parastate {
           PARA_HAVE,      /* Just printed .Pp or equivalent. */
           PARA_MID,       /* In the middle of a paragraph. */
           PARA_WANT       /* Need .Pp before printing anything else. */
   };
   
 struct  format {  struct  format {
         int              level;      /* Header level, starting at 1. */          int              level;      /* Header level, starting at 1. */
           int              flags;
   #define FMT_NOSPC        (1 << 0)    /* Suppress space before next node. */
   #define FMT_ARG          (1 << 1)    /* May add argument to current macro. */
   #define FMT_CHILD        (1 << 2)    /* Expect a single child macro. */
   #define FMT_IMPL         (1 << 3)    /* Partial implicit block is open. */
         enum linestate   linestate;          enum linestate   linestate;
           enum parastate   parastate;
 };  };
   
 #define ARG_SPACE       1  /* Insert whitespace before this argument. */  #define ARG_SPACE       1  /* Insert whitespace before this argument. */
Line 40  struct format {
Line 52  struct format {
 void     macro_open(struct format *, const char *);  void     macro_open(struct format *, const char *);
 void     macro_close(struct format *);  void     macro_close(struct format *);
 void     macro_line(struct format *, const char *);  void     macro_line(struct format *, const char *);
 void     macro_closepunct(struct format *, struct pnode *);  
   
 void     macro_addarg(struct format *, const char *, int);  void     macro_addarg(struct format *, const char *, int);
 void     macro_argline(struct format *, const char *, const char *);  void     macro_argline(struct format *, const char *, const char *);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

CVSweb