mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 23:20:29 +03:00
* 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.
This commit is contained in:
parent
b60c31f0f2
commit
1ae5300f52
27 changed files with 974 additions and 654 deletions
|
@ -195,6 +195,8 @@ struct tm
|
|||
|
||||
extern (C)
|
||||
{
|
||||
int utimes(const char *path, timeval* times);
|
||||
|
||||
int gettimeofday(timeval*, struct_timezone*);
|
||||
int settimeofday(in timeval*, in struct_timezone*);
|
||||
__time_t time(__time_t*);
|
||||
|
@ -418,7 +420,7 @@ extern (C)
|
|||
|
||||
void* dlopen(in char* file, int mode);
|
||||
int dlclose(void* handle);
|
||||
void* dlsym(void* handle, char* name);
|
||||
void* dlsym(void* handle, in char* name);
|
||||
char* dlerror();
|
||||
}
|
||||
|
||||
|
@ -487,7 +489,7 @@ extern (C)
|
|||
__time_t modtime;
|
||||
}
|
||||
|
||||
int utime(char* filename, utimbuf* buf);
|
||||
int utime(const char* filename, utimbuf* buf);
|
||||
}
|
||||
|
||||
extern (C)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue