Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
protobuf-c
Commits
617fa7ef
Commit
617fa7ef
authored
Feb 14, 2015
by
Ilya Lipnitskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test-generated-code2.c: Cosmetic change
parent
5238d655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
t/generated-code2/test-generated-code2.c
t/generated-code2/test-generated-code2.c
+6
-10
No files found.
t/generated-code2/test-generated-code2.c
View file @
617fa7ef
...
...
@@ -1970,33 +1970,29 @@ static void
test_field_flags
(
void
)
{
const
ProtobufCFieldDescriptor
*
f
;
const
ProtobufCMessageDescriptor
*
desc
=
&
foo__test_field_flags__descriptor
;
f
=
protobuf_c_message_descriptor_get_field_by_name
(
&
foo__test_field_flags__descriptor
,
"no_flags1"
);
f
=
protobuf_c_message_descriptor_get_field_by_name
(
desc
,
"no_flags1"
);
assert
(
f
!=
NULL
);
assert
(
!
(
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_PACKED
));
assert
(
!
(
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_DEPRECATED
));
f
=
protobuf_c_message_descriptor_get_field_by_name
(
&
foo__test_field_flags__descriptor
,
"no_flags2"
);
f
=
protobuf_c_message_descriptor_get_field_by_name
(
desc
,
"no_flags2"
);
assert
(
f
!=
NULL
);
assert
(
!
(
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_PACKED
));
assert
(
!
(
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_DEPRECATED
));
f
=
protobuf_c_message_descriptor_get_field_by_name
(
&
foo__test_field_flags__descriptor
,
"no_flags3"
);
f
=
protobuf_c_message_descriptor_get_field_by_name
(
desc
,
"no_flags3"
);
assert
(
f
!=
NULL
);
assert
(
!
(
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_PACKED
));
assert
(
!
(
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_DEPRECATED
));
f
=
protobuf_c_message_descriptor_get_field_by_name
(
&
foo__test_field_flags__descriptor
,
"packed"
);
f
=
protobuf_c_message_descriptor_get_field_by_name
(
desc
,
"packed"
);
assert
(
f
!=
NULL
);
assert
((
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_PACKED
));
assert
(
!
(
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_DEPRECATED
));
f
=
protobuf_c_message_descriptor_get_field_by_name
(
&
foo__test_field_flags__descriptor
,
"packed_deprecated"
);
f
=
protobuf_c_message_descriptor_get_field_by_name
(
desc
,
"packed_deprecated"
);
assert
(
f
!=
NULL
);
assert
((
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_PACKED
));
assert
((
f
->
flags
&
PROTOBUF_C_FIELD_FLAG_DEPRECATED
));
...
...
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