Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
991c4a89
Commit
991c4a89
authored
Aug 01, 2014
by
Thomas Jahns
🤸
Browse files
Make stream_check_ptr and stream_to_pointer inline.
parent
84b5c0ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdi_int.c
View file @
991c4a89
...
...
@@ -292,19 +292,6 @@ const char *strfiletype(int filetype)
}
stream_t
*
stream_to_pointer
(
int
idx
)
{
return
(
stream_t
*
)
reshGetVal
(
idx
,
&
streamOps
);
}
void
stream_check_ptr
(
const
char
*
caller
,
stream_t
*
streamptr
)
{
if
(
streamptr
==
NULL
)
Errorc
(
"stream undefined!"
);
}
int
streamSize
(
void
)
{
return
reshCountType
(
&
streamOps
);
...
...
src/cdi_int.h
View file @
991c4a89
...
...
@@ -273,9 +273,20 @@ extern int STREAM_Debug;
extern
char
*
cdiPartabPath
;
extern
int
cdiPartabIntern
;
extern
const
resOps
streamOps
;
static
inline
stream_t
*
stream_to_pointer
(
int
idx
)
{
return
reshGetVal
(
idx
,
&
streamOps
);
}
stream_t
*
stream_to_pointer
(
int
idx
);
void
stream_check_ptr
(
const
char
*
caller
,
stream_t
*
streamptr
);
static
inline
void
stream_check_ptr
(
const
char
*
caller
,
stream_t
*
streamptr
)
{
if
(
streamptr
==
NULL
)
Errorc
(
"stream undefined!"
);
}
int
streamInqFileID
(
int
streamID
);
...
...
@@ -372,8 +383,6 @@ void cdiStreamSync_(stream_t *streamptr);
char
*
cdiUnitNamePtr
(
int
cdi_unit
);
extern
const
resOps
streamOps
;
#endif
/* _CDI_INT_H */
/*
* Local Variables:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment