Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
9500dff0
Commit
9500dff0
authored
Mar 08, 2013
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to MSVC 11. Fix pool_allocator a bit.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20811
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
53fb4657
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
30 deletions
+5
-30
StandAlone.vcxproj
StandAlone.vcxproj
+2
-0
glslang.vcxproj
glslang.vcxproj
+2
-0
PoolAlloc.h
glslang/Include/PoolAlloc.h
+1
-30
No files found.
StandAlone.vcxproj
View file @
9500dff0
...
@@ -19,10 +19,12 @@
...
@@ -19,10 +19,12 @@
<ConfigurationType>
Application
</ConfigurationType>
<ConfigurationType>
Application
</ConfigurationType>
<UseOfMfc>
false
</UseOfMfc>
<UseOfMfc>
false
</UseOfMfc>
<CharacterSet>
MultiByte
</CharacterSet>
<CharacterSet>
MultiByte
</CharacterSet>
<PlatformToolset>
v110
</PlatformToolset>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<ConfigurationType>
Application
</ConfigurationType>
<CharacterSet>
MultiByte
</CharacterSet>
<CharacterSet>
MultiByte
</CharacterSet>
<PlatformToolset>
v110
</PlatformToolset>
</PropertyGroup>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<ImportGroup
Label=
"ExtensionSettings"
>
<ImportGroup
Label=
"ExtensionSettings"
>
...
...
glslang.vcxproj
View file @
9500dff0
...
@@ -19,10 +19,12 @@
...
@@ -19,10 +19,12 @@
<ConfigurationType>
StaticLibrary
</ConfigurationType>
<ConfigurationType>
StaticLibrary
</ConfigurationType>
<UseOfMfc>
false
</UseOfMfc>
<UseOfMfc>
false
</UseOfMfc>
<CharacterSet>
MultiByte
</CharacterSet>
<CharacterSet>
MultiByte
</CharacterSet>
<PlatformToolset>
v110
</PlatformToolset>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
StaticLibrary
</ConfigurationType>
<ConfigurationType>
StaticLibrary
</ConfigurationType>
<CharacterSet>
MultiByte
</CharacterSet>
<CharacterSet>
MultiByte
</CharacterSet>
<PlatformToolset>
v110
</PlatformToolset>
</PropertyGroup>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<ImportGroup
Label=
"ExtensionSettings"
>
<ImportGroup
Label=
"ExtensionSettings"
>
...
...
glslang/Include/PoolAlloc.h
View file @
9500dff0
...
@@ -283,37 +283,13 @@ public:
...
@@ -283,37 +283,13 @@ public:
pointer
address
(
reference
x
)
const
{
return
&
x
;
}
pointer
address
(
reference
x
)
const
{
return
&
x
;
}
const_pointer
address
(
const_reference
x
)
const
{
return
&
x
;
}
const_pointer
address
(
const_reference
x
)
const
{
return
&
x
;
}
#ifdef USING_SGI_STL
pool_allocator
()
{
}
#else
pool_allocator
()
:
allocator
(
GlobalPoolAllocator
)
{
}
pool_allocator
()
:
allocator
(
GlobalPoolAllocator
)
{
}
pool_allocator
(
TPoolAllocator
&
a
)
:
allocator
(
a
)
{
}
pool_allocator
(
TPoolAllocator
&
a
)
:
allocator
(
a
)
{
}
pool_allocator
(
const
pool_allocator
<
T
>&
p
)
:
allocator
(
p
.
allocator
)
{
}
pool_allocator
(
const
pool_allocator
<
T
>&
p
)
:
allocator
(
p
.
allocator
)
{
}
#endif
#if defined(_MSC_VER) && _MSC_VER >= 1300
template
<
class
Other
>
template
<
class
Other
>
#ifdef USING_SGI_STL
pool_allocator
(
const
pool_allocator
<
Other
>&
p
)
/*: allocator(p.getAllocator())*/
{
}
#else
pool_allocator
(
const
pool_allocator
<
Other
>&
p
)
:
allocator
(
p
.
getAllocator
())
{
}
pool_allocator
(
const
pool_allocator
<
Other
>&
p
)
:
allocator
(
p
.
getAllocator
())
{
}
#endif
#endif
#ifndef _WIN32
template
<
class
Other
>
pool_allocator
(
const
pool_allocator
<
Other
>&
p
)
:
allocator
(
p
.
getAllocator
())
{
}
#endif
#ifdef USING_SGI_STL
static
pointer
allocate
(
size_type
n
)
{
return
reinterpret_cast
<
pointer
>
(
getAllocator
().
allocate
(
n
));
}
pointer
allocate
(
size_type
n
,
const
void
*
)
{
return
reinterpret_cast
<
pointer
>
(
getAllocator
().
allocate
(
n
));
}
static
void
deallocate
(
void
*
,
size_type
)
{
}
static
void
deallocate
(
pointer
,
size_type
)
{
}
#else
pointer
allocate
(
size_type
n
)
{
pointer
allocate
(
size_type
n
)
{
return
reinterpret_cast
<
pointer
>
(
getAllocator
().
allocate
(
n
*
sizeof
(
T
)));
}
return
reinterpret_cast
<
pointer
>
(
getAllocator
().
allocate
(
n
*
sizeof
(
T
)));
}
pointer
allocate
(
size_type
n
,
const
void
*
)
{
pointer
allocate
(
size_type
n
,
const
void
*
)
{
...
@@ -321,7 +297,6 @@ public:
...
@@ -321,7 +297,6 @@ public:
void
deallocate
(
void
*
,
size_type
)
{
}
void
deallocate
(
void
*
,
size_type
)
{
}
void
deallocate
(
pointer
,
size_type
)
{
}
void
deallocate
(
pointer
,
size_type
)
{
}
#endif
pointer
_Charalloc
(
size_t
n
)
{
pointer
_Charalloc
(
size_t
n
)
{
return
reinterpret_cast
<
pointer
>
(
getAllocator
().
allocate
(
n
));
}
return
reinterpret_cast
<
pointer
>
(
getAllocator
().
allocate
(
n
));
}
...
@@ -335,16 +310,12 @@ public:
...
@@ -335,16 +310,12 @@ public:
size_type
max_size
()
const
{
return
static_cast
<
size_type
>
(
-
1
)
/
sizeof
(
T
);
}
size_type
max_size
()
const
{
return
static_cast
<
size_type
>
(
-
1
)
/
sizeof
(
T
);
}
size_type
max_size
(
int
size
)
const
{
return
static_cast
<
size_type
>
(
-
1
)
/
size
;
}
size_type
max_size
(
int
size
)
const
{
return
static_cast
<
size_type
>
(
-
1
)
/
size
;
}
#ifdef USING_SGI_STL
//void setAllocator(TPoolAllocator* a) { allocator = a; }
static
TPoolAllocator
&
getAllocator
()
{
return
GlobalPoolAllocator
;
}
#else
void
setAllocator
(
TPoolAllocator
*
a
)
{
allocator
=
*
a
;
}
void
setAllocator
(
TPoolAllocator
*
a
)
{
allocator
=
*
a
;
}
TPoolAllocator
&
getAllocator
()
const
{
return
allocator
;
}
TPoolAllocator
&
getAllocator
()
const
{
return
allocator
;
}
protected
:
protected
:
pool_allocator
&
operator
=
(
const
pool_allocator
&
rhs
)
{
return
*
this
;
}
TPoolAllocator
&
allocator
;
TPoolAllocator
&
allocator
;
#endif
};
};
#endif // _POOLALLOC_INCLUDED_
#endif // _POOLALLOC_INCLUDED_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment