CVS log for texi2mdoc/util.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Tue Nov 13 09:07:58 2018 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored) to selected 1.4 (colored)

Add missing p->ign guard for paragraph breaks in parseword();
bug reported by Michael Forney <mforney at mforney dot org>.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 13 08:45:29 2018 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.34: +3 -9 lines
Diff to previous 1.34 (colored) to selected 1.4 (colored)

Add the -d option to specify the .Dd date,
and fall back to the mtime before resorting to the current time.
Patch from Michael Forney <mforney at mforney dot org>
with minimal tweaks by me.

While here, fix the date format, "%F" is wrong for mdoc(7).
Change it to "%B %e, %Y" which isn't perfect due to the
spurious blank before single-digit day numbers, but closer.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Mar 19 09:53:36 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.33: +60 -60 lines
Diff to previous 1.33 (colored) to selected 1.4 (colored)

zap trailing whitespace; verified with diff -b;
patch from Svyatoslav Mishyn <juef at openmailbox dot org>

Revision 1.33 / (download) - annotate - [select for diffs], Fri Mar 13 08:07:34 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.32: +7 -2 lines
Diff to previous 1.32 (colored) to selected 1.4 (colored)

Fix some buffer overruns found by AFL.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Mar 12 10:44:34 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.31: +55 -52 lines
Diff to previous 1.31 (colored) to selected 1.4 (colored)

Properly use natural ordering for the navigation section.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 12 04:24:19 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.30: +33 -18 lines
Diff to previous 1.30 (colored) to selected 1.4 (colored)

First, integrate the new `Xr' notation for linking to sections when
chapter mode is enabled.
Second, refine the @top/@node relationship.
Lastly, specify that we don't break apart by chapters, but directly by
nodes.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 11 12:51:41 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.29: +171 -27 lines
Diff to previous 1.29 (colored) to selected 1.4 (colored)

Enormous patch (re-)fixing (again) the vertical space issue, which works
even better in delaying vertical space until needed.
This also adds a lot more indexing capabilities.
All indexing has an HAVE_INDEX preprocess directive, since this is not
really mdoc(7) (yet).

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 7 11:53:21 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.28: +81 -1 lines
Diff to previous 1.28 (colored) to selected 1.4 (colored)

Protect against macros being inadvertently invoked on a macro line.  For
this I use the table of macros from mdocml's mdoc.c and simply scan the
list in the proper circumstances.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 5 15:18:13 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.27: +22 -2 lines
Diff to previous 1.27 (colored) to selected 1.4 (colored)

Convert `--' and `---' to en-dash and em-dash, respectively, and ensure that
this (and the other conversations) don't occur in literal mode.
Also make sure that @code{} switches on literal mode.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Mar 5 09:36:41 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.26: +22 -15 lines
Diff to previous 1.26 (colored) to selected 1.4 (colored)

First stab at properly handling the superfluous `Pp' problem: when we
encounter a double-newline while parsing words, remember that this has
happened.
Then, when we're parsing a subsequent word with that flag set, start with
a `Pp'.
Printing macros will automatically disable the newline status.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Mar 5 08:35:35 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored) to selected 1.4 (colored)

Properly insert the @copying block.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 3 22:37:24 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.24: +17 -2 lines
Diff to previous 1.24 (colored) to selected 1.4 (colored)

New sentence, new line.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 3 15:21:01 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.4 (colored)

Fix bad access to memory.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Mar 2 18:12:53 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.22: +12 -4 lines
Diff to previous 1.22 (colored) to selected 1.4 (colored)

Allow for @sc{} to properly uppercase as requested by Baptiste Daroussin--thanks!

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 1 16:57:39 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.21: +22 -7 lines
Diff to previous 1.21 (colored) to selected 1.4 (colored)

Minor bug-fixes: empty macros still have brackets parsed, correctly
skipping '@NEWLINE' when advancing to the end of line, adding which
nodes are in the info navigation section.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Mar 1 13:39:51 2015 UTC (9 years ago) by kristaps
Branch: MAIN
Changes since 1.20: +15 -11 lines
Diff to previous 1.20 (colored) to selected 1.4 (colored)

Allow @value in the settitle block as found in GMP.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 1 00:25:08 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.19: +126 -20 lines
Diff to previous 1.19 (colored) to selected 1.4 (colored)

Add initial (and rather crude) support to print chapter-by-chapter nodes.
This is because with most manuals, apropos(1) is useless: it will point
to somewhere in a million lines.
This allows texi2moc to break apart a manual into chapters, each of which
links to other chapters, and which (at least in theory) will allow for
easier digesting of material.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Feb 28 13:16:44 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.18: +19 -2 lines
Diff to previous 1.18 (colored) to selected 1.4 (colored)

When using @def style commands, indent the "explanation" block as it's
supposed to be, where subsequent @defx commands aren't indented.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 28 08:41:59 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.17: +17 -4 lines
Diff to previous 1.17 (colored) to selected 1.4 (colored)

Have @math mode properly interpret commands and match squiggly brackets.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Feb 28 00:03:20 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.16: +42 -15 lines
Diff to previous 1.16 (colored) to selected 1.4 (colored)

Prevent infinite macro expansion by incrementing a "depth" of recursive
expansion IFF we're currently in a macro expansion already, where the start
of the macro expansion begins at the macro name and NOT after the name has
been parsed.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 25 15:50:56 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.4 (colored)

Casting for ctype functions.  Patch by Thomas Klausner--thanks!

Revision 1.15 / (download) - annotate - [select for diffs], Wed Feb 25 14:49:14 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_1_2
Changes since 1.14: +36 -15 lines
Diff to previous 1.14 (colored) to selected 1.4 (colored)

Have line and column number reporting not be affected by the splice.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 25 14:37:17 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.13: +244 -258 lines
Diff to previous 1.13 (colored) to selected 1.4 (colored)

Completely re-write @value and @macro handling to work exactly as Texinfo
specifies and not how I really want it to work.
In a word, macros and values are pasted into the text: they're not self-
contained bodies that can be recursively executed.

In other words,
  @macro hello{}
  @ifset foo
  @end macro
  @hello
  @end ifset
...is completely valid.

While here, stop paying attention to the manual's lies about macro newlines.
The terminal newline (i.e., before "@end macro") is part of the macro, which
is why so many macros are @r{}@c -- to swallow the newline.

This required a significant mechanical change to get the buffer pointer and
size out of all arguments, as the buffer can now be reallocated.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 24 14:35:40 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.12: +19 -29 lines
Diff to previous 1.12 (colored) to selected 1.4 (colored)

Clarify the role of texiputchar() and texiputchars() and make sure both are
being correctly invoked.
While doing so, prune away the different places where mdoc(7) is being
escaped.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 23 22:50:11 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.11: +47 -2 lines
Diff to previous 1.11 (colored) to selected 1.4 (colored)

Add reading initial file from stdin.
Ignore some more macros from in GMP.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 23 17:24:51 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.10: +10 -8 lines
Diff to previous 1.10 (colored) to selected 1.4 (colored)

Compile on Linux: define _GNU_SOURCE for memmem(3), replace strlcat(3) with
a manual copy (ok: it's just a single usage and not worth a compat), and
fix dirname(3) usage.
While here, fix a GMP manual that was puking on .Pp in an @example.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Feb 23 15:09:09 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
CVS Tags: VERSION_0_1_1
Changes since 1.9: +30 -3 lines
Diff to previous 1.9 (colored) to selected 1.4 (colored)

Implement macro-invocation workarounds found in real-life manuals.
Add some random macros found in real-life manuals.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 23 14:36:03 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.8: +16 -1 lines
Diff to previous 1.8 (colored) to selected 1.4 (colored)

Have @math and @verb correctly escape arguments, add @cartouche, fix
accent marks.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Feb 23 11:56:39 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.7: +34 -6 lines
Diff to previous 1.7 (colored) to selected 1.4 (colored)

Save line, column, and filename references before parsing memory buffers,
or else we'll munge our position.
Also, follow the texinfo manual with its single-argument comma ignoring.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 23 11:44:30 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.6: +253 -29 lines
Diff to previous 1.6 (colored) to selected 1.4 (colored)

Macro support!  This parses the @macro blocks, maintains their arguments and
bodies, recognises invoked macros, fills in their arguments, then recursively
invokes the macro bodies.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 21 22:01:32 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.4 (colored)

Protect against too many nested values.
Convert texiabort() (needs an errno) to texierr().

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 21 21:49:18 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

Make @value{...} parse its own arguments.
So add the necessary protection against infinite recursion.
Also protect against texivspace() in tables.

Revision 1.4 / (download) - annotate - [selected], Sat Feb 21 17:00:33 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.3: +22 -6 lines
Diff to previous 1.3 (colored)

Add user-defined code indices.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 21 12:44:45 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.4 (colored)

Fix potential hang found by AFL.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 20 12:25:25 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Changes since 1.1: +136 -1 lines
Diff to previous 1.1 (colored) to selected 1.4 (colored)

Move value parsing into util.c.
Add verbatim mode.
Add some more commands.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Feb 20 09:58:50 2015 UTC (9 years, 1 month ago) by kristaps
Branch: MAIN
Diff to selected 1.4 (colored)

Split utility functions out of main.c.

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