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
79f2767e
Commit
79f2767e
authored
Nov 20, 2013
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove alloca() remnants
parent
5f122c44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
protobuf-c/protobuf-c.c
protobuf-c/protobuf-c.c
+0
-9
No files found.
protobuf-c/protobuf-c.c
View file @
79f2767e
...
...
@@ -51,14 +51,6 @@
#include <stdio.h>
/* for occasional printf()s */
#include <stdlib.h>
/* for abort(), malloc() etc */
#include <string.h>
/* for strlen(), memcpy(), memmove() */
#if 0 /* we no longer use alloca. */
#if HAVE_ALLOCA_H
#include <alloca.h>
#elif HAVE_MALLOC_H
#include <malloc.h>
#endif
#endif
#ifndef PRINT_UNPACK_ERRORS
#define PRINT_UNPACK_ERRORS 1
...
...
@@ -2288,7 +2280,6 @@ protobuf_c_message_unpack (const ProtobufCMessageDescriptor *desc,
}
which_slab
++
;
size
=
sizeof
(
ScannedMember
)
<<
(
which_slab
+
FIRST_SCANNED_MEMBER_SLAB_SIZE_LOG2
);
/* TODO: consider using alloca() ! */
if
(
allocator
->
tmp_alloc
!=
NULL
)
scanned_member_slabs
[
which_slab
]
=
TMPALLOC
(
allocator
,
size
);
else
...
...
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