=================================================================== RCS file: /cvs/docbook2mdoc/macro.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- docbook2mdoc/macro.h 2019/04/06 22:37:57 1.3 +++ docbook2mdoc/macro.h 2019/04/11 04:23:22 1.4 @@ -1,4 +1,4 @@ -/* $Id: macro.h,v 1.3 2019/04/06 22:37:57 schwarze Exp $ */ +/* $Id: macro.h,v 1.4 2019/04/11 04:23:22 schwarze Exp $ */ /* * Copyright (c) 2019 Ingo Schwarze * @@ -28,7 +28,11 @@ enum linestate { struct format { int level; /* Header level, starting at 1. */ - int spc; /* Whitespace before next macro. */ + 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; }; @@ -41,7 +45,6 @@ struct format { void macro_open(struct format *, const char *); void macro_close(struct format *); void macro_line(struct format *, const char *); -void macro_closepunct(struct format *, struct pnode *); void macro_addarg(struct format *, const char *, int); void macro_argline(struct format *, const char *, const char *);