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
871d6787
Commit
871d6787
authored
Jan 13, 2014
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protobuf-c: remove UNALIGNED_ALLOC, DO_UNALIGNED_ALLOC macros
parent
b8c5e06d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
protobuf-c/protobuf-c.c
protobuf-c/protobuf-c.c
+1
-5
No files found.
protobuf-c/protobuf-c.c
View file @
871d6787
...
@@ -97,9 +97,6 @@ do { \
...
@@ -97,9 +97,6 @@ do { \
((allocator)->free((allocator)->allocator_data, (ptr)));\
((allocator)->free((allocator)->allocator_data, (ptr)));\
} while (0)
} while (0)
#define UNALIGNED_ALLOC(allocator, size) ALLOC(allocator, size)
#define DO_UNALIGNED_ALLOC DO_ALLOC
#define STRUCT_MEMBER_P(struct_p, struct_offset) \
#define STRUCT_MEMBER_P(struct_p, struct_offset) \
((void *) ((uint8_t *) (struct_p) + (struct_offset)))
((void *) ((uint8_t *) (struct_p) + (struct_offset)))
...
@@ -2207,8 +2204,7 @@ parse_member(ScannedMember *scanned_member,
...
@@ -2207,8 +2204,7 @@ parse_member(ScannedMember *scanned_member,
ufield
->
tag
=
scanned_member
->
tag
;
ufield
->
tag
=
scanned_member
->
tag
;
ufield
->
wire_type
=
scanned_member
->
wire_type
;
ufield
->
wire_type
=
scanned_member
->
wire_type
;
ufield
->
len
=
scanned_member
->
len
;
ufield
->
len
=
scanned_member
->
len
;
DO_UNALIGNED_ALLOC
(
ufield
->
data
,
allocator
,
DO_ALLOC
(
ufield
->
data
,
allocator
,
scanned_member
->
len
,
return
0
);
scanned_member
->
len
,
return
0
);
memcpy
(
ufield
->
data
,
scanned_member
->
data
,
ufield
->
len
);
memcpy
(
ufield
->
data
,
scanned_member
->
data
,
ufield
->
len
);
return
1
;
return
1
;
}
}
...
...
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