diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 21:56:49 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 22:43:04 +0100 |
commit | 675b92aa6b6c8124c8ccf9535e338fd37b8b9977 (patch) | |
tree | f3201e9ceb6fab30db8c97bcc01812ef341f97b9 /src/buffer.c | |
parent | 52045957a87f2c86f61f2054cafbebe050a1299b (diff) |
Move inline function definitions to header files
Inline functions must be defined in header files in order to be inlined in
other compilation units. This also fixes the MSVC build where out-of-line
versions weren't created and allows to remove the -fgnu89-inline flag.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c index c7b784a..45b6984 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -201,11 +201,6 @@ int cmark_strbuf_printf(strbuf *buf, const char *format, ...) return r; } -inline const char *cmark_strbuf_cstr(const cmark_strbuf *buf) -{ - return (char *)buf->ptr; -} - void cmark_strbuf_copy_cstr(char *data, int datasize, const strbuf *buf) { int copylen; |