aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Skeleton of documentation functions, types, and variables in mandoc.h.Kristaps Dzonsons2011-04-091-2/+43
|
* Lint catching some potential issues.Kristaps Dzonsons2011-04-091-4/+4
|
* Remove a2roffdeco() and mandoc_special() functions and replace them withKristaps Dzonsons2011-04-0910-535/+480
| | | | | | | | | | | | | | | | | | a public (mandoc.h) function mandoc_escape(), which merges the functionality of both prior functions. Reason: code duplication. The a2roffdeco() and mandoc_special() functions were pretty much the same thing and both quite complex. This allows one function to receive improvements in (e.g.) subexpression handling and performance, instead of having to replicate functionality. As such, the mandoc_escape() function already handles a superset of the escapes handled in previous versions and has improvements in performance (using strcspn(), for example) and reliable handling of subexpressions. This code Works For Me, but may need work to catch any regressions. Since the benefits are great (leaner code, simpler API), I'd rather have it in-tree than floating as a patch.
* Don't shadow global identifiers.Joerg Sonnenberger2011-04-072-19/+19
|
* First, properly escape periods with \&. Then consistently refer toKristaps Dzonsons2011-04-061-63/+84
| | | | | | | | | | non-macro lines as "text lines" (after defining them as such). Clean up notion of font scope. Note comma usage in multiple `Nm's. Note ordering of SYNOPSIS section stuff. Add some bits about DESCRIPTION syntax (brief description, then args). Note that `Bl' can also contain HEAD. Finally, fix some `Cm' entries to be properly `Ar'. Ok Jason McIntyre.
* On .de macro lines, after the macro name, space and tab are equivalent.Ingo Schwarze2011-04-051-6/+4
| | | | | Bug reported by Tristan dot LeGuern at gmail dot com in fvwm2(1). tweaks and ok kristaps@; earlier version looked good to espie@ as well
* Lint-checks over mandoc-db.c.Kristaps Dzonsons2011-04-051-19/+15
|
* Use a little more horsepower in parsing out NAME sections from -manKristaps Dzonsons2011-04-051-17/+57
| | | | manuals. This covers the majority case.
* Fix type- and NULL-check to be correct node (last, not child). PreventsKristaps Dzonsons2011-04-051-2/+2
| | | | segfault in NetBSD.
* Add mandoc-db.c checking for utility-name in NAME section of -manKristaps Dzonsons2011-04-051-4/+78
| | | | documents.
* Make sure to create LIBDIR. From a patch by Thomas Klausner, thanks!Kristaps Dzonsons2011-04-051-0/+1
|
* Add config.h Glue for OpenIndiana (and older OpenSolaris) to build.Kristaps Dzonsons2011-04-044-4/+20
| | | | From a patch by Yuri Pankov, thanks!
* Suppress a space following the "(" for -T[x]html `Fn'. Found by randomKristaps Dzonsons2011-04-041-1/+2
| | | | perusal of online manuals.
* Snafu: forgetting to tar up critical files. Pointed out by Yuri Pankov.VERSION_1_11_1Kristaps Dzonsons2011-04-041-0/+4
|
* Remove an unused variable (caught in lint-check)Kristaps Dzonsons2011-04-041-4/+2
|
* Version up to 1.11.1: here we go!Kristaps Dzonsons2011-04-042-4/+4
|
* Have `Fd' detection in mandoc-db also look for local includes (i.e.,Kristaps Dzonsons2011-04-041-3/+3
| | | | those that are quoted and not angular-bracketed).
* Have `Fd' in -T[x]html generate an "include" link if it detects oneKristaps Dzonsons2011-04-041-5/+53
| | | | being used.
* Fix a bug that slip in: PAIR_XXXX macros expanded to run the incrementKristaps Dzonsons2011-04-041-2/+3
| | | | twice.
* Last low-hanging removal of superfluous variable assignments.Kristaps Dzonsons2011-04-041-7/+14
|
* Clean up superfluous variables in `Xr' handling in -Tascii.Kristaps Dzonsons2011-04-041-10/+10
|
* Fully fix the `Rv' and `Ex' handlers for -T[x]html and -Tascii. ThisKristaps Dzonsons2011-04-042-28/+36
| | | | includes an unreported bug where `Ex' wasn't properly adding a newline.
* Clean up -Tascii in the same way as -T[x]html regarding `Rv' arguments.Kristaps Dzonsons2011-04-041-11/+16
|
* Make `Rv' do the Right Thing regarding commas and "and" when listing itsKristaps Dzonsons2011-04-041-20/+27
| | | | | output. This also makes it easier to read. While here, remove superfluous assignment to local variables for this and `Mt'.
* Roll back Linux-ism that crept into Makefile.Kristaps Dzonsons2011-04-041-1/+1
|
* Fix possible segfaults in `Lk' -T[x]html handler, which made someKristaps Dzonsons2011-04-042-11/+13
| | | | | assumptions about its children. Also remove superfluous reassignment to local variable.
* Clean-up in -T[x]html: remove some unnecessary assignments to localKristaps Dzonsons2011-04-041-23/+21
| | | | variables.
* Clean up handling of `In' for -T[x]html such that it only links to theKristaps Dzonsons2011-04-041-12/+29
| | | | | first argument. groff of course doesn't do links, but it will uglify subsequent arguments in the list (we warn about >1, anyway).
* Add manual page for mandoc-db (mostly to document the file format ofKristaps Dzonsons2011-04-042-17/+150
| | | | | the generated index and keyword databases). Add some documentation within mandoc-db.c.
* Have mandoc-db create an recno-addressed index of files alongside theKristaps Dzonsons2011-04-031-60/+84
| | | | keyword database, which references the index of hard-coding files.
* Have mandoc-db use config.h for strlcat(). Then create the btreeKristaps Dzonsons2011-04-032-33/+41
| | | | | | database from a directory, instead of a path. This is because it'll also output an index of files to that same directory. Add documentation to the local variable names, too.
* If wlevel in mparse_alloc() is greater than MANDOCLEVEL_FATAL, we'llKristaps Dzonsons2011-04-031-1/+3
| | | | | | throw assertions due to per-file-error not being properly set in mmsg(). This is reasonable behaviour (we shouldn't be able to ignore FATAL after all). Thus, make sure wlevel is sanitised.
* Allow mparse_result() pointers to be NULL.Kristaps Dzonsons2011-04-031-3/+5
|
* Make uname have its return value checked for -1 (POSIX style), notKristaps Dzonsons2011-04-031-2/+2
| | | | non-zero. From a PR by Yuri Pankov, ok schwarze@.
* Add an initial keyword-indexer as an alternative front-end to libmandoc.a.Kristaps Dzonsons2011-04-022-0/+650
| | | | | | | | | | | | | | This will be used during BSDCan-2011, paired with a web front-end, as a demonstrandum of semantic annotations (mdoc) versus those of man. This isn't linked to the build in any way but for cleaning created files. This code has been heavily tested under valgrind and is known to work on GNU/Linux (needs -ldb library), all BSDs, and Mac OSX. Please don't repost this, for the time being, as I don't want to spoil the fun for the conference. This utility is still constantly under development (e.g., it will also generate a recno database of filenames and `Nd' output so that paths needn't be hard-coded) but is mature enough to warrant being checked in.
* In reality `In' only accepts one argument. Subsequent ones are notKristaps Dzonsons2011-04-011-2/+2
| | | | | included in the brackets. We really should have a warning about this, but that'll wait for another day.
* Properly quote arguments in `Fn' documentation. Also make standaloneKristaps Dzonsons2011-04-011-5/+5
| | | | '...' have a properly-escaped initial dot.
* Allow a NULL mmsg passed to libmandoc.Kristaps Dzonsons2011-03-311-2/+3
|
* Make -Werr be -Wlevel, keeping it in sync with mandoc.1. Noted byKristaps Dzonsons2011-03-311-2/+2
| | | | Alexander Schrijver---thanks!
* naddy@ reports rsync(1)Ingo Schwarze2011-03-301-1/+49
|
* Add lint target to Makefile.Kristaps Dzonsons2011-03-291-16/+73
|
* Getting ready for next [minor-number] release.Kristaps Dzonsons2011-03-291-1/+22
|
* Carefully let mandoc_getcontrol() handle libroff's detection of a macroKristaps Dzonsons2011-03-292-36/+23
| | | | | | | | | line. Note that we now properly ignore \.", which earlier would have been pushed through macro detection. This required attention to all entries of roff_parse(). This removes a TODO by schwarze@ to the effect that \. can be a control character, which is now handled in mandoc_getcontrol().
* Make libman use mandoc_getcontrol() for real this time.Kristaps Dzonsons2011-03-291-47/+23
|
* Have libman and libmdoc use mandoc_getcontrol() to determine whether aKristaps Dzonsons2011-03-283-44/+53
| | | | macro has been invoked. libroff is next.
* Put mandocerrs and mandoclevels arrays into libmandoc with accessorsKristaps Dzonsons2011-03-285-126/+152
| | | | mparse_strerror() and mparse_strlevel().
* new: \. at the beginning of a lineIngo Schwarze2011-03-231-6/+7
| | | | partially done: date cleanup
* As per joerg@'s suggestion, use const arrays when looking up mdoc argvs.Kristaps Dzonsons2011-03-231-38/+69
|
* Merge man_args() into man_macro.c, the only place where it's called, andKristaps Dzonsons2011-03-234-56/+22
| | | | | | make its return value boolean (we don't care about QWORD). We can move it into mdoc_macro.c because it's basically just a wrapper around mandoc_getarg(). Then blow away man_argv.c, which is left empty.
* First, make -man ARGS_EOLN et al. be an enum. Second, removeKristaps Dzonsons2011-03-233-32/+18
| | | | | ARGS_ERROR, as it is never returned by man_args(). Then clean up invocations of man_args() to only check for ARGS_EOLN.