gmio_core: function gmio_stringstream_default_func_read() cannot be "inline"
This commit is contained in:
parent
1bc3a98c5c
commit
ec5ea263d4
@ -53,6 +53,13 @@ void gmio_stringstream_init_pos(struct gmio_stringstream *sstream)
|
||||
gmio_stringstream_next_char(sstream);
|
||||
}
|
||||
|
||||
size_t gmio_stringstream_default_func_read(
|
||||
void* cookie, struct gmio_stream* stream, char* ptr, size_t len)
|
||||
{
|
||||
GMIO_UNUSED(cookie);
|
||||
return gmio_stream_read(stream, ptr, 1, len);
|
||||
}
|
||||
|
||||
enum gmio_eat_word_error gmio_stringstream_eat_word(
|
||||
struct gmio_stringstream *sstream,
|
||||
struct gmio_string *str)
|
||||
|
@ -73,7 +73,7 @@ struct gmio_stringstream gmio_stringstream(
|
||||
void gmio_stringstream_init_pos(struct gmio_stringstream* sstream);
|
||||
|
||||
/*! Default function for gmio_stringstream::func_stream_read */
|
||||
GMIO_INLINE size_t gmio_stringstream_default_func_read(
|
||||
size_t gmio_stringstream_default_func_read(
|
||||
void* cookie, struct gmio_stream* stream, char* ptr, size_t len);
|
||||
|
||||
/*! Returns the char where the iterator is currently pointing at */
|
||||
@ -144,7 +144,6 @@ GMIO_INLINE float gmio_to_float32(const char* str);
|
||||
*/
|
||||
|
||||
#include "c99_stdlib_compat.h"
|
||||
#include "helper_stream.h"
|
||||
#include "string_ascii_utils.h"
|
||||
#if GMIO_STR2FLOAT_LIB == GMIO_STR2FLOAT_LIB_IRRLICHT
|
||||
# include "fast_atof.h"
|
||||
@ -163,13 +162,6 @@ const char* gmio_stringstream_current_char(
|
||||
NULL;
|
||||
}
|
||||
|
||||
size_t gmio_stringstream_default_func_read(
|
||||
void* cookie, struct gmio_stream* stream, char* ptr, size_t len)
|
||||
{
|
||||
GMIO_UNUSED(cookie);
|
||||
return gmio_stream_read(stream, ptr, 1, len);
|
||||
}
|
||||
|
||||
const char *gmio_stringstream_next_char(struct gmio_stringstream *sstream)
|
||||
{
|
||||
++(sstream->strbuff_at);
|
||||
|
Loading…
Reference in New Issue
Block a user