aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.3
Commit message (Collapse)AuthorAgeFilesLines
* Fatal errors no longer exist.Ingo Schwarze2015-01-151-19/+14
| | | | | | If a file can be opened, mandoc will produce some output; at worst, the output may be almost empty. Simplifies error handling and frees a message type for future use.
* downgrade .so failure from FATAL to ERRORIngo Schwarze2015-01-151-13/+10
|
* Let mparse_readfd() use mparse_open() and mparse_wait()Ingo Schwarze2014-11-261-7/+18
| | | | | | | | and let mparse_open() fall back to .gz files such that .so works even when the target is zipped, requested by and in part using ideas from <bapt at FreeBSD>. While here, make sure files are readable before forking, both for efficiency and for better error reporting.
* Simplify the mparse_open()/mparse_wait() interface.Ingo Schwarze2014-11-261-12/+2
| | | | | Don't bother the user with the PID of the child process, store it inside the opaque mparse handle.
* Make the character table available to libroff so it can check theIngo Schwarze2014-10-281-3/+17
| | | | | | | | validity of character escape names and warn about unknown ones. This requires mchars_spec2cp() to report unknown names again. Fortunately, that doesn't require changing the calling code because according to groff, invalid character escapes should not produce output anyway, and now that we warn about them, that's fine.
* Add *.gz support to apropos(1) -a, man(1), and even mandoc(1).Ingo Schwarze2014-09-031-2/+64
| | | | Implemented by moving the zip code from makewhatis(8) to the parser lib.
* Sync library documentation with reality.Ingo Schwarze2014-08-051-181/+93
| | | | | Split mandoc_escape(3), mandoc_malloc(3), and mchars_alloc(3) out of mandoc(3), adding lots of new information.
* The files mandoc.c and mandoc.h contained both specialised low-levelIngo Schwarze2014-03-231-27/+57
| | | | | | | functions used for multiple languages (mdoc, man, roff), for example mandoc_escape(), mandoc_getarg(), mandoc_eos(), and generic auxiliary functions. Split the auxiliaries out into their own file and header. While here, do some #include cleanup.
* Add an option -Q (quick) to mandocdb(8)Ingo Schwarze2014-01-051-9/+46
| | | | | | | | | | | | | | | for accelerated generation of reduced-size databases. Implement this by allowing the parsers to optionally abort the parse sequence after the NAME section. While here, garbage collect the unused void *arg attribute of struct mparse and mparse_alloc() and fix some errors in mandoc(3). This reduces the processing time of mandocdb(8) on /usr/share/man by a factor of 2 and the database size by a factor of 4. However, it still takes 5 times the time and 6 times the space of makewhatis(8), so more work is clearly needed.
* The .Lb arguments wants a "lib" prefix;Ingo Schwarze2013-10-061-3/+3
| | | | | from Sascha Wildner via Franco Fichtner (DragonFly); also fixing the same in the mdoc(7) example while i'm about it.
* Cleanup suggested by gcc-4.8.1, following hints by Christos Zoulas:Ingo Schwarze2013-10-051-4/+4
| | | | | | | | - avoid bad qualifier casting in roff.c, roff_parsetext() by changing the mandoc_escape arguments to "const char const **" - avoid bad qualifier casting in mandocdb.c, index_merge() - do not complain about unused variables in test-*.c - garbage collect a few unused variables elsewhere
* two improvements in the SYNOPSIS;Ingo Schwarze2013-09-161-4/+3
| | | | from Sascha Wildner <swildner at gmail dot com> (DragonFly)
* For citing the names and email addresses of authors,Ingo Schwarze2013-07-131-4/+3
| | | | | | | consistently use the style ".An name Aq Mt email". Triggered by a question from Jan Stary <hans at stare dot cz>, ok jmc@.
* Note where these functions are declared and implemented.Ingo Schwarze2013-06-021-2/+86
| | | | That helps to find one's way when hacking on the code.
* Reflect reality, mandoc_escape does not skip the "\" itself, but expectsJoerg Sonnenberger2012-01-131-3/+5
| | | | the caller to have done that.
* Const-ify some mchars arguments. I think these are non-const for historicalKristaps Dzonsons2011-11-081-4/+4
| | | | dumbness on my part.
* Fix mandoc_escape() function argument names. From a fix by AbhinavKristaps Dzonsons2011-10-181-5/+5
| | | | Upadhyay, thanks!
* If -Tman is specified and input is -man, echo the preprocessed (`so'Kristaps Dzonsons2011-10-061-2/+28
| | | | | | | | | | | | | | replaced by file) input. This replaces earlier behaviour of doing nothing, which I found unexpected (mandoc should always output). This requires a buffer in read.c that saves the input lines before being parsed, with a special hook if `so' is invoked. This buffer is just flushed to output if -mman is the input. While mucking around doing this, I also alpha-ordered the mandoc.h functions. Ok schwarze@, with no screaming when the polished patch was published.
* Replace the old `An'/`Aq' AUTHORS note with `An'/`Mt'.Kristaps Dzonsons2011-08-181-3/+4
|
* Make sure constants in mandoc.3 use the `Dv' macro.Kristaps Dzonsons2011-07-111-7/+15
|
* Add more documentation for libmandoc.Kristaps Dzonsons2011-06-221-8/+53
|
* Document that spec2cp never returns 0.Kristaps Dzonsons2011-05-241-4/+2
|
* Remove all references to ESCAPE_PREDEF, which is now not exposed passedKristaps Dzonsons2011-05-241-26/+2
| | | | the libroff point. This clears up a nice chunk of code.
* Documentation: note COMPATIBILITY of -Tascii `?' printing in mandoc.1Kristaps Dzonsons2011-05-171-1/+3
| | | | | and remove some long-fixed notes in sthe same section. Also, add an `Lb' for the mandoc library to mandoc.3 (noted by Sascha Wildner).
* Flip on unicode output (via \[uNNNN]) in -T[x]html. Here we go!Kristaps Dzonsons2011-05-171-4/+14
|
* Documenting the mchars_XXXX part of mandoc.h.Kristaps Dzonsons2011-05-011-2/+88
|
* No code change: fixing spelling errors. From a patch by uqs@. Thanks!Kristaps Dzonsons2011-04-301-3/+3
|
* Add more documentation bits to mandoc.3.Kristaps Dzonsons2011-04-191-2/+74
|
* Skeleton of documentation functions, types, and variables in mandoc.h.Kristaps Dzonsons2011-04-091-2/+43
|
* Put mandocerrs and mandoclevels arrays into libmandoc with accessorsKristaps Dzonsons2011-03-281-3/+13
| | | | mparse_strerror() and mparse_strlevel().
* Step 3: consolidate manuals. The parse functions in mdoc.h, roff.h, andKristaps Dzonsons2011-03-221-0/+323
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.