Age | Commit message (Collapse) | Author |
|
dev. Allows volume settings to be saved while the device is kept
closed. Besides that, no behabiour changes.
|
|
but invalid nodes. Output still differs a lot from groff, but at
least let's not crash.
Problem found and patch provided by joerg@, thanks!
|
|
written by kristaps@, massive conflict resolution by me.
Lightly tested, putting it in for polishing it in-tree.
This concludes p2k11 for me, thanks robert@!
|
|
from Michael W. Bombardieri;
|
|
of search types can be supported in the future. While here, replace
a couple of memcpy(3)s by proper, statically type-checked assignments,
and de-obfuscate some magical numbers using sizeof().
|
|
And as suggested by kristaps@, improve a lot of comments.
|
|
and add the standard options -M and -m to apropos(1).
Including a bugfix to prevent mandocdb(8) from leaking
database file descriptors.
|
|
They have been considered valid in the past, but were reformatted
to the mdoc(7) "Month day, year" style.
To make page footers more similar to groff, no longer reformat them,
just print them as they are.
This doesn't change anything with respect to what's considered valid
or what is warned about.
Putting this in now such that i can improve the unit test suite.
|
|
reported by todd@ and sebastia@
tested by sebastia@ with xdm on vax.
|
|
otherwise a stream may try to close the device a second time.
|
|
support multiple devices
|
|
fix up the section attributes of the HEAD, it's parent BLOCK, and
all its (text) children. This is required because the section
attributes get set when each node is allocated, i.e. before processing
the content of the node itself. Thus, the listed nodes got the section
attribute of the preceding section. No need to fix up the BODY, all
is fine there already.
Found while implementing TYPE_Sh for mandocdb(8).
|
|
do not abort(), but delete the head together with the block itself.
Problem found and patch provided by joerg@, thanks!
|
|
to combine them. The default remains -o; usual precedence applies.
No explicit grouping by parentheses yet.
from kristaps@
|
|
Discovered when I was ``borrowing'' this code for something else.
ok djm@
|
|
|
|
one of them is NULL
|
|
Ben Boeckel.
|
|
Boeckel.
|
|
|
|
|
|
|
|
|
|
|
|
single aucat instance to handle all audio and MIDI services. Since
this partially breaks compatibility, this is a opportunitiy to fix few
other design mistakes (eg ':' being used by inet6, type name vs api
name confusion, etc..). This leads to the following names:
type[@hostname][,unit]/devnum[.option]
The device number is the minor device number for direct hardware
access (ie the 'N' in /dev/audioN). For aucat, this is the occurence
number of the -f (or -M) option.
There's a compatibility hook to keep old names working if only one
aucat server is running.
|
|
put stuff into the database that man(1) will be able to retrieve.
However, support an option to use all directories and files.
Kristaps@ agreed with the general direction and provided some feedback.
|
|
* one instead of three blank lines after the page header;
* one instead of three blank lines before the page footer;
* source instead of title(section) in the lower right corner.
Select this style variant with the undocumented command line option -Omdoc.
|
|
|
|
|
|
so far, this is only accepting the option,
i will commit the (few) formatting tweaks separately.
This is intentionally undocumented for two reasons:
(1) We dream of making it the default at some point, so the option
will hopefully go away again.
(2) It is not needed for production, but mostly for automated man(7)
to mdoc(7) output comparisons, to help -Tman development.
|
|
just like the default right margin already is. This may be useful for
people with expensive screen real estate. Besides, it helps automated
man(7) to mdoc(7) output comparisons to validate -Tman output.
ok kristaps@ on an earlier version
|
|
apropos [search_type[,...]=]substring
apropos search_type[,...][,i]~regex
... and expression evaluation must take the search type into account.
This allows to:
* drop the global -I option and
* drop the enum match, just using a boolean int.
"go ahead" kristaps@
|
|
set of keywords already exists is a bad idea, so reuse the mdoc(7)
macro names as apropos(1) search types. This is a gain in brevity
as well. Some time ago, kristaps@ agreed in principle.
The search type bit field constants are used by both mandocdb(8) and
apropos(1) and should better stay in sync, so give them their own
header file.
|
|
for example the future man.cgi, out of apropos.c (which still
contains the apropos(1) main program, command line handling, and
the terminal output formatter) into apropos_db.{h,c} (which now
contains the database searching backend code).
... and actually commit the two new files. Oops.
|
|
for example the future man.cgi, out of apropos.c (which still
contains the apropos(1) main program, command line handling, and
the terminal output formatter) into apropos_db.{h,c} (which now
contains the database searching backend code).
While here,
* Drop the -e option; to search for exact strings, use REs.
* Drop the -r option (more changes related to this coming soon).
* Use the traditional -s and -S instead of inventing our own options.
* Drop the sort option (at least for now), it got in the way.
Written by kristaps@.
|
|
1) Avoid excessive, needless recursion lest you overflow the stack;
2) Close dir file descriptors, lest you run out of descriptors.
ok kristaps@
|
|
|
|
Helps with some real-world manuals that (incorrectly)
assume that the C font family means "constant width".
Suggested by Andreas Vogele, patch by kristaps@.
|
|
|
|
|
|
|
|
executable (by mode or content), which can trip up builds with 'make -j'
(The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines)
ok millert@ deraadt@
|
|
note that patsubst is non-standard.
okay miod@, deraadt@
|
|
do not abort with a FATAL error, but report a regular ERROR,
remove the broken .TP from the syntax tree, and prod on.
Reported repeatedly by ports people, at least by brad@ and jeremy@.
Also fixes rendition(4) in Xenocara.
|
|
|
|
|
|
in command mode. From Ben Boeckel.
|
|
Found by Michael W. Bombardieri <mwb at bom dot nom dot co> using lint.
ok deraadt@
|
|
do not use the current date. This removes a gratuitous output difference
with respect to groff.
ok kristaps@
|
|
no space between the delimiters and the enclosed text.
The mdoc_html.c part was added by kristaps; ok kristaps@.
|