From: SourceForge.net <no...@so...> - 2006-12-31 20:32:47
|
Patches item #1226144, was opened at 2005-06-23 02:33 Message generated for change (Comment added) made by highlandsun You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=1226144&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: runtime Group: Patch under review Status: Open Resolution: None Priority: 5 Private: No Submitted By: Keith Marshall (keithmarshall) Assigned to: Keith Marshall (keithmarshall) Summary: Add dirname and basename functions to libmingwex.a Initial Comment: This patch provides implementations of the dirname and basename functions, suitable for inclusion in libmingwex.a. Conforming generally to SUSv3, these implementations have been extended to accommodate peculiarities of the Win32 path naming conventions, viz. handling of drive prefixes, and the use of slash and backslash as alternative directory separator characters. Included in the attached patch tarball:-- - Changes.txt: a ChangeLog entry. - libgen.patch: the patch file; it has been generated against the runtime module of MinGW CVS, as of 2005-06-23. - dirname.cat.bz2: a preformatted manpage, specific to this implementation of the dirname and basename functions; it may be viewed by "bzip2 -c -d dirname.cat.bz2 | less -is". - testcase.c: a test program for evaluating the behaviour of the dirname and basename functions. ---------------------------------------------------------------------- Comment By: Howard Chu (highlandsun) Date: 2006-12-31 12:32 Message: Logged In: YES user_id=330860 Originator: NO I tend to expect to find everything associated with a package all in one place, i.e., manpage source in the same area as the code. If anyone is interested, I have a very simple man2html program that I use for rendering manpages. It works either as a CGI or as a regular commandline app. You can see a sample at http://76.168.84.21/~hyc/man/. That's a symbolic link into my source tree's manpages; the output is generated on the fly. ---------------------------------------------------------------------- Comment By: Keith Marshall (keithmarshall) Date: 2006-12-31 11:10 Message: Logged In: YES user_id=823908 Originator: YES I finally found a round tuit for this; libgen.h, basename.c and dirname.c are now in CVS. I haven't committed the manpage source yet; I'd like to review it beforehand. When ready, I'll add a `man' directory to the CVSROOT/mingw tree. Any thoughts on how manpages should be delivered? A separate `mandist' target, building a separate manpage package perhaps? I'd also like to commit the `testcase.c' somewhere in the same source tree; perhaps in a new `testsuite' directory. We might then wish to consider relocating other existing test programs to there; I'm really not very keen on polluting the top level directory with testcase code. Finally, I've had some thoughts on the multibyte character locale issue; I'll post a proposed follow up patch to address this, in a day or two. Regards, Keith. ---------------------------------------------------------------------- Comment By: Keith Marshall (keithmarshall) Date: 2005-12-22 07:29 Message: Logged In: YES user_id=823908 Although they may need some adaptation, to suit multibyte character locales, I propose committing these to CVS in their present form, so we have a tested base point against which to raise future patches. (I will add a note in the manpage about the locale restriction). Any objections? Any thoughts on an approriate CVS location for manpage sources -- should we keep them with the code sources, or add a separate manpage module? Regards, Keith. ---------------------------------------------------------------------- Comment By: Keith Marshall (keithmarshall) Date: 2005-06-23 02:47 Message: Logged In: YES user_id=823908 Original mandoc (nroff) source for the included dirname.cat.bz2 is also available. It probably is not much use, until the man port is completed. However, it may be useful to consider adding a manpage module to the CVS, or maybe just man directories within existing modules, where such documents could be stored. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=302435&aid=1226144&group_id=2435 |