Overview
| Artifact ID: | b46ea21007f1886a761905a40365f85f16ff7a14 |
|---|---|
| Ticket: | 408840ffffffffffffffffffffffffffffffffff
Patch for TIP 17 |
| User & Date: | vincentdarley on 2001-05-01 17:20:53 |
Changes
- icomment:
File Added - 5889: tip17d.patch.gz Logged In: YES user_id=32170 On the remaing issues: 1) [tcl::CopyDirectory] is called from CopyRenameOneFile() in generic/tclFCmd.c, but [tcl::CopyDirectory] will not be available in a safe interp. Will CopyRenameOneFile() ever be called on a safe interp? No, 'file copy' and friends are hidden in safe interpreters. 2) All the issues of naming conventions and public stubs vs. private stubs need to be settled. My preference: make the Tcl_ things public. Also I'd like the typedefs, etc. around the FileSystem types to follow conventions more like those of the Tcl_ChannelType. I've made changes along the lines you suggest: Tcl_ things are public, FileSystem types and structure elements are named in a more standard way (like the Channel stuff). The Tcl_Filesystem structure is now more clearly explained in tcl.h, including small notes on each element to clarify whether it is absolutely required or not. 3) Several private stub entries are removed by this patch. That's OK, but do we know of any affected extensions? None that I know of. I did look at some obvious contenders. I would suggest if any problems arise in the Tcl 8.4 alpha/beta releases we can add in some backwards compatibility support there. 4) As mentioned before, I think many of the functions in generic/tclIOUtil.c could be static now. I've made a lot of them static (all that I think are possible, actually). 5) In several places, lines exceed 80 columns. I'm not sure if that's an official part of our style guide, but I would like them 80 columns or less. Good point. I've fixed these now, I think. The patch I'm uploading (tip17d) includes all the above. The changes are mostly to tcl.h, tclInt.h and tclIOUtils.c. It is a unified diff now (but is still likely to be in Windows-eol format). - login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"