Commit graph

58 commits

Author SHA1 Message Date
k-hara
e7b3d834d7 detab and remove trailing whitespaces 2015-02-10 00:56:40 +09:00
Daniel Murphy
6af3fb5525 Remove implicit conversions from array to bool 2015-01-27 21:55:00 +11:00
Martin Nowak
c855945f46 Merge pull request #2614 from Geod24/fix-license-doc
[DDOC] Usage of WEB macro for License everywhere
2014-10-17 00:16:49 +02:00
Daniel Murphy
af0629ec7c Merge pull request #2337 from joakim-noah/deprecate_std_c
Deprecate std.c.* and move all remaining declarations to core.stdc.*
2014-10-16 01:17:40 +11:00
Geod24
0fb95b8c27 Usage of WEB macro for License everywhere 2014-10-15 11:30:42 +02:00
Joakim
093d636de4 Deprecate std.c.* and move all remaining declarations to core.stdc.* 2014-10-14 09:26:21 -05:00
Vladimir Panteleev
b4afbeaf2d std.mmfile: Fix Windows anonymous mapping creation to conform to MSDN 2014-10-04 14:58:06 +00:00
Vladimir Panteleev
4a97eab1a0 std.mmfile: Improve error handling
Use wenforce instead of (inappropriately) errno.
Switch from if blocks to scope blocks.
2014-10-04 14:50:09 +00:00
k-hara
afbe12f1b1 fix property enforcement 2014-09-06 08:57:15 +09:00
Denis Shelomovskij
ff144b0ae0 Replace most toStringz/toUTF16z/toUTFz usages with tempCString* ones.
Only non-trivial cases left when a refactoring is required to use a temporary buffer.
Also add `nothrow`/`@nogc` attributes.
2014-08-23 17:23:13 +04:00
Joakim
60cfc11a11 Make all tests that create a temporary file in the local directory get the path from one central function, so they can be made to use an absolute path 2014-08-04 23:33:25 -05:00
Adam Saka
afb10ade85 Changed tabs to spaces 2014-07-07 09:57:09 +10:00
Adam Saka
e05a7a1230 Issue 8370 - Fix deprecated message during Linux Phobos build.
This change fixes Linux builds only. Other Posix based OS's will still use the deprecated alias from the Posix module. (This is the same behavior as the garbage collector module.)
2014-07-02 22:51:50 +10:00
Denis Shelomovskij
a81c4127f2 Use Unicode version of CreateFileMapping in std.mmfile.MmFile constructor.
It's a bad style to use ANSI WinAPI function and may cause problems in future.
2014-06-12 17:42:09 +04:00
Ben Grabham
b462d98887 fix Issue 7822 - lseek cast(int)offset should be lseek cast(off_t)offset 2014-05-28 01:32:59 +01:00
Daniel Murphy
13f343334c Remove cases where an array is used in a boolean context 2013-11-27 18:23:07 +11:00
Daniel Murphy
1754eed7f6 Fix cases where goto skips initialization of variables 2013-11-20 00:20:33 +11:00
Johannes Pfau
f989b219cc Get rid of transitional lfs API
Those kind of functions should be placed in druntime,
but the *64 (v) functions as a public interface are actually
deprecated and shouldn't be used anymore.

Druntime takes care that the normal stat, fopen, calls support
large files, if __USE_FILE_OFFSET64 is defined (which is what
the new C API does as well)

