Commit 991c4a89 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Make stream_check_ptr and stream_to_pointer inline.

parent 84b5c0ee
......@@ -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 );
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment