CVS log for mandoc/tbl_opts.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Fri Dec 14 05:18:03 2018 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD
Changes since 1.23: +9 -10 lines
Diff to previous 1.23 (colored) to selected 1.6 (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.23 / (download) - annotate - [select for diffs], Thu Dec 13 02:06:07 2018 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.6 (colored)

Cleanup, no functional change:
Move tbl(7)-specific parser internals out of libroff.h.
Move some tbl(7)-internal processing from roff.c to tbl.c.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 12 21:54:35 2018 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored) to selected 1.6 (colored)

Cleanup, no functional change:
No need to expose the tbl(7) syntax tree data structures everywhere.
Move them to their own include file, "tbl.h", and improve comments.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 26 00:54:04 2015 UTC (8 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, VERSION_1_14_1, VERSION_1_13_4, VERSION_1_13
Changes since 1.20: +1 -2 lines
Diff to previous 1.20 (colored) to selected 1.6 (colored)

/* NOTREACHED */ after abort() is silly, delete it

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 28 17:32:07 2015 UTC (9 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) to selected 1.6 (colored)

* Polish tbl(7) error reporting.
* Do not print out macro names in tbl(7) data blocks.
* Like with GNU tbl, let empty tables cause a blank line.
* Avoid producing empty tables in -Tman.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jan 28 15:03:45 2015 UTC (9 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored) to selected 1.6 (colored)

For now, it can't be helped that mandoc tbl(7) ignores high-level macros,
but stop throwing away their arguments.  This fixes information loss in a
handful of Xenocara manuals, at the price of a small amount of formatting
noise creeping through.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 26 13:03:48 2015 UTC (9 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.17: +32 -50 lines
Diff to previous 1.17 (colored) to selected 1.6 (colored)

More improvements regarding tbl(7) options.
* Treat "allbox" as an alias for "box" for now.
* Parse and ignore the GNU tbl "nowarn" option.
* For separation, allow spaces, tabs, and commas only.
* Mark eqn(7) within tbl(7) as unsupported.
* Simplify the option table.
* Improve and sort documentation.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jan 26 00:57:22 2015 UTC (9 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.16: +78 -157 lines
Diff to previous 1.16 (colored) to selected 1.6 (colored)

Improve (or rather, rewrite) tbl(7) option parsing.
* Allow the layout to start after the semicolon on the options line.
* Ignore leading commas.
* Option arguments cannot contain closing parentheses.
* Avoid needless UNSUPP messages.
* Better ERROR reporting.
* Delete unused "linesize" field in struct tbl_opts.
* No need for static buffers.
* Garbage collect one almost empty wrapper function.
Improved functionality, but minus 40 lines of code.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 14 22:44:55 2015 UTC (9 years, 2 months ago) by schwarze
Branch: MAIN
Changes since 1.15: +2 -5 lines
Diff to previous 1.15 (colored) to selected 1.6 (colored)

simplify by getting rid of ROFF_ERR in tbl(7) parsing; no functional change

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 26 17:51:55 2014 UTC (9 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.6 (colored)

Allow comma-separated options in tbl(7) tables.
Provides better groff compatibility.
From bentley@.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Aug 10 23:54:41 2014 UTC (9 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_4, VERSION_1_12
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.6 (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.13 / (download) - annotate - [select for diffs], Sun Apr 20 16:46:05 2014 UTC (9 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.12: +24 -23 lines
Diff to previous 1.12 (colored) to selected 1.6 (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.12 / (download) - annotate - [select for diffs], Sun Sep 18 14:14:15 2011 UTC (12 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_3, VERSION_1_12_2, VERSION_1_12_1, VERSION_1_12_0
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.6 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Mon Apr 4 23:04:38 2011 UTC (12 years, 11 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5, VERSION_1_11_4, VERSION_1_11_3, VERSION_1_11_2
Changes since 1.10: +5 -1 lines
Diff to previous 1.10 (colored) to selected 1.6 (colored)

Add config.h Glue for OpenIndiana (and older OpenSolaris) to build.
From a patch by Yuri Pankov, thanks!

Revision 1.10 / (download) - annotate - [select for diffs], Sun Mar 20 16:02:05 2011 UTC (13 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_11_1
Changes since 1.9: +16 -10 lines
Diff to previous 1.9 (colored) to selected 1.6 (colored)

Consolidate messages.  Have all parse-time messages (in libmdoc,
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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 15 16:23:51 2011 UTC (13 years ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_10
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.6 (colored)

Make lint shut up a little bit.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jan 9 05:38:23 2011 UTC (13 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.6 (colored)

Add some unsigned char casts for tolower() usage

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 7 13:20:58 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_10_9
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Quiesce lint with some type handling.  Does not change anything.

Revision 1.6 / (download) - annotate - [selected], Thu Jan 6 13:45:47 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Remove delims from struct tbl (not used anywhere and never will be).

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jan 2 10:10:57 2011 UTC (13 years, 2 months ago) by kristaps
Branch: MAIN
Changes since 1.4: +14 -12 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

Churn to get parts of 'struct tbl' visible from mandoc.h: rename the
existing 'struct tbl' as 'struct tbl_node', then move all option stuff
into a 'struct tbl' in mandoc.h.

This conflicted with a structure in chars.c, which was renamed.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 29 14:38:14 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored) to selected 1.6 (colored)

Merge, with considerable changes, tbl.bsd.lv's layout-handling code.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 29 01:16:57 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.2: +131 -68 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

Significant update to options handling, which now departs almost
completely with the BSD.lv code due to performance issues and flat-out
errors.

Performance issues: functions called per character.  Ugly.

Flat-out errors: disallowing "reserved" tokens as arguments to those
options accepting arguments.

Also added are two mandoc.h error codes for general tbl syntax errors
and for bad options.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Dec 28 13:47:38 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored) to selected 1.6 (colored)

Fix copyright email.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Dec 28 13:46:07 2010 UTC (13 years, 3 months ago) by kristaps
Branch: MAIN
Diff to selected 1.6 (colored)

Adding initial options processing (not hooked into parse yet).  This is
more or less copied from tbl.bsd.lv and still needs integration with the
general mandoc framework, e.g., with error messages.

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