projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
[gnulib.git]
/
lib
/
mbfile.h
diff --git
a/lib/mbfile.h
b/lib/mbfile.h
index
58e598b
..
065b856
100644
(file)
--- a/
lib/mbfile.h
+++ b/
lib/mbfile.h
@@
-62,6
+62,11
@@
#include "mbchar.h"
#include "mbchar.h"
+_GL_INLINE_HEADER_BEGIN
+#ifndef MBFILE_INLINE
+# define MBFILE_INLINE _GL_INLINE
+#endif
+
struct mbfile_multi {
FILE *fp;
bool eof_seen;
struct mbfile_multi {
FILE *fp;
bool eof_seen;
@@
-72,7
+77,7
@@
struct mbfile_multi {
struct mbchar pushback;
};
struct mbchar pushback;
};
-
static inline
void
+
MBFILE_INLINE
void
mbfile_multi_getc (struct mbchar *mbc, struct mbfile_multi *mbf)
{
size_t bytes;
mbfile_multi_getc (struct mbchar *mbc, struct mbfile_multi *mbf)
{
size_t bytes;
@@
-215,7
+220,7
@@
eof:
return;
}
return;
}
-
static inline
void
+
MBFILE_INLINE
void
mbfile_multi_ungetc (const struct mbchar *mbc, struct mbfile_multi *mbf)
{
mb_copy (&mbf->pushback, mbc);
mbfile_multi_ungetc (const struct mbchar *mbc, struct mbfile_multi *mbf)
{
mb_copy (&mbf->pushback, mbc);
@@
-239,4
+244,6
@@
typedef mbchar_t mbf_char_t;
#define mb_iseof(mbc) ((mbc).bytes == 0)
#define mb_iseof(mbc) ((mbc).bytes == 0)
+_GL_INLINE_HEADER_BEGIN
+
#endif /* _MBFILE_H */
#endif /* _MBFILE_H */