Commit graph

100 commits

Author SHA1 Message Date
Jonathan M Davis
11f2899ab5 Various adjustments to the documentation in std.datetime and std.file.
This should fix the current ddoc build errors or Windows.
2011-01-22 09:48:29 +00:00
Andrei Alexandrescu
a1f9e63730 Fixed documentation build 2011-01-22 03:49:13 +00:00
Andrei Alexandrescu
8989f76dce quick fixes for many osx unittest failures 2011-01-21 09:00:32 +00:00
Jonathan M Davis
d8488a9865 Phobos has now been changed to use std.datetime. Also, bug# 3848 has been fixed.
std.gregorian, std.date, and std.dateparse have all been marked as
scheduled for deprecation. Everywhere (except for std.file) which was
using std.date is now using std.datetime. std.file is now using
std.datetime but has a number of functions still using d_time but which
are marked as scheduled for deprecation. I tried to give as many as I
could pragmas indicating that they were scheduled for deprecation, but
at the moment, that requires that a function be a templated function, and
I couldn't templatize all of them. So, some functions in std.file are
only marked as scheduled for deprecation in their documentation and will
not give any warning on compilation.

I had to rename several functions in std.file in order to avoid making
any breaking changes. And since I was already having to mess with
function names, it seemed like a good time to change the names of a
number of the functions in std.file to use proper capitalization
(such as changing isdir to isDir) as has been discussed and overwhelmingly
supported in the newsgroup with regards to std.string. And since I was
making those changes, it seemed like a good time to fix bug# 3848
(functions in std.file don't take symbolic links into account) as well.
So, std.file should now deal with symlinks properly.

The issue which Andrei brought up with +VERSION causing the std.datetime
unit tests to fail on OSX has been fixed as well.
2011-01-19 11:10:18 +00:00
Don Clugston
a8a9e3b26e Fix Windows circular import. 2010-11-11 08:06:35 +00:00
Shin Fujishiro
0de1aa86b7 Fixed bug 3570: mkdirRecurse throws exception on trailing empty directory.
Just made it recognize trailing '/' by seeing if the basename of specified path is empty.
2010-10-15 17:52:54 +00:00
Andrei Alexandrescu
b315a8be5e Fix for bugzilla 2838 and others regarding isdir and isfile 2010-09-26 22:09:38 +00:00
Andrei Alexandrescu
b41834dde6 Documentation improvements for minding bugzilla 1482 2010-09-25 22:37:19 +00:00
Steven Schveighoffer
7e89201cda Rewrote Appender to be safer and to not corrupt memory.
Fixed all places that use appender to use the safer interface.
bugzilla 4681: Appender access violation
2010-08-26 11:49:50 +00:00
Andrei Alexandrescu
b7a510374f Fixes for Windows 2010-08-08 01:14:58 +00:00
Andrei Alexandrescu
2e9ba7279d Unified the deleteme filename used in unittesting 2010-07-28 08:05:26 +00:00
Andrei Alexandrescu
536cb93d9c Fixed issue in Appender 2010-07-06 05:34:59 +00:00
Andrei Alexandrescu
432e3fdfc8 Replaced std.contracts with std.exception throughout 2010-07-04 22:09:03 +00:00
Lars T. Kyllingstad
138c244d15 Improved file name/line number propagation in std.file (FileException and cenforce()) 2010-07-01 21:14:49 +00:00
Lars T. Kyllingstad
5d1a02bba5 3447 - std.file uses unconventional file permissions 2010-06-14 10:57:16 +00:00
Andrei Alexandrescu
0cdf093766 Replaced exception upon out-of-memory error with assert(0). 2010-06-08 17:22:10 +00:00
Shin Fujishiro
cf02c92096 Fixed bugzilla 4188: std.file.remove throws Exception on success.
cenforce() used getErrno(), not GetLastError(), for errors happened in Win32 API.
2010-05-26 14:21:56 +00:00
Masahiro Nakagawa
cab2b77249 opApply's delegate needs to be 'scope' for avoiding heap allocation 2010-05-18 10:58:01 +00:00
Shin Fujishiro
f6a43870c3 Reverted my changes in std.file; it was wrong to delete struct_stat64. 2010-05-17 10:37:02 +00:00
Shin Fujishiro
4e2d8f30fd Added FreeBSD code. 2010-05-17 03:02:16 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +00:00
Don Clugston
0ecae3a354 Change [length] to [$] throughout Phobos. 2009-11-03 07:55:49 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
c5c4a77178 Bug 3298 fix 2009-09-06 19:27:11 +00:00
Walter Bright
787836e7db fix for drive c: not existing 2009-09-02 06:09:51 +00:00
Andrei Alexandrescu
0c142994d9 See changelog - bunch of bug fixes and a couple additions for release 2.032 2009-08-31 19:46:33 +00:00
Andrei Alexandrescu
645fabb440 minor 2009-07-04 06:59:03 +00:00
Walter Bright
cf644a325a add shared 2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
cb817dd1c8 unlisted bug fix 2009-04-19 17:20:46 +00:00
Walter Bright
5232cd844a typo 2009-04-18 18:23:18 +00:00
Andrei Alexandrescu
dfef2a7214 Replaced next, retreat, head, and toe with (respectively) popFront, popBack, front, and back 2009-04-13 19:10:58 +00:00
Andrei Alexandrescu
c8982096a2 refactored 2009-04-11 20:38:13 +00:00
Andrei Alexandrescu
78c647c485 Implementation overhaul 2009-04-10 14:19:19 +00:00
Andrei Alexandrescu
96b35bcaa7 fixes for exists and setTimes 2009-04-06 20:42:54 +00:00
Andrei Alexandrescu
f8cfa562d2 Fixed stat64, fstat64 declarations. 2009-04-06 18:30:41 +00:00
Andrei Alexandrescu
74d233da48 * read, write, append, rename, remove, getSize, getTimes, getAttributes,
isfile, isdir, chdir, mkdir, mkdirRecurse, rmdir, listdir, copy, take
filename(s) by "in char[]"
* Added function readText that reads and validates a text file
* Added function slurp that reads a file into an array of tuples.
2009-04-06 17:15:07 +00:00
Andrei Alexandrescu
310ace17ad * read, write, append, rename, remove, getSize, getTimes, getAttributes,
isfile, isdir, chdir, mkdir, mkdirRecurse, rmdir, listdir, copy, take 
filename(s) by "in char[]"
* Added function readText that reads and validates a text file
* Added function slurp that reads a file into an array of tuples.
2009-04-06 06:05:16 +00:00
Sean Kelly
0b1bf3b1d5 2009-03-26 15:13:53 +00:00
Sean Kelly
e108928d21 * Modified all std modules to use core.sys.posix in place of std.c.linux.
* Transformed std.c.linux.* into wrappers around core.sys.posix modules where appropriate.
* Added std.c.osx as the OSX equivalent of std.c.linux.
* Added std.c.osx.socket for OSX-specific socket declarations not covered by the Posix spec.
* Altered all makefiles to zip, etc, the new std.c.osx package.
2009-03-26 03:02:32 +00:00
Sean Kelly
c4a3aab657 The std.c modules now simply wrap the corresponding core.stdc modules to expose standard C declarations. std.c.os remains unchanged thus far, but will likely be altered as well. This unfortunately eliminates the auto doc generation for the std.c modules, since the modules are now largely empty. If the user wants to know what they contain, how the functions work, etc, I suggest for now simply referring to a C library spec--the core.stdc modules conform almost exactly to the C99 library definition. 2009-03-20 18:52:45 +00:00
Walter Bright
f14ca1c010 fix bugzilla 2727 2009-03-10 18:13:37 +00:00
Walter Bright
18404fdeea add purity and nothrow 2009-02-24 11:02:48 +00:00
Walter Bright
295a1633b7 fails unit tests 2009-02-14 17:47:38 +00:00
Walter Bright
8c763e5848 more osx fixes 2009-02-13 03:41:56 +00:00
Walter Bright
6c748fdfe1 fix makefile bug 2009-02-12 10:33:16 +00:00
Walter Bright
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Andrei Alexandrescu
e8269abafc file functions now accept const(char)[] instead of string 2009-01-23 15:59:00 +00:00
Walter Bright
f5803c1505 update for new compiler 2008-11-23 05:35:41 +00:00
Walter Bright
ec90f4f10e fix sloppy import qualification 2008-11-15 22:29:42 +00:00
Sean Kelly
5eeb591a95 Modified Phobos to reference the new core package in druntime. 2008-10-17 01:01:18 +00:00