/[pkgs]/rpms/man/devel/man-1.6f-man2html-suffixes.patch
ViewVC logotype

Contents of /rpms/man/devel/man-1.6f-man2html-suffixes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Mon Oct 12 08:10:04 2009 UTC (5 weeks, 6 days ago) by varekova
Branch: MAIN
CVS Tags: man-1_6f-23_fc13, HEAD
File MIME type: text/x-patch
- fix man2html to enable to use longer suffixes (#526112)
1 diff -up man-1.6f/man2html/man2html.c.pom man-1.6f/man2html/man2html.c
2 --- man-1.6f/man2html/man2html.c.pom 2009-10-12 09:56:00.000000000 +0200
3 +++ man-1.6f/man2html/man2html.c 2009-10-12 09:59:35.000000000 +0200
4 @@ -171,7 +171,12 @@ add_links(char *c)
5 /* section is n or l or starts with a digit */
6 && strchr("123456789nl", f[1])
7 && (g-f == 2 || (g-f == 3 && isdigit(f[1]) && isalpha(f[2]))
8 - || (f[2] == 'X' && isdigit(f[1])))
9 + || (g-f == 4 && isdigit(f[1]) && isalpha(f[2]) &&
10 + isalpha(f[3]))
11 + || (g-f == 5 && isdigit(f[1]) && isalpha(f[2]) &&
12 + isalpha(f[3]) && isalpha(f[4]))
13 + || (g-f == 6 && isdigit(f[1]) && isalpha(f[2]) &&
14 + isalpha(f[3]) && isalpha(f[4]) && isalpha(f[5])))
15 ) {
16 /* this might be a link */
17 h=f-1;

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2