Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Walter committed Jul 9, 2012
2 parents b75a7c9 + 7182ed4 commit c9be051
Show file tree
Hide file tree
Showing 40 changed files with 4,703 additions and 917 deletions.
23 changes: 18 additions & 5 deletions changelog.dd
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
$(VERSION 060, ddd mm, 2012, =================================================,

$(WHATSNEW
$(LI std.string: $(RED The current implementations of std.string.format and string.sformat are
scheduled to be replaced in November 2012 with improved implementations
which conform to writef. In some, rare cases, this will break code.
Please see the documentation for std.string.format and std.string.sformat for details.))
$(LI std.bitmanip: Added peek, read, write, and append for converting
ranges of bytes to and from integral types.)
$(LI Added std.file.tempDir which returns the path to a directory
where a program can put temporary files.)
$(LI std.process: Added escapeShellCommand, escapeShellFileName, and
escapeWindowsArgument. Documented browse function.)
$(LI std.string: Added xformat and xsformat, they are compatible with writef.)
$(LI Capitalized std.traits.pointerTarget to PointerTarget. Old one is
scheduled for deprecation.)
$(LI std.range: Added RefRange, which effectively makes it possible to
pass a range by reference.)
$(LI std.traits: Added KeyType, ValueType, isScalarType, isBasicType, and
SetFunctionAttributes templates.)
$(LI std.bitmanip: Added peek, read, write, and append for converting
ranges of bytes to and from integral types.)
$(LI std.utf: Added overload of codeLength which operates on a string.)
$(LI Capitalized std.traits.pointerTarget to PointerTarget. Old one is
scheduled for deprecation.)
$(LI The overloads of std.conv.to which were scheduled for deprecation
because formattedWrite replaced them have now been deprecated.
Please use std.format.formattedWrite instead.)
$(LI UtfException - which was scheduled for deprecation - has been deprecated.
Please use UTFException instead.)
$(LI The deprecated overloads of std.array.insert and std.array.replace
have been removed. Please use insertInPlace and replaceInPlace instead.)
$(LI The deprecated toISOExtendedString and fromISOExtendedString
Expand Down Expand Up @@ -54,6 +62,7 @@ $(VERSION 060, ddd mm, 2012, =================================================,
$(LI $(BUGZILLA 7919): Sample code works on GDC but fails with DMD)
$(LI $(BUGZILLA 7937): Range iota.Result should be const where possible)
$(LI $(BUGZILLA 7944): std.range.iota.popFront() cycles when the range is empty)
$(LI $(BUGZILLA 7948): std.range.zip broken with requireSameLength)
$(LI $(BUGZILLA 7962): std.regex: Captures.length() returns incorrect value)
$(LI $(BUGZILLA 7975): Incorrect quotes escaping in std.format)
$(LI $(BUGZILLA 7982): unsigned reverse iota broken)
Expand All @@ -66,13 +75,17 @@ $(VERSION 060, ddd mm, 2012, =================================================,
$(LI $(BUGZILLA 8055): [Regression 2.059] std.algorithm.move corrupts moved object field)
$(LI $(BUGZILLA 8057): std.algorithm.move cannot use for nested struct)
$(LI $(BUGZILLA 8080): 'alias this' causes toString to be shadowed by aliased object)
$(LI $(BUGZILLA 8158): std.algorithm.min fails to compile with user-defined types)
$(LI $(BUGZILLA 8187): replaceFirst doesn't work for string[] haystack)
$(LI $(BUGZILLA 8112): std.algorithm.fill must accept InputRange)
$(LI $(BUGZILLA 8171): Broken std.algorithm.move for nested struct has no member)
$(LI $(BUGZILLA 8195): Segfault when comparing a VariantN to a non-variant type which it holds)
$(LI $(BUGZILLA 8203): Use of std.regex.match() generates "not enough preallocated memory" error)
$(LI $(BUGZILLA 8233): std.array.array fails to compile with ranges of immutable elements which have a length property)
$(LI $(BUGZILLA 8240): std.algorithm.joiner and empty inputRangeObject)
$(LI $(BUGZILLA 8264): [std.conv.to] constructing conversion doesn't work with alias this)
$(LI $(BUGZILLA 8310): writeln of Range of fixed size array)
$(LI $(BUGZILLA 8323): std.string.chompPrefix does not handle differing string types properly)
)
)

Expand Down
2 changes: 0 additions & 2 deletions crc32.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// CRC-32 calculation
module crc32;

pragma(msg, "The 'crc32' module has been scheduled for deprecation. Please use 'std.hash.crc32' instead.");

private immutable uint[256] crc32_table =
[
0x00000000,0x77073096,0xee0e612c,0x990951ba,0x076dc419,0x706af48f,0xe963a535,
Expand Down
12 changes: 5 additions & 7 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ DOCSRC = ../d-programming-language.org
WEBSITE_DIR = ../web
DOC_OUTPUT_DIR = $(WEBSITE_DIR)/phobos-prerelease
BIGDOC_OUTPUT_DIR = /tmp
SRC_DOCUMENTABLES = index.d $(addsuffix .d,$(STD_MODULES) $(STD_NET_MODULES) $(STD_HASH_MODULES) $(EXTRA_DOCUMENTABLES))
SRC_DOCUMENTABLES = index.d $(addsuffix .d,$(STD_MODULES) $(STD_NET_MODULES) $(EXTRA_DOCUMENTABLES))
STDDOC = $(DOCSRC)/std.ddoc
BIGSTDDOC = $(DOCSRC)/std_consolidated.ddoc
DDOCFLAGS=-m$(MODEL) -d -c -o- -version=StdDdoc -I$(DRUNTIME_PATH)/import $(DMDEXTRAFLAGS)
Expand Down Expand Up @@ -112,7 +112,7 @@ DFLAGS := -I$(DRUNTIME_PATH)/import $(DMDEXTRAFLAGS) -w -d -property -m$(MODEL)
ifeq ($(BUILD),debug)
DFLAGS += -g -debug
else
DFLAGS += -O -release -nofloat
DFLAGS += -O -release
endif

# Set DOTOBJ and DOTEXE
Expand Down Expand Up @@ -158,12 +158,10 @@ STD_MODULES = $(addprefix std/, algorithm array ascii base64 bigint \
metastrings mmfile numeric outbuffer parallelism path perf \
process random range regex regexp signals socket socketstream \
stdint stdio stdiobase stream string syserror system traits \
typecons typetuple uni uri utf variant xml zip zlib)
typecons typetuple uni uri utf uuid variant xml zip zlib)

STD_NET_MODULES = $(addprefix std/net/, isemail curl)

STD_HASH_MODULES = $(addprefix std/hash/, crc32)

# OS-specific D modules
EXTRA_MODULES_LINUX := $(addprefix std/c/linux/, linux socket)
EXTRA_MODULES_OSX := $(addprefix std/c/osx/, socket)
Expand All @@ -186,7 +184,7 @@ EXTRA_MODULES += $(EXTRA_DOCUMENTABLES) $(addprefix \
processinit uni uni_tab)

# Aggregate all D modules relevant to this build
D_MODULES = $(STD_MODULES) $(EXTRA_MODULES) $(STD_NET_MODULES) $(STD_HASH_MODULES)
D_MODULES = crc32 $(STD_MODULES) $(EXTRA_MODULES) $(STD_NET_MODULES)
# Add the .d suffix to the module names
D_FILES = $(addsuffix .d,$(D_MODULES))
# Aggregate all D modules over all OSs (this is for the zip file)
Expand Down Expand Up @@ -277,7 +275,7 @@ clean :
rm -rf $(ROOT_OF_THEM_ALL) $(ZIPFILE) $(DOC_OUTPUT_DIR)

zip :
zip $(ZIPFILE) $(MAKEFILE) $(ALL_D_FILES) $(ALL_C_FILES)
zip $(ZIPFILE) $(MAKEFILE) $(ALL_D_FILES) $(ALL_C_FILES) win32.mak

install : release
sudo cp $(LIB) /usr/lib/
Expand Down
Loading

0 comments on commit c9be051

Please sign in to comment.