Skip to content

Commit 5712a07

Browse files
committed
Add files missing from last commit.
1 parent 9e1812d commit 5712a07

File tree

7 files changed

+213
-0
lines changed

7 files changed

+213
-0
lines changed

TracerHeap/DefaultTracerHeapPrivate.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#pragma once
2+
3+
#include "Memory.h"
4+
5+
MALLOC DefaultHeapMalloc;
6+
CALLOC DefaultHeapCalloc;
7+
REALLOC DefaultHeapRealloc;
8+
FREE DefaultHeapFree;
9+
INITIALIZE_ALLOCATOR DefaultHeapInitializeAllocator;
10+
DESTROY_ALLOCATOR DefaultHeapDestroyAllocator;
11+
12+
// vim:set ts=8 sw=4 sts=4 tw=80 expandtab :

TracerHeap/TracerHeap.vcxproj

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
<ProjectConfiguration Include="PGInstrument|Win32">
21+
<Configuration>PGInstrument</Configuration>
22+
<Platform>Win32</Platform>
23+
</ProjectConfiguration>
24+
<ProjectConfiguration Include="PGInstrument|x64">
25+
<Configuration>PGInstrument</Configuration>
26+
<Platform>x64</Platform>
27+
</ProjectConfiguration>
28+
<ProjectConfiguration Include="PGUpdate|Win32">
29+
<Configuration>PGUpdate</Configuration>
30+
<Platform>Win32</Platform>
31+
</ProjectConfiguration>
32+
<ProjectConfiguration Include="PGUpdate|x64">
33+
<Configuration>PGUpdate</Configuration>
34+
<Platform>x64</Platform>
35+
</ProjectConfiguration>
36+
</ItemGroup>
37+
<PropertyGroup Label="Globals">
38+
<ProjectGuid>{40A4B73F-F9AA-407A-91EB-5D2D092DCC30}</ProjectGuid>
39+
<RootNamespace>TracerHeap</RootNamespace>
40+
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
41+
</PropertyGroup>
42+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
43+
<PropertyGroup Label="Configuration">
44+
<ConfigurationType>StaticLibrary</ConfigurationType>
45+
</PropertyGroup>
46+
<Import Project="..\Tracer.props" />
47+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
48+
<Import Project="..\Wdk.props" />
49+
<ImportGroup Label="ExtensionSettings">
50+
</ImportGroup>
51+
<ImportGroup Label="Shared">
52+
</ImportGroup>
53+
<ImportGroup Label="PropertySheets" Condition="'$(Platform)'=='Win32'">
54+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
55+
</ImportGroup>
56+
<ImportGroup Label="PropertySheets" Condition="'$(Platform)'=='x64'">
57+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
58+
</ImportGroup>
59+
<PropertyGroup Label="UserMacros" />
60+
<ItemGroup>
61+
<ClInclude Include="stdafx.h" />
62+
<ClInclude Include="targetver.h" />
63+
<ClInclude Include="DefaultTracerHeap.h" />
64+
</ItemGroup>
65+
<ItemGroup>
66+
<ClCompile Include="stdafx.c">
67+
<PrecompiledHeader>Create</PrecompiledHeader>
68+
</ClCompile>
69+
<ClCompile Include="DefaultTracerHeap.c" />
70+
</ItemGroup>
71+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
72+
</Project>

TracerHeap/TracerHeap.vcxproj.filters

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{88605708-5C65-47FE-A251-218DF4B73730}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{D791FEC6-1A64-4755-B983-063C89A8D1B2}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
13+
<UniqueIdentifier>{C1A17A44-3223-430C-B01E-B4378FAC045B}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClInclude Include="stdafx.h">
19+
<Filter>Header Files</Filter>
20+
</ClInclude>
21+
<ClInclude Include="targetver.h">
22+
<Filter>Header Files</Filter>
23+
</ClInclude>
24+
<ClInclude Include="DefaultTracerHeap.h">
25+
<Filter>Header Files</Filter>
26+
</ClInclude>
27+
</ItemGroup>
28+
<ItemGroup>
29+
<ClCompile Include="stdafx.c">
30+
<Filter>Source Files</Filter>
31+
</ClCompile>
32+
<ClCompile Include="DefaultTracerHeap.c">
33+
<Filter>Source Files</Filter>
34+
</ClCompile>
35+
</ItemGroup>
36+
</Project>

