update ".so" links, and fix a special case for "const char *" in parsing function-names

Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
This commit is contained in:
Thomas E. Dickey 2021-03-16 15:52:39 -04:00
parent 23a0faa129
commit 36650c9455
No known key found for this signature in database
GPG key ID: 702353E0F7E48EDB
11 changed files with 42 additions and 25 deletions

1
man/.man Normal file
View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -5,44 +5,51 @@ libman_PRE = \
$(Xcursor_shadows:=.man)
Xcursor_shadows = \
XcursorImageCreate \
XcursorImageDestroy \
XcursorImagesCreate \
XcursorImagesDestroy \
XcursorCursorsCreate \
XcursorCursorsDestroy \
XcursorXcFileLoadImage \
XcursorXcFileLoadImages \
XcursorXcFileLoadAllImages \
XcursorXcFileLoad \
XcursorXcFileSave \
XcursorFileLoad \
XcursorFileLoadAllImages \
XcursorFileLoadImage \
XcursorFileLoadImages \
XcursorFileSave \
XcursorFileSaveImages \
XcursorFilenameLoad \
XcursorFilenameLoadAllImages \
XcursorFilenameLoadCursor \
XcursorFilenameLoadCursors \
XcursorFilenameLoadImage \
XcursorFilenameLoadImages \
XcursorFilenameLoadAllImages \
XcursorFilenameLoad \
XcursorFilenameSaveImages \
XcursorFilenameSave \
XcursorLibraryLoadImage \
XcursorLibraryLoadImages \
XcursorFilenameLoadCursor \
XcursorFilenameSaveImages \
XcursorGetDefaultSize \
XcursorGetTheme \
XcursorGetThemeCore \
XcursorImageCreate \
XcursorImageDestroy \
XcursorImageLoadCursor \
XcursorImagesCreate \
XcursorImagesDestroy \
XcursorImagesLoadCursor \
XcursorImagesLoadCursors \
XcursorLibraryLoadCursor \
XcursorLibraryLoadCursors \
XcursorShapeLoadImage \
XcursorShapeLoadImages \
XcursorLibraryLoadImage \
XcursorLibraryLoadImages \
XcursorLibraryPath \
XcursorLibraryShape \
XcursorSetDefaultSize \
XcursorSetTheme \
XcursorSetThemeCore \
XcursorShapeLoadCursor \
XcursorShapeLoadCursors \
XcursorShapeLoadImage \
XcursorShapeLoadImages \
XcursorSupportsARGB \
XcursorSetDefaultSize \
XcursorGetDefaultSize \
XcursorSetTheme \
XcursorGetTheme
XcursorXcFileLoad \
XcursorXcFileLoadAllImages \
XcursorXcFileLoadImage \
XcursorXcFileLoadImages \
XcursorXcFileSave
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@)

View file

@ -660,9 +660,9 @@ Xcursor tries the \fBXcursor.theme_core\fP resource.
An application can enable or disable themes using XcursorSetThemeCore.
.SH SEE ALSO
XCreateRenderCursor(3),
XCreatePixmapCursor(3), and
XCreateFontCursor(3)
XCreateRenderCursor(__libmansuffix__),
XCreatePixmapCursor(__libmansuffix__), and
XCreateFontCursor(__libmansuffix__)
.PP
as well as
.IP

View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -0,0 +1 @@
.so man__libmansuffix__/Xcursor.__libmansuffix__

View file

@ -34,6 +34,7 @@
use strict;
use warnings;
our $opt_v;
our %man_links;
sub read_file($) {
@ -75,7 +76,8 @@ sub scan_man($) {
for my $n ( 0 .. $#data ) {
if ( $last =~ /^\.NS\b/ ) {
my $name = $data[$n];
$name =~ s/^\s*\w+\s*[*]*\s*(\w+)\b.*/$1/;
$name =~ s/^(const)?\s*\w+\s*[*]*\s*(\w+)\b.*/$2/;
printf STDERR "MAP '%s' -> '%s'\n", $data[$n], $name if ( $opt_v );
&make_man_link($name);
}
$last = $data[$n];