Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get mdoc_argv.c ready to use [some of] mandoc_getarg() by giving said | Kristaps Dzonsons | 2011-04-17 | 5 | -18/+20 |
| | | | | function a parameter to suppress warnings. | ||||
* | mini-bug at eol after .Bl -column .It | Ingo Schwarze | 2011-04-16 | 1 | -0/+10 |
| | |||||
* | lines in tables and .RS/.RE nesting | Ingo Schwarze | 2011-04-16 | 1 | -0/+8 |
| | |||||
* | Check in fix to roff conditional if/else stack running out of space. | Kristaps Dzonsons | 2011-04-13 | 1 | -33/+24 |
| | | | | | | | This transforms the stack pop to occur prior to body execution, instead of afterward. Floated to tech@ without response, but it makes sense that this is alright and doesn't cause problems during extensive testing. | ||||
* | Back out commit to roff.c that needs to go in on its own. | Kristaps Dzonsons | 2011-04-13 | 1 | -24/+33 |
| | |||||
* | Remove TODO from prior commit of lifting warnings from `Sh', `Ss', `SH', | Kristaps Dzonsons | 2011-04-13 | 2 | -40/+24 |
| | | | | and `SS' bodies. | ||||
* | Remove the warning for empty bodies of `Sh', `Ss', `SH', and `SS'. This | Kristaps Dzonsons | 2011-04-13 | 2 | -9/+6 |
| | | | | | | | | | | | prompted by a TODO by schwarze@, originally from Gleydson Soares, that an empty `SS' was raising an error (it hasn't for some time). It makes sense these shouldn't warn, as omitting their contents doesn't change anything in the structure of the document (groff and mandoc specifically account for the whitespace between empty sections). This doesn't change any manuals, which only refer to the line arguments (or possibly next-line, in the case of man(7) syntax). | ||||
* | empty .SS is ok | Ingo Schwarze | 2011-04-12 | 1 | -0/+7 |
| | |||||
* | Let mandoc-db also collect -man descriptions. | Kristaps Dzonsons | 2011-04-12 | 1 | -5/+25 |
| | |||||
* | Updating mandoc-db manual page with new recno contents. | Kristaps Dzonsons | 2011-04-11 | 1 | -3/+12 |
| | |||||
* | Update example.style.css to be a bit more readable by default. | Kristaps Dzonsons | 2011-04-11 | 1 | -18/+12 |
| | |||||
* | Have mandoc-db accumulate manual page descriptions (`Nd' in -mdoc parlance) | Kristaps Dzonsons | 2011-04-11 | 1 | -29/+79 |
| | | | | | in the index. This allows, with both the btree and index, full emulation of apropos(1) and other goodies. | ||||
* | Ignore \# lines alongside \". From groff(7): | Kristaps Dzonsons | 2011-04-11 | 1 | -1/+1 |
| | | | | | | \# Everything up to and including the next newline is ignored. This is interpreted in copy mode. This is like \" except that the terminating newline is ignored as well. | ||||
* | Use dbt_xxxx functions to stash both filename and manual section in the | Kristaps Dzonsons | 2011-04-11 | 1 | -16/+18 |
| | | | | | | value part of the index. This is the actual manual section---before, mandoc.cgi was relying on the file suffix, but this can be (e.g.) .man or whatnot. This is The Correct Way (tm). | ||||
* | Tidy up www page: remove all sorts of DIV crap, superfluous CSS, in-line | Kristaps Dzonsons | 2011-04-09 | 2 | -412/+363 |
| | | | | STYLE attributes, and so on. Now renders nicely in lynx. | ||||
* | Skeleton of documentation functions, types, and variables in mandoc.h. | Kristaps Dzonsons | 2011-04-09 | 1 | -0/+41 |
| | |||||
* | Lint catching some potential issues. | Kristaps Dzonsons | 2011-04-09 | 1 | -3/+3 |
| | |||||
* | Remove a2roffdeco() and mandoc_special() functions and replace them with | Kristaps Dzonsons | 2011-04-09 | 10 | -525/+470 |
| | | | | | | | | | | | | | | | | | | 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 Sonnenberger | 2011-04-07 | 2 | -17/+17 |
| | |||||
* | First, properly escape periods with \&. Then consistently refer to | Kristaps Dzonsons | 2011-04-06 | 1 | -61/+82 |
| | | | | | | | | | | 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 Schwarze | 2011-04-05 | 1 | -5/+3 |
| | | | | | 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 Dzonsons | 2011-04-05 | 1 | -18/+14 |
| | |||||
* | Use a little more horsepower in parsing out NAME sections from -man | Kristaps Dzonsons | 2011-04-05 | 1 | -16/+56 |
| | | | | manuals. This covers the majority case. | ||||
* | Fix type- and NULL-check to be correct node (last, not child). Prevents | Kristaps Dzonsons | 2011-04-05 | 1 | -1/+1 |
| | | | | segfault in NetBSD. | ||||
* | Add mandoc-db.c checking for utility-name in NAME section of -man | Kristaps Dzonsons | 2011-04-05 | 1 | -3/+77 |
| | | | | documents. | ||||
* | Make sure to create LIBDIR. From a patch by Thomas Klausner, thanks! | Kristaps Dzonsons | 2011-04-05 | 1 | -0/+1 |
| | |||||
* | Add config.h Glue for OpenIndiana (and older OpenSolaris) to build. | Kristaps Dzonsons | 2011-04-04 | 4 | -0/+16 |
| | | | | From a patch by Yuri Pankov, thanks! | ||||
* | Suppress a space following the "(" for -T[x]html `Fn'. Found by random | Kristaps Dzonsons | 2011-04-04 | 1 | -0/+1 |
| | | | | perusal of online manuals. | ||||
* | Snafu: forgetting to tar up critical files. Pointed out by Yuri Pankov.VERSION.1.11.1 | Kristaps Dzonsons | 2011-04-04 | 1 | -0/+4 |
| | |||||
* | Remove an unused variable (caught in lint-check) | Kristaps Dzonsons | 2011-04-04 | 1 | -3/+1 |
| | |||||
* | Version up to 1.11.1: here we go! | Kristaps Dzonsons | 2011-04-04 | 2 | -3/+3 |
| | |||||
* | Have `Fd' detection in mandoc-db also look for local includes (i.e., | Kristaps Dzonsons | 2011-04-04 | 1 | -2/+2 |
| | | | | those that are quoted and not angular-bracketed). | ||||
* | Have `Fd' in -T[x]html generate an "include" link if it detects one | Kristaps Dzonsons | 2011-04-04 | 1 | -4/+52 |
| | | | | being used. | ||||
* | Fix a bug that slip in: PAIR_XXXX macros expanded to run the increment | Kristaps Dzonsons | 2011-04-04 | 1 | -1/+2 |
| | | | | twice. | ||||
* | Last low-hanging removal of superfluous variable assignments. | Kristaps Dzonsons | 2011-04-04 | 1 | -6/+13 |
| | |||||
* | Clean up superfluous variables in `Xr' handling in -Tascii. | Kristaps Dzonsons | 2011-04-04 | 1 | -9/+9 |
| | |||||
* | Fully fix the `Rv' and `Ex' handlers for -T[x]html and -Tascii. This | Kristaps Dzonsons | 2011-04-04 | 2 | -26/+34 |
| | | | | 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 Dzonsons | 2011-04-04 | 1 | -10/+15 |
| | |||||
* | Make `Rv' do the Right Thing regarding commas and "and" when listing its | Kristaps Dzonsons | 2011-04-04 | 1 | -19/+26 |
| | | | | | 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 Dzonsons | 2011-04-04 | 1 | -1/+1 |
| | |||||
* | Fix possible segfaults in `Lk' -T[x]html handler, which made some | Kristaps Dzonsons | 2011-04-04 | 2 | -10/+12 |
| | | | | | assumptions about its children. Also remove superfluous reassignment to local variable. | ||||
* | Clean-up in -T[x]html: remove some unnecessary assignments to local | Kristaps Dzonsons | 2011-04-04 | 1 | -22/+20 |
| | | | | variables. | ||||
* | Clean up handling of `In' for -T[x]html such that it only links to the | Kristaps Dzonsons | 2011-04-04 | 1 | -11/+28 |
| | | | | | 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 of | Kristaps Dzonsons | 2011-04-04 | 2 | -16/+149 |
| | | | | | the generated index and keyword databases). Add some documentation within mandoc-db.c. | ||||
* | Have mandoc-db create an recno-addressed index of files alongside the | Kristaps Dzonsons | 2011-04-03 | 1 | -59/+83 |
| | | | | keyword database, which references the index of hard-coding files. | ||||
* | Have mandoc-db use config.h for strlcat(). Then create the btree | Kristaps Dzonsons | 2011-04-03 | 2 | -32/+40 |
| | | | | | | 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'll | Kristaps Dzonsons | 2011-04-03 | 1 | -0/+2 |
| | | | | | | 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 Dzonsons | 2011-04-03 | 1 | -2/+4 |
| | |||||
* | Make uname have its return value checked for -1 (POSIX style), not | Kristaps Dzonsons | 2011-04-03 | 1 | -1/+1 |
| | | | | non-zero. From a PR by Yuri Pankov, ok schwarze@. | ||||
* | Add an initial keyword-indexer as an alternative front-end to libmandoc.a. | Kristaps Dzonsons | 2011-04-02 | 2 | -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. |