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
5a96c1f9
Commit
5a96c1f9
authored
Nov 23, 2014
by
Anton Indrawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile all examples with the Dinkum C++ of QNX 6.6
QCC -Wall -Wextra -Vgcc_ntoarmv7le -I../include <example>
parent
26491cff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
tutorial.cpp
example/tutorial/tutorial.cpp
+1
-0
filereadstream.h
include/rapidjson/filereadstream.h
+2
-2
filestream.h
include/rapidjson/filestream.h
+2
-2
filewritestream.h
include/rapidjson/filewritestream.h
+2
-2
No files found.
example/tutorial/tutorial.cpp
View file @
5a96c1f9
...
...
@@ -7,6 +7,7 @@
#include <cstdio>
using
namespace
rapidjson
;
using
namespace
std
;
int
main
(
int
,
char
*
[])
{
////////////////////////////////////////////////////////////////////////////
...
...
include/rapidjson/filereadstream.h
View file @
5a96c1f9
...
...
@@ -40,7 +40,7 @@ public:
\param buffer user-supplied buffer.
\param bufferSize size of buffer in bytes. Must >=4 bytes.
*/
FileReadStream
(
FILE
*
fp
,
char
*
buffer
,
size_t
bufferSize
)
:
fp_
(
fp
),
buffer_
(
buffer
),
bufferSize_
(
bufferSize
),
bufferLast_
(
0
),
current_
(
buffer_
),
readCount_
(
0
),
count_
(
0
),
eof_
(
false
)
{
FileReadStream
(
std
::
FILE
*
fp
,
char
*
buffer
,
size_t
bufferSize
)
:
fp_
(
fp
),
buffer_
(
buffer
),
bufferSize_
(
bufferSize
),
bufferLast_
(
0
),
current_
(
buffer_
),
readCount_
(
0
),
count_
(
0
),
eof_
(
false
)
{
RAPIDJSON_ASSERT
(
fp_
!=
0
);
RAPIDJSON_ASSERT
(
bufferSize
>=
4
);
Read
();
...
...
@@ -79,7 +79,7 @@ private:
}
}
FILE
*
fp_
;
std
::
FILE
*
fp_
;
Ch
*
buffer_
;
size_t
bufferSize_
;
Ch
*
bufferLast_
;
...
...
include/rapidjson/filestream.h
View file @
5a96c1f9
...
...
@@ -36,7 +36,7 @@ class FileStream {
public
:
typedef
char
Ch
;
//!< Character type. Only support char.
FileStream
(
FILE
*
fp
)
:
fp_
(
fp
),
current_
(
'\0'
),
count_
(
0
)
{
Read
();
}
FileStream
(
std
::
FILE
*
fp
)
:
fp_
(
fp
),
current_
(
'\0'
),
count_
(
0
)
{
Read
();
}
char
Peek
()
const
{
return
current_
;
}
char
Take
()
{
char
c
=
current_
;
Read
();
return
c
;
}
size_t
Tell
()
const
{
return
count_
;
}
...
...
@@ -63,7 +63,7 @@ private:
current_
=
'\0'
;
}
FILE
*
fp_
;
std
::
FILE
*
fp_
;
char
current_
;
size_t
count_
;
};
...
...
include/rapidjson/filewritestream.h
View file @
5a96c1f9
...
...
@@ -34,7 +34,7 @@ class FileWriteStream {
public
:
typedef
char
Ch
;
//!< Character type. Only support char.
FileWriteStream
(
FILE
*
fp
,
char
*
buffer
,
size_t
bufferSize
)
:
fp_
(
fp
),
buffer_
(
buffer
),
bufferEnd_
(
buffer
+
bufferSize
),
current_
(
buffer_
)
{
FileWriteStream
(
std
::
FILE
*
fp
,
char
*
buffer
,
size_t
bufferSize
)
:
fp_
(
fp
),
buffer_
(
buffer
),
bufferEnd_
(
buffer
+
bufferSize
),
current_
(
buffer_
)
{
RAPIDJSON_ASSERT
(
fp_
!=
0
);
}
...
...
@@ -80,7 +80,7 @@ private:
FileWriteStream
(
const
FileWriteStream
&
);
FileWriteStream
&
operator
=
(
const
FileWriteStream
&
);
FILE
*
fp_
;
std
::
FILE
*
fp_
;
char
*
buffer_
;
char
*
bufferEnd_
;
char
*
current_
;
...
...
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