Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cJSON
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
libraries
cJSON
Commits
63cd9f0a8feb
Commit
63cd9f0a8feb
authored
5 years ago
by
Alanscut
Browse files
Options
Downloads
Patches
Plain Diff
false has been redefined to cJSON_False
parent
3aa99e9a3bbb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cJSON.c
+2
-2
2 additions, 2 deletions
cJSON.c
tests/misc_tests.c
+2
-2
2 additions, 2 deletions
tests/misc_tests.c
with
4 additions
and
4 deletions
cJSON.c
+
2
−
2
View file @
63cd9f0a
...
...
@@ -1977,7 +1977,7 @@
{
if
(
array
==
NULL
)
{
return
cJSON_F
alse
;
return
f
alse
;
}
return
add_item_to_array
(
array
,
create_reference
(
item
,
&
global_hooks
));
...
...
@@ -1987,7 +1987,7 @@
{
if
((
object
==
NULL
)
||
(
string
==
NULL
))
{
return
cJSON_F
alse
;
return
f
alse
;
}
return
add_item_to_object
(
object
,
string
,
create_reference
(
item
,
&
global_hooks
),
&
global_hooks
,
false
);
...
...
This diff is collapsed.
Click to expand it.
tests/misc_tests.c
+
2
−
2
View file @
63cd9f0a
...
...
@@ -332,7 +332,7 @@
cJSON
root
[
1
]
=
{{
NULL
,
NULL
,
NULL
,
0
,
NULL
,
0
,
0
,
NULL
}};
cJSON
*
child
=
NULL
;
cJSON
*
replacement
=
NULL
;
cJSON_bool
flag
=
cJSON_F
alse
;
cJSON_bool
flag
=
f
alse
;
child
=
cJSON_CreateNumber
(
1
);
TEST_ASSERT_NOT_NULL
(
child
);
...
...
@@ -537,7 +537,7 @@
{
cJSON
*
object
=
cJSON_CreateObject
();
cJSON
*
array
=
cJSON_CreateArray
();
cJSON_bool
flag
=
cJSON_F
alse
;
cJSON_bool
flag
=
f
alse
;
flag
=
cJSON_AddItemToObject
(
object
,
"key"
,
object
);
TEST_ASSERT_FALSE_MESSAGE
(
flag
,
"add an object to itself should fail"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment