From 36650c9455428f007f4feb682ecbc9385e31ce71 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Tue, 16 Mar 2021 15:52:39 -0400 Subject: update ".so" links, and fix a special case for "const char *" in parsing function-names Signed-off-by: Thomas E. Dickey --- man/.man | 1 + man/Makefile.am | 49 +++++++++++++++++++++++----------------- man/Xcursor.man | 6 ++--- man/XcursorGetThemeCore.man | 1 + man/XcursorImageLoadCursor.man | 1 + man/XcursorImagesLoadCursor.man | 1 + man/XcursorImagesLoadCursors.man | 1 + man/XcursorLibraryPath.man | 1 + man/XcursorLibraryShape.man | 1 + man/XcursorSetThemeCore.man | 1 + man/makelinks | 4 +++- 11 files changed, 42 insertions(+), 25 deletions(-) create mode 100644 man/.man create mode 100644 man/XcursorGetThemeCore.man create mode 100644 man/XcursorImageLoadCursor.man create mode 100644 man/XcursorImagesLoadCursor.man create mode 100644 man/XcursorImagesLoadCursors.man create mode 100644 man/XcursorLibraryPath.man create mode 100644 man/XcursorLibraryShape.man create mode 100644 man/XcursorSetThemeCore.man diff --git a/man/.man b/man/.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/Makefile.am b/man/Makefile.am index 24effcf..167db61 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -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@) diff --git a/man/Xcursor.man b/man/Xcursor.man index 38c7858..674f9a4 100644 --- a/man/Xcursor.man +++ b/man/Xcursor.man @@ -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 diff --git a/man/XcursorGetThemeCore.man b/man/XcursorGetThemeCore.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/XcursorGetThemeCore.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/XcursorImageLoadCursor.man b/man/XcursorImageLoadCursor.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/XcursorImageLoadCursor.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/XcursorImagesLoadCursor.man b/man/XcursorImagesLoadCursor.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/XcursorImagesLoadCursor.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/XcursorImagesLoadCursors.man b/man/XcursorImagesLoadCursors.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/XcursorImagesLoadCursors.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/XcursorLibraryPath.man b/man/XcursorLibraryPath.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/XcursorLibraryPath.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/XcursorLibraryShape.man b/man/XcursorLibraryShape.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/XcursorLibraryShape.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/XcursorSetThemeCore.man b/man/XcursorSetThemeCore.man new file mode 100644 index 0000000..690dab2 --- /dev/null +++ b/man/XcursorSetThemeCore.man @@ -0,0 +1 @@ +.so man__libmansuffix__/Xcursor.__libmansuffix__ diff --git a/man/makelinks b/man/makelinks index cfed84d..e2898cf 100755 --- a/man/makelinks +++ b/man/makelinks @@ -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]; -- cgit v1.2.3