Re: missing links in hypertext generation

2006-11-26 Thread Hideki IWAMOTO
On Sat, 25 Nov 2006 18:13:00 +0900, Shigio YAMAGUCHI wrote... o How will you change the output of 'global -f'? I will add a function such as realpath() which does not follow symlink to path.c, and will use it instead of realpath(). I exactly have it. Function rel2abs() does the

Re: missing links in hypertext generation

2006-11-26 Thread Shigio YAMAGUCHI
rel2abs resolves references to ./ and ../ only when they are at the head of path. Therefore, rel2abs cannot be used instead of realpath. $ pwd /tmp/pathconvert/lib/t $ ./rel2abs .././././z.c /a/b/c/x /a/b/c/z.c $ ./rel2abs x/.././././z.c /a/b/c /a/b/c/x/.././././z.c Is it a problem?

Re: missing links in hypertext generation

2006-11-26 Thread Hideki IWAMOTO
On Sun, 26 Nov 2006 22:46:41 +0900, Shigio YAMAGUCHI wrote... rel2abs resolves references to ./ and ../ only when they are at the head of path. Therefore, rel2abs cannot be used instead of realpath. $ pwd /tmp/pathconvert/lib/t $ ./rel2abs .././././z.c /a/b/c/x /a/b/c/z.c $

Re: missing links in hypertext generation

2006-11-26 Thread Shigio YAMAGUCHI
previous version $ global -f ./libutil/date.c now40 libutil/date.c now(void) $ global -f libutil/./date.c now40 libutil/date.c now(void) patched version $ global -f ./libutil/date.c now40 libutil/date.c now(void) $

Re: missing links in hypertext generation

2006-11-26 Thread Shigio YAMAGUCHI
Another function to normalize path name is required. This facility also should belong to the rel2abs(). I will do the job. -- Shigio YAMAGUCHI [EMAIL PROTECTED] - Tama Communications Corporation PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3