TracerHeap/stdafx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include "stdafx.h"
2+
3+
// vim:set ts=8 sw=4 sts=4 tw=80 expandtab :

TracerHeap/stdafx.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#pragma once
2+
3+
#include "targetver.h"
4+
5+
#include "../Rtl/Rtl.h"
6+
#include "DefaultTracerHeap.h"
7+

TracerHeap/targetver.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <SDKDDKVer.h>

mknewlib.sh

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
_src=TracerConfig
6+
_src_uuid=76F2056F-6A65-4BA3-A49F-3CBF5D1E2CDF
7+
_uuid_regex="[0-9A-F]{8,8}-[0-9A-F]{4,4}-[0-9A-F]{4,4}-[0-9A-F]{4,4}-[0-9A-F]{12,12}"
8+
9+
if [ -z "$1" ]; then
10+
echo "error: missing project name"
11+
echo " usage: ./mknewproject.sh <Project>"
12+
echo " e.g.: ./mknewproject.sh PythonTracer"
13+
exit 1
14+
fi
15+
16+
if [ ! -d "$1" ]; then
17+
mkdir $1
18+
fi
19+
20+
_dst=$1
21+
22+
genuuid() {
23+
uuidgen | tr '[:lower:]' '[:upper:]'
24+
}
25+
26+
_new_proj_uuid=$(genuuid)
27+
28+
_convert_vcxproj() {
29+
sed -e "s/$_src_uuid/$_new_proj_uuid/" \
30+
-e "s/>$_src</>$_dst</g" \
31+
-e "s/Tracing.c/${_dst}.c/g" \
32+
-e "s/Tracing.h/${_dst}.h/g" \
33+
-e s/\"$_src\"/\"$_dst\"/g
34+
}
35+
36+
_convert_vcxproj_filter() {
37+
sed -e "s/B1FAB504-C337-4440-B0C8-01B4B736D7CC/$(genuuid)/" \
38+
-e "s/A3DD3FD5-C7B0-44EA-BC78-54E1237732CF/$(genuuid)/" \
39+
-e "s/655DD96C-4829-417C-BEA6-44E9F631B067/$(genuuid)/" \
40+
-e "s/Tracing.c/${_dst}.c/g" \
41+
-e "s/Tracing.h/${_dst}.h/g" \
42+
-e "s/${_src}.h/${_dst}.h/g" \
43+
-e "s/${_src}.c/${_dst}.c/g"
44+
}
45+
46+
if [ ! -f $1/$1.vcxproj ]; then
47+
cat Tracer/Tracer.vcxproj | _convert_vcxproj > $1/$1.vcxproj
48+
else
49+
_new_proj_uuid=$(cat $1/$1.vcxproj | egrep "$_uuid_regex" | cut -f 2 -d '{' | cut -f 1 -d '}')
50+
fi
51+
52+
if [ ! -f $1/$1.vcxproj.filters ]; then
53+
cat ${_src}/${_src}.vcxproj.filters | _convert_vcxproj_filter > $1/$1.vcxproj.filters
54+
fi
55+
56+
for f in stdafx.h stdafx.c targetver.h; do
57+
if [ ! -f $1/$f ]; then
58+
cp ${_src}/$f $1
59+
fi
60+
done
61+
62+
if [ ! -f $1/${1}.c ]; then
63+
touch $1/${1}.c
64+
fi
65+
66+
if [ ! -f $1/${1}.h ]; then
67+
touch $1/${1}.h
68+
fi
69+
70+
#echo $_project_def | _convert_input
71+
#echo $_project_config | _convert_input
72+
cat Tracer.sln | \
73+
egrep "$_src_uuid" | \
74+
grep '^Project' | \
75+
sed -e "s/$_src_uuid/$_new_proj_uuid/g" \
76+
-e "s/Tracer/$1/g"
77+
echo EndProject
78+
79+
cat Tracer.sln | \
80+
egrep "$_src_uuid" | \
81+
sed -e "s/$_src_uuid/$_new_proj_uuid/g"
82+

0 commit comments

Comments
 (0)