version 1.25, 2019/04/14 18:07:35 |
version 1.35, 2019/04/28 20:26:49 |
|
|
CLASS_TRANS, /* Transparent: only the children are shown. */ |
CLASS_TRANS, /* Transparent: only the children are shown. */ |
CLASS_LINE, /* Generates only simple in-line macros. */ |
CLASS_LINE, /* Generates only simple in-line macros. */ |
CLASS_ENCL, /* Explicit or implicit partial blocks. */ |
CLASS_ENCL, /* Explicit or implicit partial blocks. */ |
CLASS_BLOCK /* Output linebreak before and after. */ |
CLASS_BLOCK, /* Output linebreak before and after. */ |
|
CLASS_NOFILL /* Block preserving leading whitespace. */ |
}; |
}; |
|
|
/* |
/* |
|
|
* More DocBook XML elements are recognized, but remapped or discarded. |
* More DocBook XML elements are recognized, but remapped or discarded. |
*/ |
*/ |
enum nodeid { |
enum nodeid { |
|
NODE_ABSTRACT, |
NODE_APPENDIX, |
NODE_APPENDIX, |
NODE_ARG, |
NODE_ARG, |
NODE_AUTHOR, |
NODE_AUTHOR, |
|
|
NODE_FUNCTION, |
NODE_FUNCTION, |
NODE_GLOSSTERM, |
NODE_GLOSSTERM, |
NODE_GROUP, |
NODE_GROUP, |
|
NODE_IMAGEDATA, |
NODE_INCLUDE, |
NODE_INCLUDE, |
NODE_INDEX, |
NODE_INDEX, |
NODE_INFO, |
NODE_INFO, |
|
|
NODE_MML_MSUP, |
NODE_MML_MSUP, |
NODE_MODIFIER, |
NODE_MODIFIER, |
NODE_NOTE, |
NODE_NOTE, |
|
NODE_OLINK, |
NODE_OPTION, |
NODE_OPTION, |
NODE_ORDEREDLIST, |
NODE_ORDEREDLIST, |
NODE_PARA, |
NODE_PARA, |
|
|
NODE_PARAMETER, |
NODE_PARAMETER, |
NODE_PERSONNAME, |
NODE_PERSONNAME, |
NODE_PREFACE, |
NODE_PREFACE, |
|
NODE_PRODUCTNAME, |
NODE_PROGRAMLISTING, |
NODE_PROGRAMLISTING, |
NODE_PROMPT, |
NODE_PROMPT, |
NODE_PUBDATE, |
NODE_PUBDATE, |
|
|
NODE_SIMPLELIST, |
NODE_SIMPLELIST, |
NODE_SIMPLESECT, |
NODE_SIMPLESECT, |
NODE_SPANSPEC, |
NODE_SPANSPEC, |
|
NODE_SUBSCRIPT, |
NODE_SUBTITLE, |
NODE_SUBTITLE, |
|
NODE_SUPERSCRIPT, |
NODE_SYNOPSIS, |
NODE_SYNOPSIS, |
NODE_SYSTEMITEM, |
NODE_SYSTEMITEM, |
NODE_TABLE, |
NODE_TABLE, |
|
|
NODE_VARIABLELIST, |
NODE_VARIABLELIST, |
NODE_VARLISTENTRY, |
NODE_VARLISTENTRY, |
NODE_VARNAME, |
NODE_VARNAME, |
|
NODE_VOID, |
NODE_WARNING, |
NODE_WARNING, |
NODE_WORDASWORD, |
NODE_WORDASWORD, |
|
NODE_XREF, |
NODE_UNKNOWN, |
NODE_UNKNOWN, |
NODE_TEXT, |
NODE_TEXT, |
NODE_ESCAPE, |
NODE_ESCAPE, |
|
|
ATTRKEY_COLS, |
ATTRKEY_COLS, |
ATTRKEY_DEFINITION, |
ATTRKEY_DEFINITION, |
ATTRKEY_ENDTERM, |
ATTRKEY_ENDTERM, |
|
ATTRKEY_ENTITYREF, |
|
ATTRKEY_FILEREF, |
ATTRKEY_HREF, |
ATTRKEY_HREF, |
ATTRKEY_ID, |
ATTRKEY_ID, |
ATTRKEY_LINKEND, |
ATTRKEY_LINKEND, |
|
ATTRKEY_LOCALINFO, |
ATTRKEY_NAME, |
ATTRKEY_NAME, |
ATTRKEY_OPEN, |
ATTRKEY_OPEN, |
ATTRKEY_PUBLIC, |
ATTRKEY_PUBLIC, |
ATTRKEY_REP, |
ATTRKEY_REP, |
ATTRKEY_SYSTEM, |
ATTRKEY_SYSTEM, |
|
ATTRKEY_TARGETDOC, |
|
ATTRKEY_TARGETPTR, |
ATTRKEY_URL, |
ATTRKEY_URL, |
ATTRKEY_XLINK_HREF, |
ATTRKEY_XLINK_HREF, |
ATTRKEY__MAX |
ATTRKEY__MAX |
|
|
struct pnode { |
struct pnode { |
enum nodeid node; /* Node type. */ |
enum nodeid node; /* Node type. */ |
char *b; /* String value. */ |
char *b; /* String value. */ |
int spc; /* Whitespace before this node. */ |
|
struct pnode *parent; /* Parent node or NULL. */ |
struct pnode *parent; /* Parent node or NULL. */ |
|
int flags; |
|
#define NFLAG_LINE (1 << 0) /* New line before this node. */ |
|
#define NFLAG_SPC (1 << 1) /* Whitespace before this node. */ |
struct pnodeq childq; /* Queue of children. */ |
struct pnodeq childq; /* Queue of children. */ |
struct pattrq attrq; /* Attributes of the node. */ |
struct pattrq attrq; /* Attributes of the node. */ |
TAILQ_ENTRY(pnode) child; |
TAILQ_ENTRY(pnode) child; |
Line 246 const char *pnode_name(enum nodeid); |
|
Line 262 const char *pnode_name(enum nodeid); |
|
enum nodeclass pnode_class(enum nodeid); |
enum nodeclass pnode_class(enum nodeid); |
|
|
struct pnode *pnode_alloc(struct pnode *); |
struct pnode *pnode_alloc(struct pnode *); |
|
struct pnode *pnode_alloc_text(struct pnode *, const char *); |
void pnode_unlink(struct pnode *); |
void pnode_unlink(struct pnode *); |
void pnode_unlinksub(struct pnode *); |
void pnode_unlinksub(struct pnode *); |
enum attrval pnode_getattr(struct pnode *, enum attrkey); |
enum attrval pnode_getattr(struct pnode *, enum attrkey); |