Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
orbea
Tor
Commits
f274c141
Commit
f274c141
authored
17 years ago
by
Peter Palfrader
Browse files
Options
Downloads
Patches
Plain Diff
Make it build with -O0 as well
svn:r10722
parent
adff8914
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/container.h
+5
-5
5 additions, 5 deletions
src/common/container.h
with
5 additions
and
5 deletions
src/common/container.h
+
5
−
5
View file @
f274c141
...
...
@@ -55,21 +55,21 @@ void smartlist_subtract(smartlist_t *sl1, const smartlist_t *sl2);
#ifdef DEBUG_SMARTLIST
/** Return the number of items in sl.
*/
extern
INLINE
int
smartlist_len
(
const
smartlist_t
*
sl
)
ATTR_PURE
;
extern
INLINE
int
smartlist_len
(
const
smartlist_t
*
sl
)
{
static
INLINE
int
smartlist_len
(
const
smartlist_t
*
sl
)
ATTR_PURE
;
static
INLINE
int
smartlist_len
(
const
smartlist_t
*
sl
)
{
tor_assert
(
sl
);
return
(
sl
)
->
num_used
;
}
/** Return the <b>idx</b>th element of sl.
*/
extern
INLINE
void
*
smartlist_get
(
const
smartlist_t
*
sl
,
int
idx
)
ATTR_PURE
;
extern
INLINE
void
*
smartlist_get
(
const
smartlist_t
*
sl
,
int
idx
)
{
static
INLINE
void
*
smartlist_get
(
const
smartlist_t
*
sl
,
int
idx
)
ATTR_PURE
;
static
INLINE
void
*
smartlist_get
(
const
smartlist_t
*
sl
,
int
idx
)
{
tor_assert
(
sl
);
tor_assert
(
idx
>=
0
);
tor_assert
(
sl
->
num_used
>
idx
);
return
sl
->
list
[
idx
];
}
extern
INLINE
void
smartlist_set
(
smartlist_t
*
sl
,
int
idx
,
void
*
val
)
{
static
INLINE
void
smartlist_set
(
smartlist_t
*
sl
,
int
idx
,
void
*
val
)
{
tor_assert
(
sl
);
tor_assert
(
idx
>=
0
);
tor_assert
(
sl
->
num_used
>
idx
);
...
...
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