Closed
Bug 780501
Opened 12 years ago
Closed 12 years ago
[OS.File] Path types
Categories
(Toolkit Graveyard :: OS.File, enhancement)
Toolkit Graveyard
OS.File
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: Yoric, Assigned: Yoric)
References
Details
(Keywords: dev-doc-needed)
Attachments
(1 file, 2 obsolete files)
22.22 KB,
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
To simplify the work of serialization in bug 777711, we should define the a type |path|, defined as a C string under Unix and a wide string under Windows.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → dteller
Attachment #649124 -
Flags: review?(nfroyd)
Comment 2•12 years ago
|
||
These changes are purely so we can attach a special serializer to the type, correct? What's not to like about the current string serialization?
Assignee | ||
Comment 3•12 years ago
|
||
I want to use the serialization defined in OS.Shared and I prefer writing the following:
Type.path.toMsg(...)
to the following:
if (/*determine that we are under Windows*/) {
Type.wstring.toMsg(...)
} else {
Type.cstring.toMsg(...)
}
The rest of the patch is a cosmetic change, mostly for documentation purposes (although there could be applications if we ever want to care about file system name encodings).
Comment 4•12 years ago
|
||
Comment on attachment 649124 [details] [diff] [review]
Path types
Review of attachment 649124 [details] [diff] [review]:
-----------------------------------------------------------------
Ah, yes, of course. Can I blame Monday mornings for that one?
::: toolkit/components/osfile/osfile_win_back.jsm
@@ +206,5 @@
>
> WinFile.CopyFile =
> declareFFI("CopyFileW", ctypes.winapi_abi,
> /*return*/ Types.zero_or_nothing,
> + /*sourcePath*/ Types.path,
These sorts of things are nice cleanups.
Attachment #649124 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #649124 -
Attachment is obsolete: true
Attachment #652359 -
Flags: review+
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #652359 -
Attachment is obsolete: true
Attachment #652360 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•12 years ago
|
Keywords: dev-doc-needed
Comment 7•12 years ago
|
||
Green on Try.
https://tbpl.mozilla.org/?tree=Try&rev=2ec9ffb953d7
https://hg.mozilla.org/integration/mozilla-inbound/rev/277e7c231f1a
Should this have tests?
Flags: in-testsuite?
Keywords: checkin-needed
Assignee | ||
Comment 8•12 years ago
|
||
Not really.
Updated•12 years ago
|
Flags: in-testsuite? → in-testsuite-
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•2 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•