Commit graph

44 commits

Author SHA1 Message Date
dkorpel
cd7389266e Add explicit return to inout functions 2021-11-16 23:22:33 +00:00
dkorpel
5242beb167 add return scope to realloc 2021-06-08 09:32:30 +00:00
Geod24
62c72ca6ff Follow up review on PR 7441
Steven identified a couple mistakes in the massive round of linkification.
Fixing them here.
2020-04-15 02:15:04 +09:00
Geod24
04f3979317 Replace 'Issue XXX' with Bugzilla links
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Alexandru Militaru
bb62aaca3d Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest 2020-01-19 14:05:17 +02:00
Nathan Sashihara
02659f65ba Fix Issue 19983 - Add fast path using slice assignment to std.internal.cstring.tempCString
This is applicable for narrow strings when the output type matches the
string's encoding type.
2019-06-23 22:41:58 -04:00
Nathan Sashihara
6ffd4e7f28 Replace imports of core.sys.windows.windows to speed up compilation 2018-12-17 21:03:31 -05:00
Walter Bright
f30f6b3ce1 inure against windows.d changes by casting to LPCWSTR 2018-12-04 22:56:29 -08:00
Nathan Sashihara
dcca23edca Fix Issue 19164 - malloc may be considered pure when failure results in program exit (no need to reset errno) 2018-11-17 17:00:16 -05:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Walter Bright
45dbd56ccb cstring: add scope 2018-06-09 01:13:48 -07:00
Steven Schveighoffer
d4a35f09da More removal of version(unittest) 2018-04-13 12:20:02 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Martin
4b56139f70 Slightly simplify std.internal.cstring realloc logic 2018-01-11 20:39:56 +01:00
Sebastian Wilzbach
ee08d522cd Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-12-29 18:02:00 +01:00
Sebastian Wilzbach
1d8e1397e3 Use StdUnittest for #5932 2017-12-21 09:36:18 +01:00
Steven Schveighoffer
4873e2f6b3 Fix issue 18084 - tempCString type should not change layout when used in
unittests.
2017-12-19 11:55:08 -05:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Martin Nowak
df04af7b78 factor out code that does not depend on input range
- avoids code duplication and makes better use of the
  template cache for the limited number of char types
2017-10-29 00:54:27 +02:00
Martin Nowak
9b0c3ea6d9 pure tempCString 2017-10-26 22:51:11 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Walter Bright
60d6169d70 csting: add opIndex to result 2016-09-14 12:49:07 -07:00
Walter Bright
9c5401ce92 fix tempCString() to follow strict scope rules 2016-08-24 01:34:57 -07:00
Walter Bright
821283c592 cstring.d: fix unsafe use of .ptr 2016-07-25 12:57:46 -07:00
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Sebastian Wilzbach
d81030ab8a convert docstring examples to unittests 2016-03-03 15:24:26 +02:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Martin Nowak
12119cf360 fix tempCString to support null cstring results again 2015-09-07 16:47:35 +02:00
Martin Nowak
18c5b270e0 Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
	std/internal/cstring.d
	win64.mak
2015-09-07 00:44:29 +02:00
k-hara
156bf68ef7 fix Issue 14980 - getAddressInfo(null) broken 2015-08-31 21:57:01 +09:00
Walter Bright
4f338368ea std.internal.cstring - @nogc must be inferred 2015-06-18 21:43:57 -07:00
Walter Bright
681964cfbf get tempCString to infer @trusted 2015-06-17 10:16:33 -07:00
Walter Bright
ed1a063e68 Range-ify std.internal.cstring 2nd try 2015-06-16 18:02:00 -07:00
Hara Kenji
46794c7695 Revert "Range-ify std.internal.cstring" 2015-06-13 16:52:55 +09:00
Walter Bright
4d9a304d8c Range-ify std.internal.cstring 2015-06-12 00:39:34 -07:00
Ilya Yaroshenko
bd8f9fb98a std.internal.cstring: clean imports 2014-11-13 02:58:01 +03:00
Denis Shelomovskij
46d0e0108b Fix Issue 13367 - Buffer overflow when setting PATH
Fixup for pull #2332.
2014-08-25 11:39:41 +04:00
Denis Shelomovskij
065ce05591 Add std.internal.cstring module. 2014-08-23 16:23:36 +04:00