Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | In reality `In' only accepts one argument. Subsequent ones are not | Kristaps Dzonsons | 2011-04-01 | 1 | -1/+1 |
| | | | | | 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 standalone | Kristaps Dzonsons | 2011-04-01 | 1 | -3/+3 |
| | | | | '...' have a properly-escaped initial dot. | ||||
* | Allow a NULL mmsg passed to libmandoc. | Kristaps Dzonsons | 2011-03-31 | 1 | -1/+2 |
| | |||||
* | Make -Werr be -Wlevel, keeping it in sync with mandoc.1. Noted by | Kristaps Dzonsons | 2011-03-31 | 1 | -1/+1 |
| | | | | Alexander Schrijver---thanks! | ||||
* | naddy@ reports rsync(1) | Ingo Schwarze | 2011-03-30 | 1 | -0/+48 |
| | |||||
* | Add lint target to Makefile. | Kristaps Dzonsons | 2011-03-29 | 1 | -16/+73 |
| | |||||
* | Getting ready for next [minor-number] release. | Kristaps Dzonsons | 2011-03-29 | 1 | -0/+21 |
| | |||||
* | Carefully let mandoc_getcontrol() handle libroff's detection of a macro | Kristaps Dzonsons | 2011-03-29 | 2 | -34/+21 |
| | | | | | | | | | 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 Dzonsons | 2011-03-29 | 1 | -46/+22 |
| | |||||
* | Have libman and libmdoc use mandoc_getcontrol() to determine whether a | Kristaps Dzonsons | 2011-03-28 | 3 | -41/+50 |
| | | | | macro has been invoked. libroff is next. | ||||
* | Put mandocerrs and mandoclevels arrays into libmandoc with accessors | Kristaps Dzonsons | 2011-03-28 | 5 | -121/+147 |
| | | | | mparse_strerror() and mparse_strlevel(). | ||||
* | new: \. at the beginning of a line | Ingo Schwarze | 2011-03-23 | 1 | -5/+6 |
| | | | | partially done: date cleanup | ||||
* | As per joerg@'s suggestion, use const arrays when looking up mdoc argvs. | Kristaps Dzonsons | 2011-03-23 | 1 | -37/+68 |
| | |||||
* | Merge man_args() into man_macro.c, the only place where it's called, and | Kristaps Dzonsons | 2011-03-23 | 4 | -54/+20 |
| | | | | | | 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, remove | Kristaps Dzonsons | 2011-03-23 | 3 | -29/+15 |
| | | | | | ARGS_ERROR, as it is never returned by man_args(). Then clean up invocations of man_args() to only check for ARGS_EOLN. | ||||
* | Add MAN_TAIL, which will be used by `UE' (forthcoming) and needs to be | Kristaps Dzonsons | 2011-03-23 | 4 | -0/+25 |
| | | | | used for `RE'. | ||||
* | Fix "libman" dependence. | Kristaps Dzonsons | 2011-03-23 | 1 | -1/+1 |
| | |||||
* | Make (e.g.) `SM' before `B' be only a warning. In reality, this refers | Kristaps Dzonsons | 2011-03-23 | 3 | -8/+2 |
| | | | | | | | to ELINE macros ("next-line", but not unbreakable like the next-line paragraph macros) followed by other macros. This addresses a report by Christian Weisgerber, posted in the TODO by schwarze@, and aired on discuss@ (22/03/2011) for whether a fix is warranted. | ||||
* | Make empty sections and parts (SH, SS, RS) only produce a warning if it | Kristaps Dzonsons | 2011-03-22 | 3 | -7/+5 |
| | | | | has no children. Noted by Brad, added to TODO by schwarze@. | ||||
* | libmdoc.h and libman.h were including mdoc.h and man.h, respectively. | Kristaps Dzonsons | 2011-03-22 | 18 | -5/+16 |
| | | | | | Don't have them do that (includes in header files = faugh), and have individual files directly include these files. | ||||
* | mdoc_argn_free is only used local to mdoc_argv.c, so make it static. | Kristaps Dzonsons | 2011-03-22 | 2 | -4/+4 |
| | |||||
* | Move mandoc_isdelim() back into libmdoc.h. This fixes an unreported | Kristaps Dzonsons | 2011-03-22 | 12 | -130/+172 |
| | | | | | | | | | error where (1) -man pages were punctuating delimiters (e.g., `.B a ;') and where (2) standalone punctuation in -mdoc or -man (e.g., ";" on its own line) would also be punctuated. This introduces a small amount of complexity of mdoc_{html,term}.c must manage their own spacing with running print_word() or print_text(). The check for delimiting now happens in mdoc_macro.c's dword(). | ||||
* | Add some documentation and clean up mdoc.h/man.h. | Kristaps Dzonsons | 2011-03-22 | 2 | -132/+76 |
| | |||||
* | Have the default include/lib install path end with "mandoc" to prevent | Kristaps Dzonsons | 2011-03-22 | 1 | -4/+4 |
| | | | | clobbering other stuff that may have the same name. | ||||
* | Note the TODO file on the website. Also install index.html (oops). | Kristaps Dzonsons | 2011-03-22 | 2 | -4/+8 |
| | |||||
* | Add a FATAL error for when no manual type was assigned (you can repeat | Kristaps Dzonsons | 2011-03-22 | 3 | -7/+4 |
| | | | | this for yourself by having a file consisting only of comments). | ||||
* | Be a bit more specific on where we compile. Are there any ANSI-C | Kristaps Dzonsons | 2011-03-22 | 1 | -2/+2 |
| | | | | | compilers where we don't compile? I'm pretty sure that mmap() is non-standard (we'll fail, e.g., on mingw32). | ||||
* | As mentioned: ChangeLog isn't being built any more. | Kristaps Dzonsons | 2011-03-22 | 1 | -43/+0 |
| | |||||
* | Step 5: re-write Makefile and relax. This restructures the Makefile to | Kristaps Dzonsons | 2011-03-22 | 1 | -315/+277 |
| | | | | | | | | do actual dependency checking for headers and to build everything nicer (www properly depends on mandoc, etc.). Note that the ChangeLog isn't being built any more: if people are interested, they can visit the source-changes mailing list archive. | ||||
* | Step 4: merge chars.h into out.h. The functions in this file are | Kristaps Dzonsons | 2011-03-22 | 8 | -78/+49 |
| | | | | | necessary to all [real] front-ends, so stop pretending it's special. While here, add some documentation to the variable types. | ||||
* | Step 3: consolidate manuals. The parse functions in mdoc.h, roff.h, and | Kristaps Dzonsons | 2011-03-22 | 7 | -875/+365 |
| | | | | | | | | man.h are now part of libmandoc.h, so remove these from their respective manuals (they're no longer public-facing and we don't need a libmandoc.3 (yet?)). Before that, move the juicy data (parse tree syntax) into new-born mandoc.3. Peck around in Makefile and index.sgml to reflect reality. | ||||
* | Step 2: blow away roff.h, as all of its functions have been moved into | Kristaps Dzonsons | 2011-03-22 | 4 | -29/+3 |
| | | | | libmandoc.h and there's nothing left. | ||||
* | Step 1 of restructuring: libmandoc.h. Move all compiler-set-specific | Kristaps Dzonsons | 2011-03-22 | 7 | -89/+89 |
| | | | | | | | | | | stuff into libmandoc.h, including old mdoc.h/man.h/roff.h functions now used by read.c. The motivation behind this is to tighten the relationship between the underlying compilers while keeping parse data hidden from general callers (e.g., main.c). While here, also move register values from mandoc.h into libmandoc.h as noted by schwarze@. See above for explanation. |