CVS log for mandoc/mdoc_argv.c

[BACK] Up to [cvsweb.bsd.lv] / mandoc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.120 / (download) - annotate - [select for diffs], Thu Jul 11 17:06:17 2019 UTC (14 months, 3 weeks ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.119: +3 -2 lines
Diff to previous 1.119 (colored)

When parsing a tab character that is not preceded by a space character
on an .It -column line, args() sets the MDOC_PHRASEQL flag to Quote
the Last word of the Phrase.  Even if it turns out this quoting is not
needed because the word is already quoted for other reasons, clear the
flag at the end of parsing the phrase, such that the flag does not leak
to the next phrase.

This patch fixes the bug that the trailing Macro on a line of the form
.It "word<tab>word" Ta word Macro<eol>
was incorrectly considered quoted and hence not parsed.

Bug found by Havard Eidnes (he@) with the NetBSD gettytab(5) manual page:
https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54361
Reported via Thomas Klausner (wiz@).

Revision 1.119 / (download) - annotate - [select for diffs], Fri Dec 21 17:15:19 2018 UTC (21 months, 1 week ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.118: +19 -13 lines
Diff to previous 1.118 (colored)

Rename mandoc_getarg() to roff_getarg() and pass it the roff parser
struct as an argument such that after copy-in, it can call roff_expand()
once again, which used to be called roff_res() before this.  This
fixes a subtle low-level roff(7) parsing bug reported by Fabio
Scotoni <fabio at esse dot ch> in the 4.4BSD-Lite2 mdoc.samples(7)
manual page, because that page used an escaped escape sequence in
a macro argument.

To expand escaped escape sequences in quoted mdoc(7) arguments, too,
stop bypassing the call to roff_getarg() in mdoc_argv.c, function args()
for this case.  This does not solve the case of escaped escape sequences
in quoted .Bl -column phrases yet.

Because roff_expand() can make the string longer, roff_getarg() can no
longer operate in-place but needs to malloc(3) the returned string.
In the high-level parsers, free(3) that string after processing it.

Revision 1.118 / (download) - annotate - [select for diffs], Fri Dec 14 06:33:14 2018 UTC (21 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.117: +2 -2 lines
Diff to previous 1.117 (colored)

Cleanup, no functional change:
Now that message handling is properly encapsulated,
remove struct mparse pointers from four structs (roff, roff_man,
tbl_node, eqn_node) and from the argument lists of five functions
(roff_alloc, roff_man_alloc, mandoc_getarg, tbl_alloc, eqn_alloc).
Except for being passed to the main program as an opaque object,
it now only occurs in read.c, as it should, and not across 15 files
like in the past.

Revision 1.117 / (download) - annotate - [select for diffs], Fri Dec 14 05:18:02 2018 UTC (21 months, 2 weeks ago) by schwarze
Branch: MAIN
Changes since 1.116: +5 -7 lines
Diff to previous 1.116 (colored)

Almost mechanical diff to remove the "struct mparse *" argument
from mandoc_msg(), where it is no longer used.
While here, rename mandoc_vmsg() to mandoc_msg() and retire the
old version:  There is really no point in having another function
merely to save "%s" in a few places.
Minus 140 lines of code.

Revision 1.116 / (download) - annotate - [select for diffs], Fri Aug 17 20:33:37 2018 UTC (2 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.115: +6 -7 lines
Diff to previous 1.115 (colored)

Remove more pointer arithmetic passing via regions outside the array
that is undefined according to the C standard.  Robert Elz <kre at
munnari dot oz dot au> pointed out i wasn't quite done yet.

Revision 1.115 / (download) - annotate - [select for diffs], Tue May 30 16:22:03 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2
Changes since 1.114: +4 -4 lines
Diff to previous 1.114 (colored)

Macro argument quoting does not prevent recognition of punctuation
and of called macros.

This bug affects almost all macros, and fixing it simplifies the
code.  It is amazing that the bogus ARGS_QWORD feature got implemented
in the first place, and then carrier along for more than eight years
without anybody ever noticing that it was pointless.

Reported by Leah Neukirchen <leah at vuxu dot org>, found on Void Linux.

Revision 1.114 / (download) - annotate - [select for diffs], Fri May 5 15:17:32 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.113: +1 -2 lines
Diff to previous 1.113 (colored)

Move .sp to the roff modules.  Enough infrastructure is in place
now that this actually saves code: -70 LOC.

Revision 1.113 / (download) - annotate - [select for diffs], Fri May 5 13:17:55 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.112: +1 -2 lines
Diff to previous 1.112 (colored)

move .ll to the roff modules

Revision 1.112 / (download) - annotate - [select for diffs], Thu May 4 17:48:29 2017 UTC (3 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.111: +1 -2 lines
Diff to previous 1.111 (colored)

Parser reorg:
Generate the first node on the roff level: .br
Fix some column numbers in diagnostic messages while here.

Revision 1.111 / (download) - annotate - [select for diffs], Mon Apr 24 23:06:18 2017 UTC (3 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.110: +7 -5 lines
Diff to previous 1.110 (colored)

Continue parser unification:
* Make enum rofft an internal interface as enum roff_tok in "roff.h".
* Represent mdoc and man macros in enum roff_tok.
* Make TOKEN_NONE a proper enum value and use it throughout.
* Put the prologue macros first in the macro tables.
* Unify mdoc_macroname[] and man_macroname[] into roff_name[].

Revision 1.110 / (download) - annotate - [select for diffs], Fri Mar 3 15:05:48 2017 UTC (3 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13
Changes since 1.109: +10 -9 lines
Diff to previous 1.109 (colored)

Markdown output mode helped us to find the first parser bug (as such,
this bug could cause wrong output in other modes as well):
Do not misinterpret tab characters as .Ta macros when they appear
on non-column .It lines in non-column .Bl lists that are nested
inside a parent .Bl -column list.  (Admittedly, such constructions
are not very useful; don't use them!)
Found by tb@ with afl(1) because the resulting tree corruption
triggered an assertion in the markdown output module.

Revision 1.109 / (download) - annotate - [select for diffs], Sun Aug 28 16:15:12 2016 UTC (4 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

If a line inside .Bl -column starts with a tab character
and there was no preceding .It macro, do not read the byte
before the beginning of the line buffer.
Found by tb@ with afl@.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Jul 15 18:03:45 2016 UTC (4 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.107: +2 -1 lines
Diff to previous 1.107 (colored)

add missing prototypes, no code change;
noticed by Christos Zoulas with -Wmissing-prototypes

Revision 1.107 / (download) - annotate - [select for diffs], Sat Oct 17 00:21:07 2015 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_4
Changes since 1.106: +46 -16 lines
Diff to previous 1.106 (colored)

Very tricky diff to fix macro interpretation and spacing around tabs
in .Bl -column; it took me more than a day to get this right.
Triggered by a loosely related bug report from tim@.

The lesson for you is:  Use .Ta macros in .Bl -column, avoid tabs,
or you are in for surprises:  The last word before a tab is not
interpreted as a macro (unless there is a blank in between), the
first word after a tab isn't either (unless there is a blank in
between), and a blank after a tab causes a leading blank in the
respective output cell.  Yes, "blank", "tab", "blank tab" and "tab
blank" all have different semantics; if you write code relying on
that, good luck maintaining it afterwards...

Revision 1.106 / (download) - annotate - [select for diffs], Thu Oct 15 22:45:43 2015 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.105: +28 -73 lines
Diff to previous 1.105 (colored)

Simplify the part of args() that is handling .Bl -column phrases:
Delete manual "Ta" handling because macro handling should
not be done in an argument parser but should be left to the
macro parsers, which exist anyway and work well.
No functional change, minus 40 lines of code.

Confusing and redundant code found while investigating
an old bug report from tim@.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Oct 6 18:32:19 2015 UTC (4 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.104: +17 -17 lines
Diff to previous 1.104 (colored)

modernize style: "return" is not a function

Revision 1.104 / (download) - annotate - [select for diffs], Sun Apr 19 14:00:19 2015 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.103: +2 -2 lines
Diff to previous 1.103 (colored)

Decouple the token code for "no request or macro" from the individual
high-level parsers to allow further unification of functions that
only need to recognize this code, but that don't care about different
high-level macrosets beyond that.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Apr 18 16:06:40 2015 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.102: +10 -10 lines
Diff to previous 1.102 (colored)

Replace the structs mdoc and man by a unified struct roff_man.
Almost completely mechanical, no functional change.
Written on the train from Exeter to London returning from p2k15.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Apr 2 22:48:17 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.101: +4 -4 lines
Diff to previous 1.101 (colored)

Second step towards parser unification:
Replace struct mdoc_node and struct man_node by a unified struct roff_node.
To be able to use the tok member for both mdoc(7) and man(7) without
defining all the macros in roff.h, sacrifice a tiny bit of type safety
and make tok an int rather than an enum.
Almost mechanical, no functional change.
Written on the Eurostar from Bruxelles to London on the way to p2k15.

Revision 1.101 / (download) - annotate - [select for diffs], Thu Apr 2 21:36:50 2015 UTC (5 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.100: +7 -6 lines
Diff to previous 1.100 (colored)

First step towards parser unification:
Replace enum mdoc_type and enum man_type by a unified enum roff_type.
Almost mechanical, no functional change.
Written on the ICE train from Frankfurt to Bruxelles on the way to p2k15.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Feb 4 18:59:45 2015 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.99: +2 -2 lines
Diff to previous 1.99 (colored)

fix column numbers of macro arguments in messages

Revision 1.99 / (download) - annotate - [select for diffs], Sat Nov 29 03:37:44 2014 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.98: +6 -11 lines
Diff to previous 1.98 (colored)

Provide a helper function macro_or_word() and use it to prune the
same chunk of argument parsing code out of five of the eight callback
functions.  The other three have too much special handling to
participate.
As a bonus, let lookup() and mdoc_args() deal with line macros and
retire the lookup_raw() helper and the mdoc_zargs() internal interface
function.
No functional change, minus 40 lines of code.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Nov 28 23:21:32 2014 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.97: +81 -74 lines
Diff to previous 1.97 (colored)

Fold the loop around mdoc_argv() into the function itself,
it was the same in all four cases.  As a bonus, get rid
of one enum type that was used for internal communication.
No functional change, minus 40 lines of code.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Nov 28 03:14:18 2014 UTC (5 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.96: +12 -22 lines
Diff to previous 1.96 (colored)

Simplify the code by making various mdoc parser helper functions void.
No functional change, minus 130 lines of code.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Aug 10 23:54:41 2014 UTC (6 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_4, VERSION_1_12
Changes since 1.95: +1 -3 lines
Diff to previous 1.95 (colored)

Get rid of HAVE_CONFIG_H, it is always defined; idea from libnbcompat.
Include <sys/types.h> where needed, it does not belong in config.h.
Remove <stdio.h> from config.h; if it is missing somewhere, it should
be added, but i cannot find a *.c file where it is missing.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jul 6 19:09:00 2014 UTC (6 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.94: +9 -5 lines
Diff to previous 1.94 (colored)

Clean up messages related to plain text and to escape sequences.
* Mention invalid escape sequences and string names, and fallbacks.
* Hierarchical naming.

Revision 1.94 / (download) - annotate - [select for diffs], Wed Jul 2 03:48:07 2014 UTC (6 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored)

Implement the obsolete macros .En .Es .Fr .Ot for backward compatibility,
since this is hardly more complicated than explicitly ignoring them
as we did in the past.  Of course, do not use them!

Revision 1.93 / (download) - annotate - [select for diffs], Wed Apr 23 21:06:41 2014 UTC (6 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.92: +5 -5 lines
Diff to previous 1.92 (colored)

Audit malloc(3)/calloc(3)/realloc(3) usage.
* Change eight reallocs to reallocarray to be safe from overflows.
* Change one malloc to reallocarray to be safe from overflows.
* Change one calloc to reallocarray, no zeroing needed.
* Change the order of arguments of three callocs (aesthetical).

Revision 1.92 / (download) - annotate - [select for diffs], Sun Apr 20 16:46:05 2014 UTC (6 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.91: +46 -46 lines
Diff to previous 1.91 (colored)

KNF: case (FOO):  ->  case FOO:, remove /* LINTED */ and /* ARGSUSED */,
remove trailing whitespace and blanks before tabs, improve some indenting;
no functional change

Revision 1.91 / (download) - annotate - [select for diffs], Sun Mar 30 19:47:48 2014 UTC (6 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.90: +2 -1 lines
Diff to previous 1.90 (colored)

Implement the roff(7) .ll (line length) request.
Found by naddy@ in the textproc/enchant(1) port.
Of course, do not use this in new manuals.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Mar 23 11:25:26 2014 UTC (6 years, 6 months ago) by schwarze
Branch: MAIN
Changes since 1.89: +2 -1 lines
Diff to previous 1.89 (colored)

The files mandoc.c and mandoc.h contained both specialised low-level
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.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Dec 25 00:50:05 2013 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

s/[Nn]ull/NUL/ in comments where appropriate;
suggested by Thomas Klausner <wiz @ NetBSD dot org>.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Dec 22 14:06:36 2013 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

Fix end-of-sentence spacing after the DragonFly text production macro.
Patch from Franco Fichtner <franco at lastsummer dot de>.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Dec 15 23:56:42 2013 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.86: +13 -1 lines
Diff to previous 1.86 (colored)

In quoted macro arguments, double quotes can be quoted by doubling them.
For a long time, we handle this in roff(7) and man(7) macros.
Now add correct handling for the mdoc(7) case, too.

Closely based on a patch by Tsugutomo dot ENAMI at jp dot sony dot com,
see http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=48438
received via Thomas Klausner (wiz@), slightly tweaked by me.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Nov 18 00:05:35 2012 UTC (7 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_2
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored)

Fix four small whitespace issues related to trailing punctuation
reported by Nicolas Joly <njoly at pasteur dot fr>:

- add EOS spacing after trailing punctuation after .Cd, .Fc, and .Lb
- suppress spacing before trailing punctuation after .Fd

Add the remaining issues from the same report to the TODO file.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Nov 17 00:26:33 2012 UTC (7 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.84: +30 -30 lines
Diff to previous 1.84 (colored)

Cleanup naming of local variables to make the code easier on the eye:
Settle for "struct man *man", "struct mdoc *mdoc", "struct meta *meta"
and avoid the confusing "*m" which was sometimes this, sometimes that.
No functional change.

ok kristaps@ some time ago

Revision 1.84 / (download) - annotate - [select for diffs], Fri Nov 16 18:41:18 2012 UTC (7 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.83: +4 -3 lines
Diff to previous 1.83 (colored)

Two more macros (.Ap and .In) do trailing delimiter handling.
This fixes the end of sentence spacing in OpenBSD open(2)
and in about 150 pages in the NetBSD base system.

Reported by Nicolas Joly <njoly a pasteur point fr>, merci!

Revision 1.83 / (download) - annotate - [select for diffs], Sun Apr 15 15:26:49 2012 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.82: +5 -39 lines
Diff to previous 1.82 (colored)

The -width and -offset macro arguments consume the next argument
even if it starts with a dash.
ok kristaps@

Revision 1.82 / (download) - annotate - [select for diffs], Fri Mar 23 05:50:24 2012 UTC (8 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_1
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

Make the `-width' field to `Bl' not puke if it doesn't have an argument.
This makes mandoc work much, much nicer with Mac OSX manpages.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Sep 18 14:14:15 2011 UTC (9 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_0
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

forgotten Copyright bumps; no code change
found while syncing to OpenBSD

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jun 18 16:53:27 2011 UTC (9 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5, VERSION_1_11_4
Changes since 1.79: +6 -7 lines
Diff to previous 1.79 (colored)

Add back in a check that the leading `-' exists for arguments.  This
mysteriously disappeared in 1.14.  No idea why.  While here, remove an
unnecessary header and order the function prototypes.

Revision 1.79 / (download) - annotate - [select for diffs], Sat Jun 18 16:29:38 2011 UTC (9 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.78: +17 -38 lines
Diff to previous 1.78 (colored)

Clean-up: remove a function only called once.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jun 18 16:18:04 2011 UTC (9 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.77: +164 -192 lines
Diff to previous 1.77 (colored)

Fix an assertion failure raised by the following interesting scenario: a
auto-opened `It' (i.e., a column list with a free-text first line) with
leading spaces in the line triggering assertion when searching for
arguments.

This led to a fix giving a nice performance speed-ups (a few percent,
with some quick trials): the search for flags immediately exits if the
macro has no flags, instead of having to first parse the leading word
then look it up.  I also cleaned up the argv parsing stuff a little bit
and added more documentation.

This comes from a TODO by joerg@.

Revision 1.77 / (download) - annotate - [select for diffs], Thu May 12 23:44:01 2011 UTC (9 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_3, VERSION_1_11_2
Changes since 1.76: +7 -8 lines
Diff to previous 1.76 (colored)

Lint fixes: remove unused function variables and pass in proper enum
values instead of ints.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Apr 19 16:38:48 2011 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.75: +157 -171 lines
Diff to previous 1.75 (colored)

Clean up parsing of delimiters in -mdoc.  First, remove the "dowarn"
variable from mandoc_getarg() so that it prints the warning every time.
Then, remove the warning from args_checkpunct().  This way, warnings
are being posted at the correct time.  This makes the flag argument to
mdoc_zargs() superfluous, so make it be zero when it's invoked.  Finally,
move the args() flags into mdoc_argv.c and make them enums.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Apr 17 09:13:01 2011 UTC (9 years, 5 months ago) by kristaps
Branch: MAIN
Changes since 1.74: +4 -20 lines
Diff to previous 1.74 (colored)

Use mandoc_getarg() for the regular case of processing unquoted
arguments in -mdoc documents.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Apr 7 01:08:42 2011 UTC (9 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.73: +13 -13 lines
Diff to previous 1.73 (colored)

Don't shadow global identifiers.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Mar 23 15:46:02 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_1
Changes since 1.72: +69 -38 lines
Diff to previous 1.72 (colored)

As per joerg@'s suggestion, use const arrays when looking up mdoc argvs.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Mar 22 14:33:05 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.71: +2 -1 lines
Diff to previous 1.71 (colored)

libmdoc.h and libman.h were including mdoc.h and man.h, respectively.
Don't have them do that (includes in header files = faugh), and have
individual files directly include these files.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Mar 22 14:28:48 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.70: +5 -4 lines
Diff to previous 1.70 (colored)

mdoc_argn_free is only used local to mdoc_argv.c, so make it static.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Mar 22 14:05:45 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Move mandoc_isdelim() back into libmdoc.h.  This fixes an unreported
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().

Revision 1.69 / (download) - annotate - [select for diffs], Thu Mar 17 11:09:36 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_10
Changes since 1.68: +22 -28 lines
Diff to previous 1.68 (colored)

Clean-up in mdoc_argv.c args_checkpunct().

Revision 1.68 / (download) - annotate - [select for diffs], Thu Mar 17 10:59:27 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.67: +18 -34 lines
Diff to previous 1.67 (colored)

Clean-up in mdoc_argv.c: make CPP-defines into an enum, document, make
static arrays const, properly abort() for bogus switch cases, and be
obsessive about spacing and (void)-casting.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Mar 17 10:41:18 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.66: +7 -14 lines
Diff to previous 1.66 (colored)

Clean up mdoc_pmsg invocations to make them not check the return value.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 17 09:16:38 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Move mdoc_isdelim() into mandoc.h as mandoc_isdelim().  This allows the
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.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Mar 17 01:23:28 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.64: +34 -19 lines
Diff to previous 1.64 (colored)

Make args_checkpunct() use mdoc_isdelim() instead of mdoc_iscdelim(),
which is wrong.  Then remove mdoc_iscdelim() alltogether.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Mar 17 00:58:14 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.63: +42 -25 lines
Diff to previous 1.63 (colored)

Move check for closing punctuation into its own function.  This will
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.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 16 17:55:39 2011 UTC (9 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.62: +43 -74 lines
Diff to previous 1.62 (colored)

Instead of a series of hard-coded strcmps, make argv_a2arg() iterate
over an array of possible argument types, hooking in to mdoc_argnames[].
This knocks off bytes for the duplicated strings and cleans up code
readability.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Dec 24 14:00:40 2010 UTC (9 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_9, VERSION_1_10_8
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

As per schwarze@'s suggestions, roll back the refcount structure in
favour of a simpler shim for normalised data in the node allocation and
free routines.  This removes the need to bump and copy references within
validator handlers, removes a pointer redirect, and also kills the
refcount structure itself.  Data is assumed to "live" either in a
MDOC_BLOCK or MDOC_ELEM and is copied accordingly.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Dec 22 11:15:16 2010 UTC (9 years, 9 months ago) by kristaps
Branch: MAIN
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored)

Implement reference-counted version of original union mdoc_data.  This
simplifies clean-up and allows for more types without extra hassle.

Also made in-line literal types in -T[x]html use CODE instead of SPAN to
match how literal blocks use PRE.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Sep 13 20:15:43 2010 UTC (10 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_10_7, VERSION_1_10_6
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Prevent .Lp from looping endlessly on punctuation.
Same fix as the previous one.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Sep 13 12:21:34 2010 UTC (10 years ago) by kristaps
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Prevent `Pp' from looping endlessly on punctuation.  Bug reported by
Marc Espie.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Jul 21 09:36:41 2010 UTC (10 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_5_PREPDF, VERSION_1_10_5
Changes since 1.57: +4 -2 lines
Diff to previous 1.57 (colored)

Nit-picking assign in decl.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jul 21 09:08:26 2010 UTC (10 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

Finally make mdoc argv CPP-defines into a proper enum.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jul 13 23:53:20 2010 UTC (10 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

correct lots of copyright notices;
ok kristaps@

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jul 1 22:56:17 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_4
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored)

Make struct_bl and struct_bd into pointers.  This removes the need to do
copying on internals after modification.  Even more importantly, if an
ENDBODY token is provided, it would have been impossible for post-change
copying of the data to take place in the BLOCK.  This allows it to
happen by dint of pointers.

Also did some bikeshedding in mdoc_term.c: checking against enum type
and explicitly casting to the "post" function to void.  This is for my
own readability.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jun 19 20:46:28 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_3, VERSION_1_10_2
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Churn as I finish email address migration kth.se -> bsd.lv.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jun 12 11:58:22 2010 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

`Bl' is now using a struct instead of a single enum mdoc_list for its
cached values.  You can probably guess where this is going.

Revision 1.52 / (download) - annotate - [select for diffs], Mon May 31 13:39:13 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_1
Changes since 1.51: +12 -12 lines
Diff to previous 1.51 (colored)

Getting args() function ready to handle no-context (*pos can == 0)
processing.

Revision 1.51 / (download) - annotate - [select for diffs], Mon May 31 10:28:04 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.50: +10 -2 lines
Diff to previous 1.50 (colored)

Remove enum mdocargerr from phrase() (unused).

Add `Ta' macro, which is basically a NULL case everywhere but in
mdoc_macro.c, where it closes out an existing `It' body scope and opens
a new one, then continues parsing as in phrase() (TODO: merge these
two?).

Fix where scope-breaking was silently just dying instead of printing an
error.

Fix where trailing `Ta' or tab weren't creating a new MDOC_BODY context.

We now support arbitrarily complex `It' contents for `Bl -column'.

Revision 1.50 / (download) - annotate - [select for diffs], Sun May 30 23:59:59 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.49: +4 -17 lines
Diff to previous 1.49 (colored)

Have mdoc_args() use enum mdoc_list instead of scanning.

Revision 1.49 / (download) - annotate - [select for diffs], Mon May 17 22:11:42 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.48: +12 -10 lines
Diff to previous 1.48 (colored)

Enable the unified error/warning enumeration in mandoc.h that's
stringified in main.c.

Allow `An' to handle an argument and child (with a warning).

Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a
warning).

Allow inconsistent column syntax to only raise a warning.

Revision 1.48 / (download) - annotate - [select for diffs], Sat May 15 08:54:04 2010 UTC (10 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored)

Distinguish OPEN, MIDDLE and CLOSE delimiters (using an enum).
Only OPEN are drawn before the beginning of a macro;
this is new, before this, MIDDLE ('|') were drawn in front, too.
Only CLOSE are pushed after the end of a macro (as before).
ok kristaps@

Revision 1.47 / (download) - annotate - [select for diffs], Sat May 15 04:47:38 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

More `Bl -column' dancing: It children also inherit in-phrase flags (noted by Ingo Schwarze).

Revision 1.46 / (download) - annotate - [select for diffs], Fri May 14 12:55:22 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.45: +40 -20 lines
Diff to previous 1.45 (colored)

Proper handling of quoted tab-separated column lists.

Revision 1.45 / (download) - annotate - [select for diffs], Sun May 9 21:06:50 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_25
Changes since 1.44: +7 -6 lines
Diff to previous 1.44 (colored)

Explicitly account for \*(Ba when checking for delims.  Noted by Jason McIntyre via Ingo Schwarze.

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 9 10:17:02 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

Introduce ARGS_PEND for `It -column' end-of-line special casing.
Initial rules for insane `It -column' tabsep handling.

Revision 1.43 / (download) - annotate - [select for diffs], Sat May 8 07:30:19 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_24
Changes since 1.42: +14 -13 lines
Diff to previous 1.42 (colored)

Lint fixes (type-safety for enums via -cefuh).

Revision 1.42 / (download) - annotate - [select for diffs], Fri May 7 15:49:36 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.41: +7 -3 lines
Diff to previous 1.41 (colored)

De-chunking of text removed from parsers.  This is a significant change (and I don't really like it), but it's what groff does.
Distinction of ARGS_PHRASE and ARGS_PPHRASE in backend (not yet used).

Revision 1.41 / (download) - annotate - [select for diffs], Fri May 7 06:05:38 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.40: +4 -2 lines
Diff to previous 1.40 (colored)

Initial ARGS_PPHRASE (partial phrase) framework.
Running tally of changes in index.sgml.

Revision 1.40 / (download) - annotate - [select for diffs], Fri May 7 05:54:09 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

enum-ised mdoc_argv() return (better return-value safety).

Revision 1.39 / (download) - annotate - [select for diffs], Fri May 7 05:48:29 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)

margerr -> margserr (getting ready for margverr).

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 7 05:34:56 2010 UTC (10 years, 4 months ago) by kristaps
Branch: MAIN
Changes since 1.37: +5 -5 lines
Diff to previous 1.37 (colored)

Wrangle mdoc_args() and mdoc_zargs() to use enum return type.
Fixed lookup() and lookup_raw() to correctly use enum type.
Quashed in_line_argn() bug (not reported, but there) where mixing return values.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Apr 3 14:02:10 2010 UTC (10 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_23
Changes since 1.36: +21 -16 lines
Diff to previous 1.36 (colored)

Merged Ingo Schwarze's patch (plus documentation) for removing extraneous list types, which happens fairly often.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Mar 31 07:42:04 2010 UTC (10 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_22
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored)

Re-adjusting UGLY tags.
Fixed removed assignment of type.
Removed superfluous checks of mdoc_argflags (from days when comments were a macro tag).

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 31 07:13:53 2010 UTC (10 years, 6 months ago) by kristaps
Branch: MAIN
Changes since 1.34: +8 -7 lines
Diff to previous 1.34 (colored)

Macro types enum-ated (enum mdoct) (for easier debugging in gdb of "tok" values).
Initial check-in of Ingo Schwarze's patch for Xo/Xc handling (in blocks ifdef'd "UGLY").
Put Oc-close-Op parts into UGLY ifdef blocks.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Mar 29 19:28:04 2010 UTC (10 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_21, VERSION_1_9_20
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Integrate Ingo Schwarze's patch for mdoc_iscdelim() (tri-state for opening and closing macro punctuation).
Modify blk_part_exp() to correctly handle leading punctuation before HEAD.
Significantly clean up and document blk_part_exp().
Modify blk_part_imp() for to correctly handle leading punctuation before HEAD.
Significantly clean up and document blk_part_imp().
Integrate Ingo Schwarze's patch for args() (using new mdoc_iscdelim() format).
Documented bad `Ec' handling for later work in mdoc_term.c/mdoc_html.c.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 1 17:14:29 2010 UTC (10 years, 9 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_19, VERSION_1_9_18, VERSION_1_9_17, VERSION_1_9_16, VERSION_1_9_15-pre2, VERSION_1_9_15
Changes since 1.32: +5 -1 lines
Diff to previous 1.32 (colored)

Big check-in of compatibility layer.  This should work on most major architectures. Thanks to Joerg Sonnenberger.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Oct 30 05:58:38 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_15-pre1, VERSION_1_9_14, VERSION_1_9_13, VERSION_1_9_12
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

libmdoc and libman now using non-recoverable allocations (simpler code).

Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 28 19:21:59 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.30: +14 -33 lines
Diff to previous 1.30 (colored)

Slow movement of internal allocations to fail completely.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Oct 24 05:52:13 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_11, VERSION_1_9_10
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Added `%U' to -mdoc (doesn't render in a nice way yet).

Revision 1.29 / (download) - annotate - [select for diffs], Mon Oct 19 09:40:23 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_9
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Fixed `-file' argument to `Bd', which is NOT a type, but instead just an argument.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Oct 15 01:33:12 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

Added support for `Bd -centered', which appears in newer groffs (not yet implemented in centre-capable front-ends, i.e., -Thtml).

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 7 14:52:35 2009 UTC (10 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_8, VERSION_1_9_7
Changes since 1.26: +31 -31 lines
Diff to previous 1.26 (colored)

Fix operator overloading (submitted by Ulrich Sporlein, uqs@spoerlein.net).

Revision 1.26 / (download) - annotate - [select for diffs], Thu Sep 24 13:03:32 2009 UTC (11 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_6
Changes since 1.25: +7 -3 lines
Diff to previous 1.25 (colored)

-offset string can now be blank (supplied with 6n as stipulated by mdoc.samples).

Revision 1.25 / (download) - annotate - [select for diffs], Thu Aug 20 13:22:48 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_5, VERSION_1_9_2, VERSION_1_9_1
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Updated manual structure in mdoc.7.
Synchronised mdoc.template and mdoc.7 manual structure.
`Rv' and `Ex' now accept multiple arguments (-std made standalone, terms as children).
`Rv' and `Ex' format correctly in -Tascii (plurals, commas, etc.).

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 20 09:07:24 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.23: +16 -1 lines
Diff to previous 1.23 (colored)

Documented ARGS_ handling in args().

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 20 08:59:12 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.22: +15 -11 lines
Diff to previous 1.22 (colored)

Delimiter whitespace is correctly flagged (required some special handling).

Revision 1.22 / (download) - annotate - [select for diffs], Wed Aug 19 14:44:35 2009 UTC (11 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (colored)

Removed already-fixed FIXME.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 20 14:12:27 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_9_0, VERSION_1_8_5, VERSION_1_8_4, VERSION_1_8_3, VERSION_1_8_2
Changes since 1.20: +7 -7 lines
Diff to previous 1.20 (colored)

More cleanups for TABSEP handling.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 20 14:09:38 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.19: +31 -50 lines
Diff to previous 1.19 (colored)

Replaced ugly TABSEP handling with simpler routine.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jul 19 21:26:27 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.18: +9 -1 lines
Diff to previous 1.18 (colored)

Fixed and cleaned up "phrase" handling (`Bl -column' columns).
Found strange newline bug in -diag handling (and others?).

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 18 18:59:33 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_1
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Made unterminated quoted literals be a warning, like groff.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 18 18:49:19 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.16: +167 -196 lines
Diff to previous 1.16 (colored)

Considerably revamped argument-parsing for correct quoted-literal handling.
Deprecated ARGS_QUOTED (all arguments are quotable).
Documented quotation and whitespace rules in mdoc.7.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 17 12:28:38 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

Lint-check (removed unused variable).

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 17 12:27:49 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.14: +2 -12 lines
Diff to previous 1.14 (colored)

Removed EARGVPARM (superfluous, overly error-generating).
Added `sp' handler.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 17 10:56:57 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jul 15 15:26:19 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.12: +6 -6 lines
Diff to previous 1.12 (colored)

args() should return ARGS_ERROR, not 0.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 11 20:47:52 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_8_0, VERSION_1_7_24
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

Removed long-fixed FIXME note.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 6 13:04:52 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_23
Changes since 1.10: +31 -85 lines
Diff to previous 1.10 (colored)

Consolidated all err/warnings into mdoc.c via libmdoc.h.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jul 6 11:21:34 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.9: +27 -41 lines
Diff to previous 1.9 (colored)

Consolidated pwarn->perr in mdoc_argv.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 6 09:21:24 2009 UTC (11 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.8: +5 -6 lines
Diff to previous 1.8 (colored)

Initial removal of enum mdoc_warn from mdoc warnings (unnecessary complication).

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 17 14:10:09 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_22, VERSION_1_7_21, VERSION_1_7_20, VERSION_1_7_19
Changes since 1.7: +2 -4 lines
Diff to previous 1.7 (colored)

Lint fixes.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 17 14:08:47 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.6: +4 -6 lines
Diff to previous 1.6 (colored)

`Bl -column' now correctly handles tail entries (Bl -column -more... arg0...).

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 17 11:02:06 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

Cleaned up .Bf validator.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 16 19:45:51 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

Removed MDOC___: moved MDOC_Ap to its index (comments not passed into mdoc parser).

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 10 20:18:43 2009 UTC (11 years, 3 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_17, VERSION_1_7_16, VERSION_1_7_15, VERSION_1_7_14
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Fixed license email address.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 12 19:45:26 2009 UTC (11 years, 5 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_13
Changes since 1.2: +10 -12 lines
Diff to previous 1.2 (colored)

Using proper license template (const).

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 31 13:50:19 2009 UTC (11 years, 6 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_7_12, VERSION_1_7_10, OPENBSD_CHECKIN
Changes since 1.1: +61 -46 lines
Diff to previous 1.1 (colored)

General clean-ups.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Mar 27 15:00:15 2009 UTC (11 years, 6 months ago) by kristaps
Branch: MAIN

Version.  Added forgotten file.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb