Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
cm-projects
RIOT
Commits
eac60d66
Commit
eac60d66
authored
11 years ago
by
Ludwig Knüpfer
Browse files
Options
Downloads
Patches
Plain Diff
make reset of freed slots optional
addresses
https://github.com/RIOT-OS/RIOT/pull/433#discussion_r8472602
parent
1a99a44e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/lifo.c
+5
-0
5 additions, 0 deletions
core/lifo.c
with
5 additions
and
0 deletions
core/lifo.c
+
5
−
0
View file @
eac60d66
...
...
@@ -69,7 +69,12 @@ int lifo_get(int *array)
if
(
head
!=
-
1
)
{
array
[
0
]
=
array
[
head
+
1
];
}
#if DEVELHELP
/* make sure a double insert does not result in an infinite
* resource of values */
array
[
head
+
1
]
=
-
1
;
#endif
DEBUG
(
"lifo_get: returning %i
\n
"
,
head
);
return
head
;
...
...
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