Merge pull request #561 from wilzbach/stdx-allocator

Switch to use the frozen stdx-allocator package
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2018-02-11 20:43:16 +01:00 committed by GitHub
commit 3f3028d7f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 34 additions and 21 deletions

3
.gitmodules vendored
View File

@ -14,3 +14,6 @@
[submodule "libddoc"]
path = libddoc
url = https://github.com/economicmodeling/libddoc
[submodule "stdx-allocator"]
path = stdx-allocator
url = https://github.com/dlang-community/stdx-allocator

View File

@ -14,6 +14,8 @@ set INIFILED=
set DSYMBOL=
set CONTAINERS=
set LIBDDOC=
set STDXALLOCATOR=
set STDXALLOCATORBLOCKS=
for %%x in (src\*.d) do set CORE=!CORE! %%x
for %%x in (src\analysis\*.d) do set ANALYSIS=!ANALYSIS! %%x
@ -26,18 +28,20 @@ for %%x in (dsymbol\src\dsymbol\builtin\*.d) do set DSYMBOL=!DSYMBOL! %%x
for %%x in (dsymbol\src\dsymbol\conversion\*.d) do set DSYMBOL=!DSYMBOL! %%x
for %%x in (containers\src\containers\*.d) do set CONTAINERS=!CONTAINERS! %%x
for %%x in (containers\src\containers\internal\*.d) do set CONTAINERS=!CONTAINERS! %%x
for %%x in (stdx-allocator\source\stdx\allocator\*.d) do set STDXALLOCATOR=!STDXALLOCATOR! %%x
for %%x in (stdx-allocator\source\stdx\allocator\building_blocks\*.d) do set STDXALLOCATORBLOCKS=!STDXALLOCATORBLOCKS! %%x
if "%1" == "test" goto test_cmd
@echo on
%DC% %CORE% %STD% %LIBDPARSE% %LIBDDOC% %ANALYSIS% %INIFILED% %DSYMBOL% %CONTAINERS% %DFLAGS% -I"libdparse\src" -I"dsymbol\src" -I"containers\src" -I"libddoc\src" -ofbin\dscanner.exe
%DC% %CORE% %STD% %LIBDPARSE% %LIBDDOC% %ANALYSIS% %INIFILED% %DSYMBOL% %CONTAINERS% %STDXALLOCATOR% %STDXALLOCATORBLOCKS% %DFLAGS% -I"libdparse\src" -I"dsymbol\src" -I"containers\src" -I"libddoc\src" -I"stdx-allocator\source" -ofbin\dscanner.exe
goto eof
:test_cmd
@echo on
set TESTNAME="bin\dscanner-unittest"
%DC% %STD% %LIBDPARSE% %LIBDDOC% %INIFILED% %DSYMBOL% %CONTAINERS% -I"libdparse\src" -I"dsymbol\src" -I"containers\src" -I"libddoc\src" -lib %TESTFLAGS% -of%TESTNAME%.lib
if exist %TESTNAME%.lib %DC% %CORE% %ANALYSIS% %TESTNAME%.lib -I"src" -I"inifiled\source" -I"libdparse\src" -I"dsymbol\src" -I"containers\src" -I"libddoc\src" -unittest %TESTFLAGS% -of%TESTNAME%.exe
%DC% %STD% %LIBDPARSE% %LIBDDOC% %INIFILED% %DSYMBOL% %CONTAINERS% %STDXALLOCATOR% %STDXALLOCATORBLOCKS% -I"libdparse\src" -I"dsymbol\src" -I"containers\src" -I"libddoc\src" -I"stdx-allocator\source" -lib %TESTFLAGS% -of%TESTNAME%.lib
if exist %TESTNAME%.lib %DC% %CORE% %ANALYSIS% %TESTNAME%.lib -I"src" -I"inifiled\source" -I"libdparse\src" -I"dsymbol\src" -I"containers\src" -I"libddoc\src" -I"stdx-allocator\source" -unittest %TESTFLAGS% -of%TESTNAME%.exe
if exist %TESTNAME%.exe %TESTNAME%.exe
if exist %TESTNAME%.obj del %TESTNAME%.obj

