| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
out some superfluous stuff.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We now have sufficient practical experience to know what we want,
so this is intended to be final:
- provide -Wlevel (warning, error or fatal) to select what you care about
- provide -Wstop to stop after parsing a file with warnings you care about
- provide consistent exit status codes for those warnings you care about
- fully document what warnings, errors and fatal errors mean
- remove all other cruft from the user interface, less is more:
- remove all -f knobs along with the whole -f option
- remove the old -Werror because calling warnings "fatal" is silly
- always finish parsing each file, unless fatal errors prevent that
This commit also includes a couple of related simplifications behind
the scenes regarding error handling.
Feedback and OK kristaps@; Joerg Sonnenberger (NetBSD) and
Sascha Wildner (DragonFly BSD) agree with the general direction.
|
|
|
|
|
|
|
|
|
| |
roff_getstr() family of functions into roff.c with the "first_string"
directly in struct roff. Second, pre-process each line for reserved
words in libroff, splicing and re-running a line if it has one (this
allows defined symbols to be macros). Remove term.c's invocation of the
roff_getstrn() function. Removed function documentation in roff.3 and
added roff.7 `ds' documentation.
|
|
|
|
|
| |
on those parts of the code and text that i have written as Kristaps is.
"fine with me" kristaps@
|
|
|
|
| |
corrected, and a bit of clarity for my own sake.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the Rostock mandoc hackathon and tested and polished since,
supporting constructs like:
.Ao Bo Ac Bc (exp breaking exp)
.Aq Bo eol Bc (imp breaking exp)
.Ao Bq Ac eol (exp breaking imp)
.Ao Bo So Bc Ac Sc (double break, inner before outer)
.Ao Bo So Ac Bc Sc (double break, outer before inner)
.Ao Bo Ac So Bc Sc (broken breaker)
.Ao Bo So Bc Do Ac Sc Dc (broken double breaker)
There are still two known issues which are tricky:
1) Breaking two identical explicit blocks (Ao Bo Bo Ac or Aq Bo Bo eol)
fails outright, triggering a bogus syntax error.
2) Breaking a block by two identical explicit blocks (Ao Ao Bo Ac Ac Bc
or Ao Ao Bq Ac Ac eol) still has a minor rendering error left:
"<ao1 <ao2 [bo ac2> ac1> bc]>" should not have the final ">".
We can fix these later in the tree, let's not grow this diff too large.
"get it in" kristaps@
|
|
|
|
|
|
|
|
|
| |
passed in to libmdoc and libman.
Fix mdoc.3 and man.3 EXAMPLE sections to include regset.
Add MDOC_SYNPRETTY flag cueing front-end to nicely format certain values
as if SEC_SYNOPSIS were the current section.
|
|
|
|
|
|
|
|
|
| |
functionality and UGLY works quite well thanks to schwarze@'s careful
attention.
This also backs out function-prototype changes for struct regset,
instead stuffing a pointer to the regset directly into struct
mdoc/man/roff.
|
|
|
|
| |
const struct regset pointer. No functionality.
|
|
|
|
|
|
|
|
|
|
| |
will make it easy for re-entrant parsing of `Ta' macros to fit in with
standard closure rules.
Added some more regressions for `Bl -column'. Note that one should
fail, as documented in the TODO file.
Recorded change of AST BNF in mdoc.3.
|
|
|
|
|
|
|
|
|
|
|
| |
Small fix in mdoc.3 and man.3 pointing to old mdoc_cb and man_cb.
Fix in Makefile adding mandoc.h to HEADS.
Collapsed all HTML files into HTMLS variable (too confusing otherwise).
Removed "htmls" command from Makefile (only I used it and it's just
taking up space).
|
|
|
|
|
|
| |
Clean-up: new-sentence, new-line for man.3.
Clean-up: alpha-ordered man.3 `Nm' sections and prototypes.
|
|
|
|
|
|
|
| |
Clean-up: removed CAVEATS section (this should be either in the TODO
file or in mdoc.7 documenting mandoc incompatibilities).
Clean-up: alpha-ordered `Nm' and section headers.
|
|
|
|
|
| |
Using POSIX2008 idioms for examples (thanks Joerg Sonnenberger).
Removed references to fgetln().
|
|
|
|
| |
Fixed bogus `\\' escapes in some manuals.
|
|
|
|
|
| |
Fixed manuals to use `In', not `Fd'.
Moved buf* functions into html.c.
|
|
|
|
| |
Put err() functions back into front-ends (no use making it needlessly complex).
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Set max right margin to 80 columns (schwarze@openbsd.org).
Fixed centre-field heading position (schwarze@openbsd.org).
Also fixed -Tman centre-field.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Indent set to 5 chars (nroff compat).
Half-indent set to 3 chars (nroff compat).
Default behaviour is loose-y (ignore macro/char/escape).
Added -fstrict.
Added unknown-character ignoring.
|
| |
|
|
|
|
| |
Support for .br in libman.
|
|
|
|
|
| |
Fixed \\ -> \e in manual documentation.
All preliminary -man macros in place.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Renamed term.c and terminal.c functions to be term_.
Some bugfixes to lists.
|
|
|
|
| |
Cleaned up manual-page documentation.
|
|
|
|
|
|
|
|
|
|
|
| |
Added MDOC_IGNDELIM (Pf, soon Li, etc.).
macro_constant_delimited ignargs -> argv.c parsing.
Renamed macro functions to correspond to ontologies.
`Fo' and `St' made callable (compat documented).
strings.sh deprecated (directly using CPP).
Abstracted ASCII translation into ascii.{c,in}.
ASCII table uses a self-reordering chained hashtable.
Removed old regressions.
|
|
|
|
| |
mdoc.7 includes its compatibility with system-dependent roff installations.
|
| |
|
|
|
|
|
|
| |
Added .%C.
.Cd is now callable.
Added .Rv -std.
|
|
|
|
| |
mdoc.3 indicates compatibilities and bugs.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Moved mdoc_macros table definition into macro.c, where it belongs.
|
| |
|
|
|
|
| |
Added a few more escapes and macros.
|
| |
|
|
|
|
| |
Elision of prologue macros from main tree.
|
| |
|
|
|
|
|
| |
Finished mdoc.3.
Broken build: mdocml.c.
|