CVS log for mandoc/eqn_term.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Thu Dec 13 05:23:38 2018 UTC (2 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored) to selected 1.2 (colored)

Cleanup, no functional change:
No need to expose the eqn(7) syntax tree data structures everywhere.
Move them to their own include file, "eqn.h".
While here, delete the unused enum eqn_pilet.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Oct 2 12:18:33 2018 UTC (3 years ago) by schwarze
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.2 (colored)

Render the eqn(7) "sqrt" function as U+221A in UTF-8 output.
This also agrees with what groff does.
Suggested by an attendee of EuroBSDCon 2018 in Bucuresti.
Written on the plane Bucuresti-Frankfurt returning from EuroBSDCon.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 23 21:56:20 2017 UTC (4 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4
Changes since 1.16: +5 -3 lines
Diff to previous 1.16 (colored) to selected 1.2 (colored)

remove spacing after another representation of unary minus

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 23 20:49:15 2017 UTC (4 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.15: +5 -3 lines
Diff to previous 1.15 (colored) to selected 1.2 (colored)

remove spacing after unary minus

Revision 1.15 / (download) - annotate - [select for diffs], Wed Aug 23 20:29:42 2017 UTC (4 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.14: +8 -2 lines
Diff to previous 1.14 (colored) to selected 1.2 (colored)

eliminate white space after opening and before closing punctuation

Revision 1.14 / (download) - annotate - [select for diffs], Wed Aug 23 20:03:17 2017 UTC (4 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.13: +13 -3 lines
Diff to previous 1.13 (colored) to selected 1.2 (colored)

Suppress spacing before certain kinds of lists.
One benefit is a reduced probablity that a blank appears between
a function name and the opening parenthesis introducing the arguments.
The heuristics isn't perfect and may occasionally suppress a blank
that wouldn't do harm.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jul 8 14:51:04 2017 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_3, VERSION_1_14_2
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.2 (colored)

1. Eliminate struct eqn, instead use the existing members
of struct roff_node which is allocated for each equation anyway.
2. Do not keep a list of equation parsers, one parser is enough.
Minus fifty lines of code, no functional change.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jul 7 19:06:31 2017 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.11: +28 -6 lines
Diff to previous 1.11 (colored) to selected 1.2 (colored)

add parentheses to the output where required for disambiguation

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 6 00:19:54 2017 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.10: +9 -10 lines
Diff to previous 1.10 (colored) to selected 1.2 (colored)

Fix operator precedence according to Brian W. Kernighan and Lorinda
L. Cherry, "Typesetting Mathematics - User's Guide (Second Edition)",
August 15, 1978, paragraph 23; swarm of bugs pointed out by bentley@.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jul 5 15:03:27 2017 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +7 -4 lines
Diff to previous 1.9 (colored) to selected 1.2 (colored)

The EQN_LISTONE box type is pointless.
Simplify by just using EQN_LIST with expectargs = 1.
Noticed while investigating a bug report from bentley@.
No functional change.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 12 14:19:01 2017 UTC (4 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13
Changes since 1.8: +8 -5 lines
Diff to previous 1.8 (colored) to selected 1.2 (colored)

Do not access a NULL pointer if a matrix or square root are empty.
Crashes found by tb@ with afl(1).

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 1 15:36:08 2015 UTC (6 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_4, VERSION_1_13_3
Changes since 1.7: +12 -9 lines
Diff to previous 1.7 (colored) to selected 1.2 (colored)

Don't dereference NULL pointers when formatting missing denominators,
subscripts, superscripts, or "from" or "to" arguments.
Found by jsg@ with afl.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 12 14:49:39 2014 UTC (7 years ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.6: +66 -19 lines
Diff to previous 1.6 (colored) to selected 1.2 (colored)

major upgrade to eqn(7) terminal output;
column vectors ("piles") and matrices are not yet pretty,
but everything else is now more or less readable

Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 10 23:54:41 2014 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_12_4, VERSION_1_12
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) to selected 1.2 (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.5 / (download) - annotate - [select for diffs], Sun Apr 20 16:46:04 2014 UTC (7 years, 6 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored) to selected 1.2 (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.4 / (download) - annotate - [select for diffs], Sun Jul 24 10:09:03 2011 UTC (10 years, 2 months ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_1_12_3, VERSION_1_12_2, VERSION_1_12_1, VERSION_1_12_0, VERSION_1_11_7, VERSION_1_11_6, VERSION_1_11_5
Changes since 1.3: +25 -31 lines
Diff to previous 1.3 (colored) to selected 1.2 (colored)

Tuned the initial eqn output, making it completely simple.  This
completes a full initial eqn system, so I'm tagging a release on it.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jul 23 22:57:13 2011 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

Flip on equation printing for -T[x]html.

Revision 1.2 / (download) - annotate - [selected], Sat Jul 23 12:01:54 2011 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
Changes since 1.1: +1 -7 lines
Diff to previous 1.1 (colored)

Add matrix support.  Also remove "above" notion, as all elements in a
list are delimited by their "aboveness" and it's superfluous.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jul 22 10:50:46 2011 UTC (10 years, 3 months ago) by kristaps
Branch: MAIN
Diff to selected 1.2 (colored)

Add character output (-Tpdf, -Tps, -Tascii) for equations.  This is the
minimum: unseparated terms.

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