Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | main.c doesn't need roff.h anymore. | Kristaps Dzonsons | 2011-03-21 | 1 | -1/+0 |
| | |||||
* | Let read.c worry about the currently-open file instead of having this | Kristaps Dzonsons | 2011-03-20 | 3 | -37/+3 |
| | | | | | | information duplicated in main.c. For the time being, remove evt_close and evt_open, as the only known mparse interface (main.c) doesn't need them. | ||||
* | Consolidate messages. Have all parse-time messages (in libmdoc, | Kristaps Dzonsons | 2011-03-20 | 23 | -225/+225 |
| | | | | | | | | | libroff, etc., etc.) route into mandoc_msg() and mandoc_vmsg(), for the time being in libmandoc.h. This requires struct mparse to be passed into the allocation routines instead of mandocmsg and a void pointer. Then, move some of the functionality of the old mmsg() into read.c's mparse_mmsg() (check against wlevel and setting of file_status) and use main.c's mmsg() as simply a printing tool. | ||||
* | Change around include ordering for compilation on OpenBSD. | Kristaps Dzonsons | 2011-03-20 | 1 | -1/+1 |
| | |||||
* | Split the document parsing sequence out of main.c and into read.c, | Kristaps Dzonsons | 2011-03-20 | 4 | -608/+709 |
| | | | | | | | | putting the interface into mandoc.h. This effectively makes the function of main.c be command-line handling, invoking the parser, and sending its output to the output handler. The sequence of parsing (pfile(), pdesc(), etc.) has changed very little but for clean-up of some state variables (curp->fd, etc.). | ||||
* | Bumped internal version. There will be no formal release with this: it | Kristaps Dzonsons | 2011-03-20 | 1 | -2/+2 |
| | | | | | precedes some major structural changes for easier roll-back in the case of errors or whatnot. | ||||
* | .RS w/o line args is not seriousVERSION.1.10.10 | Ingo Schwarze | 2011-03-19 | 1 | -0/+4 |
| | |||||
* | Note the development status of eqn.7 and tbl.7. | Kristaps Dzonsons | 2011-03-17 | 2 | -0/+20 |
| | |||||
* | "Reserved Characters" isn't correct since `\.' and `\*(Ba' aren't | Kristaps Dzonsons | 2011-03-17 | 1 | -9/+12 |
| | | | | characters. Use "Reserved Terms" instead. | ||||
* | Note that mdoc_valids[] is static. | Kristaps Dzonsons | 2011-03-17 | 1 | -1/+1 |
| | |||||
* | mandocmsg finally has no return value. | Kristaps Dzonsons | 2011-03-17 | 2 | -6/+4 |
| | |||||
* | Clean-up in libman: make all calls to man_*msg not check return value. | Kristaps Dzonsons | 2011-03-17 | 4 | -18/+16 |
| | | | | Also convert man_vmsg to return void. | ||||
* | Clean-up in libmdoc: fix last checks for mdoc_*msg return value, then | Kristaps Dzonsons | 2011-03-17 | 4 | -20/+18 |
| | | | | | make mdoc_vmsg not return an int. libmdoc is now completely clean of return-value checks from the message subsystem. | ||||
* | Clean-up in mdoc_argv.c args_checkpunct(). | Kristaps Dzonsons | 2011-03-17 | 1 | -27/+21 |
| | |||||
* | Clean-up in mdoc_argv.c: make CPP-defines into an enum, document, make | Kristaps Dzonsons | 2011-03-17 | 1 | -33/+17 |
| | | | | | static arrays const, properly abort() for bogus switch cases, and be obsessive about spacing and (void)-casting. | ||||
* | Clean up mdoc_pmsg invocations to make them not check the return value. | Kristaps Dzonsons | 2011-03-17 | 1 | -13/+6 |
| | |||||
* | Kill off some unused function prototypes. | Kristaps Dzonsons | 2011-03-17 | 1 | -3/+0 |
| | |||||
* | Kill off mdoc_strings.c, which is now empty. Byeeeeeeeee! | Kristaps Dzonsons | 2011-03-17 | 2 | -37/+3 |
| | |||||
* | Move mdoc_macro2len() into mdoc_validate.c as macro2len(), as that's the | Kristaps Dzonsons | 2011-03-17 | 2 | -95/+96 |
| | | | | only place that it's being used. | ||||
* | Move mdoc_str2sec() into mdoc_validate.c as a2sec(), as that's the only | Kristaps Dzonsons | 2011-03-17 | 3 | -40/+38 |
| | | | | place that it's being used. | ||||
* | Tiny optimisation in mandoc_isdelim() check. | Kristaps Dzonsons | 2011-03-17 | 1 | -2/+2 |
| | |||||
* | Move mdoc_isdelim() into mandoc.h as mandoc_isdelim(). This allows the | Kristaps Dzonsons | 2011-03-17 | 9 | -150/+88 |
| | | | | | | removal of manual delimiter checks in html.c and term.c. Finally, add the escaped period as a closing delimiter, removing a TODO to this effect. | ||||
* | Move mandoc_{realloc,malloc,calloc} out of libmandoc.h and into mandoc.h | Kristaps Dzonsons | 2011-03-17 | 8 | -53/+15 |
| | | | | | | | | so that everybody can use them. This follows the convention of libXXXX.h being internal to a library and XXXX.h being the external interface. Not only does this allow the removal of lots of redundant NULL-checking code, it also sets the tone for adding new mandoc-global routines. | ||||
* | Make args_checkpunct() use mdoc_isdelim() instead of mdoc_iscdelim(), | Kristaps Dzonsons | 2011-03-17 | 3 | -59/+61 |
| | | | | which is wrong. Then remove mdoc_iscdelim() alltogether. | ||||
* | Move check for closing punctuation into its own function. This will | Kristaps Dzonsons | 2011-03-17 | 1 | -24/+41 |
| | | | | | | later be modified to remove the need for iscdelim(), which will be used to unify delimiter checks, which will then allow for the simple removal of a TODO regarding escaped periods. | ||||
* | o diaeresis is 246 (U+00F6) | Ingo Schwarze | 2011-03-16 | 1 | -1/+1 |
| | | | | from Christian Weisgerber <naddy at openbsd dot org> |