Overview
| Artifact ID: | 90fdf05f645873b49f650ce3059c97ca2ecf8478 |
|---|---|
| Ticket: | 408840ffffffffffffffffffffffffffffffffff
Patch for TIP 17 |
| User & Date: | das on 2001-06-23 07:27:46 |
Changes
- icomment:
File Added - 7697: tip17-mac.patch.gz Logged In: YES user_id=90580 attached tip17-mac.patch.gz with my changes for the mac, an incremental diff from a tree with tip17.patch already applied is also available in tip17-tip17mac.diff I had to make modifications in some platform independent code and some tests, so relevant maintainers should probably have another look at the code to see if they are happy with my changes. I would also be grateful for review of the new mac specific bits. Some notes on the changes: - numerous separator related issues had to be fixed. - error messages have changed due to the way filenames are built up now, namely by joining path components together starting with an empty string. On the mac joining with {} adds (correctly) a ':' at the start of the path, this results in e.g. 'open non_existent' to return 'couldn't open ":non_existent": no such file or directory'. A number of tests as well as tclTest.c had to be changed to account for this. - added unix style relative path compatibility mode to TclpMatchInDirectory, if a directory is not-found this checks for a relative path of the same name and uses that if it exists, this allows for e.g. 'glob -directory some_subdir *' to work instead of the correct 'glob -directory :some_subdir *' (or better 'glob -directory [ file join {} some_subdir ] * ' ) this change allows a large number of tests to newly pass and should be backwards compatible as it acts as a fallback only - TclpObjNormalizePath() mac implementation patterned along the lines of FSpLocationFromPath(). This is new, please review. - most time related changes have more to do with a bug in mac tcl than with tip17, I discovered that metrowerk's MSL library uses the unix time epoch internally and moved mac tcl to that epoch now (many clock.test newly pass with this), if this is felt to be too radical a change, the problem can be gotten around in other ways. - CodeWarrior needed prototypes for the new TclpObj* procs introduced in tcl*FCmd.c, I have added them to tclInt.h, maybe there is a better place (e.g. in tcl*FCmd.c)? Is there a reason they weren't added in a global header originally? - login: "das"
- mimetype: "text/plain"
- username: "das"