Note: It's actually important to use the functions from
core.sys.posix.stdio as the functions in core.stdc.stdio
are not large file aware. This is probably a bug in druntime.
2012-09-30 10:47:40 +02:00
alexrp
adcac57526 Use errno instead of getErrno in Phobos. 2012-07-09 01:26:02 +02:00
Denis Shelomovskij
efc9da711c Remove Windows 3.x and Win9x enforcements from std.mmfile 2012-02-10 14:28:14 +04:00
Denis Shelomovskij
99ab2b6175 Remove __file.d and it's using
* remove `useWfuncs` using
* remove std.__file using
* remove __file.d
* remove variables which have become unnecessary
* remove std.windows.charset import and alias in file.d
2012-02-10 14:27:34 +04:00
Marco Leise
b0009aaa9f Set 'fd' field to 'fildes' from within the Linux constructor that takes a file #. 2012-02-02 08:53:39 +01:00
Walter Bright
f3aa58592f make invariants const-correct 2012-01-29 14:03:39 -08:00
Daniel Green
58f4356ca2 Change version( Win32 ) to version( Windows ) when Win64 would be supported as well. 2012-01-16 22:10:18 -05:00
David Nadlinger
927f879dba Linux build fix, was missing from pull 342. 2011-12-04 21:48:43 +01:00
dsimcha
2c354d14c0 Fix trivial oversight in the enum renaming in std.mmfile. 2011-08-13 23:30:44 -04:00
jmdavis
0105bc93a0 Fixed enum in std.mmfile to follow Phobos naming conventions. 2011-08-13 00:19:32 -07:00
Walter Bright
83f99df573 remove octal literals 2011-04-01 22:34:46 -07:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
Andrei Alexandrescu
7979116eb4 Replaced std.contracts with std.exception throughout 2010-07-04 22:12:18 +00:00
Masahiro Nakagawa
767b5366c5 bugzilla 4202 Changset 1517 doesn't compile. 2010-05-18 11:35:52 +00:00
Shin Fujishiro
a6738d625d Reverted my changes in std.mmfile; it was wrong to delete struct_stat64. 2010-05-17 10:42:38 +00:00
Shin Fujishiro
4e2d8f30fd Added FreeBSD code. 2010-05-17 03:02:16 +00:00
Masahiro Nakagawa
a288172908 Add @property to length method. 2010-05-04 21:54:00 +00:00
Sean Kelly
9be950356b Converted "static this" to "shared static this" where appropriate. 2010-03-09 03:54:06 +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
Sean Kelly
67cf1f1be7 * Changed a few version(linux) blocks to version(Posix).
* Changed some declarations from explicit to auto.
* Changed "mkdir --parents" in Makefile to "mkdir -p" since OSX doesn't support the long version.
* REMAINING ISSUE: The "ln -sf" for installing the libraries at the end will fail if the DMD installation point is not owned by the user performing the build.  A "sudo ln..." fixes this, but it still may not be ideal to have a system-level link to a user-level file.  This should probably simply be copied instead.  Also, this copy should perhaps be done manually or in an "install" step, since a user may want to build Phobos and test it out without affecting other users.
2009-04-09 18:32:01 +00:00
Andrei Alexandrescu
5492fcbd42 minor 2009-04-06 20:43:27 +00:00
Andrei Alexandrescu
fd3c6e3daf std.c -> core.stdc fixes 2009-04-06 18:31:09 +00:00
Andrei Alexandrescu
b186767ebd minor 2009-04-06 17:15:51 +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
7de36d8138 Posix targets should now build correctly against the core.stdc chages. 2009-03-25 14:53:41 +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
d57e203dc9 fold in some OSX changes 2009-02-10 02:21:15 +00:00
Andrei Alexandrescu
1ae5300f52 * std.algorithm: Changed the map() function so that it deduces the return type
* std.contracts: Added file and line information to enforce. Added errnoEnforce that reads and formats a message according to errno. Added corresponding ErrnoException class.

* std.encoding: For now commented out std.encoding.to. 

* std.file: Fixed bug 2065

* std.format: Fixed bug in raw write for arrays

* std.getopt: Added new option stopOnFirstNonOption. Also automatically expand dubious option groups with embedded in them (useful for shebang scripts)

* std.math: improved integral powers

* std.md5: Improved signature of sum so it takes multiple arrays. Added getDigestString.

* std.path: changed signatures of test functions from bool to int. Implemented rel2abs for Windows. Improved join so that it accepts multiple paths. Got rid of some gotos with the help of scope statements.

* std.process: added getenv and setenv. Improved system() so it returns the exit code correctly on Linux.

* std.random: added the dice function - a handy (possibly biased) dice.

* std.file: added support for opening large files (not yet tested)

* std.utf: added the codeLength function. Got rid of some gotos.
2008-05-06 05:08:52 +00:00
Walter Bright
7dcd24a675 applied bugzilla 1810 patch 2008-03-04 09:00:31 +00:00
Brad Roberts
8f79f3ec35 phobos 2.003 2007-09-10 07:28:23 +00:00
Brad Roberts
de971890b0 phobos 2.000 2007-09-10 06:45:08 +00:00