@ -1 +1 @@
Subproject commit f58dd7bf160f76762a79029a6bda7637d5a788e7
Subproject commit 6c5504cc80b75192b24cebe93209521c03f806d8

@ -1 +1 @@
Subproject commit 89f6ee88bf8d0fc0df232cba56bf797f5b3b0487
Subproject commit 5b90412457ac5f1d67c04e4da01587edfd529ad5

View File

@ -12,11 +12,12 @@
"StdLoggerDisableWarning"
],
"dependencies" : {
"libdparse" : "~>0.8.0-alpha.2",
"dsymbol" : "~>0.3.0-alpha.1",
"libdparse" : "~>0.8.0-alpha.4",
"dsymbol" : "~>0.3.0-alpha.3",
"inifiled" : ">=1.0.2",
"emsi_containers" : "~>0.6.0",
"libddoc" : "~>0.3.0-beta.1"
"libddoc" : "~>0.3.0-beta.1",
"stdx-allocator" : "~>2.77.0"
},
"targetPath" : "bin"
}

@ -1 +1 @@
Subproject commit 73f2761d859b0364b0b5f77e6316b87ef7052d4f
Subproject commit 476c0964ee173d7574155aa2a9caa2bc019a3754

@ -1 +1 @@
Subproject commit 687c0ca751747ebe498c183da1a3ee3119d57932
Subproject commit f3323ce90a41c24cf874fd257ccbf6cc0b1be285

View File

@ -11,14 +11,18 @@ LIB_SRC := \
$(shell find inifiled/source/ -name "*.d")\
$(shell find libdparse/src/std/experimental/ -name "*.d")\
$(shell find libdparse/src/dparse/ -name "*.d")\
$(shell find libddoc/src -name "*.d")
$(shell find libddoc/src -name "*.d") \
$(shell find stdx-allocator/source -name "*.d")
PROJECT_SRC := $(shell find src/ -name "*.d")
SRC := $(LIB_SRC) $(PROJECT_SRC)
INCLUDE_PATHS = \
-Iinifiled/source -Isrc\
-Ilibdparse/src\
-Idsymbol/src -Icontainers/src\
-Ilibddoc/src
-Isrc \
-Iinifiled/source \
-Ilibdparse/src \
-Idsymbol/src \
-Icontainers/src \
-Ilibddoc/src \
-Istdx-allocator/source
VERSIONS =
DEBUG_VERSIONS = -version=dparse_verbose
DMD_FLAGS = -w -inline -release -O -J. -od${OBJ_DIR} -version=StdLoggerDisableWarning

View File

@ -16,8 +16,8 @@ import dsymbol.modulecache : ModuleCache;
import analysis.config;
import analysis.run;
import analysis.base;
import std.experimental.allocator.mallocator;
import std.experimental.allocator;
import stdx.allocator.mallocator;
import stdx.allocator;
S between(S)(S value, S before, S after) if (isSomeString!S)
{

View File

@ -18,10 +18,10 @@ import dparse.ast;
import dparse.rollback_allocator;
import std.typecons : scoped;
import std.experimental.allocator : CAllocatorImpl;
import std.experimental.allocator.mallocator : Mallocator;
import std.experimental.allocator.building_blocks.region : Region;
import std.experimental.allocator.building_blocks.allocator_list : AllocatorList;
import stdx.allocator : CAllocatorImpl;
import stdx.allocator.mallocator : Mallocator;
import stdx.allocator.building_blocks.region : Region;
import stdx.allocator.building_blocks.allocator_list : AllocatorList;
import analysis.config;
import analysis.base;

1
stdx-allocator Submodule

@ -0,0 +1 @@
Subproject commit 7487970b58f4a2c0d495679329a8a2857111f3fd