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:=.man)
Xcursor_shadows = \ Xcursor_shadows = \
XcursorImageCreate \
XcursorImageDestroy \
XcursorImagesCreate \
XcursorImagesDestroy \
XcursorCursorsCreate \ XcursorCursorsCreate \
XcursorCursorsDestroy \ XcursorCursorsDestroy \
XcursorXcFileLoadImage \
XcursorXcFileLoadImages \
XcursorXcFileLoadAllImages \
XcursorXcFileLoad \
XcursorXcFileSave \
XcursorFileLoad \ XcursorFileLoad \
XcursorFileLoadAllImages \ XcursorFileLoadAllImages \
XcursorFileLoadImage \ XcursorFileLoadImage \
XcursorFileLoadImages \ XcursorFileLoadImages \
XcursorFileSave \ XcursorFileSave \
XcursorFileSaveImages \ XcursorFileSaveImages \
XcursorFilenameLoad \
XcursorFilenameLoadAllImages \
XcursorFilenameLoadCursor \
XcursorFilenameLoadCursors \ XcursorFilenameLoadCursors \
XcursorFilenameLoadImage \ XcursorFilenameLoadImage \
XcursorFilenameLoadImages \ XcursorFilenameLoadImages \
XcursorFilenameLoadAllImages \
XcursorFilenameLoad \
XcursorFilenameSaveImages \
XcursorFilenameSave \ XcursorFilenameSave \
XcursorLibraryLoadImage \ XcursorFilenameSaveImages \
XcursorLibraryLoadImages \ XcursorGetDefaultSize \
XcursorFilenameLoadCursor \ XcursorGetTheme \
XcursorGetThemeCore \
XcursorImageCreate \
XcursorImageDestroy \
XcursorImageLoadCursor \
XcursorImagesCreate \
XcursorImagesDestroy \
XcursorImagesLoadCursor \
XcursorImagesLoadCursors \
XcursorLibraryLoadCursor \ XcursorLibraryLoadCursor \
XcursorLibraryLoadCursors \ XcursorLibraryLoadCursors \
XcursorShapeLoadImage \ XcursorLibraryLoadImage \
XcursorShapeLoadImages \ XcursorLibraryLoadImages \
XcursorLibraryPath \
XcursorLibraryShape \
XcursorSetDefaultSize \
XcursorSetTheme \
XcursorSetThemeCore \
XcursorShapeLoadCursor \ XcursorShapeLoadCursor \
XcursorShapeLoadCursors \ XcursorShapeLoadCursors \
XcursorShapeLoadImage \
XcursorShapeLoadImages \
XcursorSupportsARGB \ XcursorSupportsARGB \
XcursorSetDefaultSize \ XcursorXcFileLoad \
XcursorGetDefaultSize \ XcursorXcFileLoadAllImages \
XcursorSetTheme \ XcursorXcFileLoadImage \
XcursorGetTheme XcursorXcFileLoadImages \
XcursorXcFileSave
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) 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. An application can enable or disable themes using XcursorSetThemeCore.
.SH SEE ALSO .SH SEE ALSO
XCreateRenderCursor(3), XCreateRenderCursor(__libmansuffix__),
XCreatePixmapCursor(3), and XCreatePixmapCursor(__libmansuffix__), and
XCreateFontCursor(3) XCreateFontCursor(__libmansuffix__)
.PP .PP
as well as as well as
.IP .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 strict;
use warnings; use warnings;
our $opt_v;
our %man_links; our %man_links;
sub read_file($) { sub read_file($) {
@ -75,7 +76,8 @@ sub scan_man($) {
for my $n ( 0 .. $#data ) { for my $n ( 0 .. $#data ) {
if ( $last =~ /^\.NS\b/ ) { if ( $last =~ /^\.NS\b/ ) {
my $name = $data[$n]; 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); &make_man_link($name);
} }
$last = $data[$n]; $last = $data[$n];