Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
6978f878
Commit
6978f878
authored
9 years ago
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts
parent
7f9921fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
.gitignore
.gitignore
+0
-3
stack.h
include/rapidjson/internal/stack.h
+3
-8
No files found.
.gitignore
View file @
6978f878
<<<<<<< HEAD
=======
/bin/*
!/bin/data
!/bin/encodings
!/bin/jsonchecker
!/bin/types
>>>>>>> master
/build
/doc/html
/doc/doxygen_*.db
...
...
This diff is collapsed.
Click to expand it.
include/rapidjson/internal/stack.h
View file @
6978f878
...
...
@@ -147,7 +147,6 @@ public:
}
template
<
typename
T
>
<<<<<<<
HEAD
const
T
*
Top
()
const
{
RAPIDJSON_ASSERT
(
GetSize
()
>=
sizeof
(
T
));
return
reinterpret_cast
<
T
*>
(
stackTop_
-
sizeof
(
T
));
...
...
@@ -160,14 +159,10 @@ public:
const
T
*
End
()
const
{
return
reinterpret_cast
<
T
*>
(
stackTop_
);
}
template
<
typename
T
>
T
*
Bottom
()
{
return
(
T
*
)
stack_
;
}
T
*
Bottom
()
{
return
reinterpret_cast
<
T
*>
(
stack_
)
;
}
template
<
typename
T
>
const
T
*
Bottom
()
const
{
return
(
T
*
)
stack_
;
}
Allocator
&
GetAllocator
()
{
return
*
allocator_
;
}
=======
T
*
Bottom
()
{
return
reinterpret_cast
<
T
*>
(
stack_
);
}
const
T
*
Bottom
()
const
{
return
reinterpret_cast
<
T
*>
(
stack_
);
}
bool
HasAllocator
()
const
{
return
allocator_
!=
0
;
...
...
@@ -177,7 +172,7 @@ public:
RAPIDJSON_ASSERT
(
allocator_
);
return
*
allocator_
;
}
>>>>>>>
master
bool
Empty
()
const
{
return
stackTop_
==
stack_
;
}
size_t
GetSize
()
const
{
return
static_cast
<
size_t
>
(
stackTop_
-
stack_
);
}
size_t
GetCapacity
()
const
{
return
static_cast
<
size_t
>
(
stackEnd_
-
stack_
);
}
...
...
This diff is collapsed.
Click to expand it.
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