CVS log for mandoc/Attic/manpage.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15, Mon Apr 24 23:32:00 2017 UTC (7 years ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED

Delete the manpage(1) utility.
It was never enabled in any release, nor was a manual ever written.

In general, we want to simplify the user interface rather than
succumb to featurism.  Consequently, integrating manpage(1)
into the main binary would seem like a dubious direction.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jul 9 15:24:19 2016 UTC (7 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1, VERSION_1_13_4, VERSION_1_13
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

getopt(3) is declared in <unistd.h>, and <getopt.h> is not needed;
from Joerg Sonnenberger via Thomas Klausner, NetBSD.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Nov 7 17:58:55 2015 UTC (8 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.12: +12 -7 lines
Diff to previous 1.12 (colored)

Modernization, no functional change intended:
Use the POSIX function getline(3) rather than the slightly
dangerous BSD function fgetln(3).
Remove the related compatibility code.

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

modernize style: "return" is not a function

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 27 17:37:25 2015 UTC (9 years ago) by schwarze
Branch: MAIN
Changes since 1.10: +7 -7 lines
Diff to previous 1.10 (colored)

Parse the new man.conf(5) "output" directive.
The next step will be to actually use the parsed data.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Feb 10 08:05:30 2015 UTC (9 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_3
Changes since 1.9: +6 -6 lines
Diff to previous 1.9 (colored)

trim trailing white space, no code change;
from Svyatoslav Mishyn <juef at openmailboxd dot org>, Crux Linux

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 17 03:24:47 2014 UTC (9 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_2
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Fully integrate apropos(1) into mandoc(1).
Switch the argmode on the progname, including man(1).
Provide -f and -k options to switch the argmode.
Store the argmode inside struct search, generalizing the flags.
Derive the deftype from the argmode when needed instead of storing it.
Store the outkey inside struct search instead of passing it alone.
While here, get rid of the trailing blanks in Makefile.depend.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 10 23:54:41 2014 UTC (9 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Mon Jan 6 03:02:46 2014 UTC (10 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_13_1
Changes since 1.6: +3 -4 lines
Diff to previous 1.6 (colored)

Drop Nd from the mpages table, it is still in the keys table.
This shrinks the database in standard mode by 3%, in -Q mode by 9%,
without loss of functionality.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 31 03:41:14 2013 UTC (10 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

Experimental feature to let apropos(1) show different keys than .Nd.
This really takes us beyond what grep -R /usr/*/man/ can do
because now you can search for pages by *one* criterion and then
display the contents of *another* macro from those pages, like in
$ apropos -O Ox Fa~wchar
to get an impression how long wide character handling is available.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 27 18:51:25 2013 UTC (10 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +9 -2 lines
Diff to previous 1.4 (colored)

Change the mansearch() interface to use the mlinks table in the database
and return a list of names with sections, used by apropos(1) for display.
While here, improve uniformity of the interface by allocating the file
name dynamically, just like the names list and the description.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 5 02:00:26 2013 UTC (10 years, 10 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Some places used PATH_MAX from <limits.h>, some MAXPATHLEN from <sys/param.h>.
Consistently use the PATH_MAX since it is specified by POSIX,
while MAXPATHLEN is not.
In preparation for using this at a few more places.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 9 17:49:13 2012 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Allow compilation on Mac OSX.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 9 14:11:16 2012 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN
Changes since 1.1: +10 -7 lines
Diff to previous 1.1 (colored)

Merge whatis.1 into apropos.1 (and remove), add whatis bits to apropos
(via mansearch), and merge mandocdb.h into mansearch.h (and remove).

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jun 8 10:44:52 2012 UTC (11 years, 10 months ago) by kristaps
Branch: MAIN

Flip apropos to use mansearch instead of apropos_db.
This makes the utility much smaller and simpler.
A lot of functionality has been omitted while the sqlite3 search routines
improve (logical operations, etc.).
It still needs work to make the output more conventional.
Also add the manpage utility, which I use extensively as a mind-meld of
apropos and man.

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