char *p = ..., *lim = ...;
for (mcel_t g; p < lim; p += g.len)
{
- g = mcel_scan (p, lim);
- process (g);
- }
+ g = mcel_scan (p, lim);
+ process (g);
+ }
You can select from G using G.ch, G.err, and G.len.
G is an encoding error if G.err is nonzero, a character otherwise.
char *p = ...;
for (; *p; p++)
- process (*p);
+ process (*p);
You can use this multi-byte code:
char *p = ...;
for (mcel_t g; *p; p += g.len)
- {
- g = mcel_scanz (p);
- process (g);
- }
+ {
+ g = mcel_scanz (p);
+ process (g);
+ }
mcel_scant (P, TERMINATOR) is like mcel_scanz (P) except the
string is terminated by TERMINATOR. The C standard says that the
we grant an exception to any with "bind" in its list of mount options.
I.e., those are *not* dummy entries. */
#ifdef MOUNTED_GETMNTENT1
-# define ME_DUMMY(Fs_name, Fs_type, Bind) \
- (ME_DUMMY_0 (Fs_name, Fs_type) \
+# define ME_DUMMY(Fs_name, Fs_type, Bind) \
+ (ME_DUMMY_0 (Fs_name, Fs_type) \
|| (strcmp (Fs_type, "none") == 0 && !Bind))
#else
-# define ME_DUMMY(Fs_name, Fs_type) \
+# define ME_DUMMY(Fs_name, Fs_type) \
(ME_DUMMY_0 (Fs_name, Fs_type) || strcmp (Fs_type, "none") == 0)
#endif
_gl_verify_type<(R) ? 1 : -1>
#elif defined _GL_HAVE__STATIC_ASSERT
# define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \
- struct { \
- _Static_assert (R, DIAGNOSTIC); \
- int _gl_dummy; \
+ struct { \
+ _Static_assert (R, DIAGNOSTIC); \
+ int _gl_dummy; \
}
#else
# define _GL_VERIFY_TYPE(R, DIAGNOSTIC) \
#elif defined _GL_HAVE__STATIC_ASSERT
# define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)
#else
-# define _GL_VERIFY(R, DIAGNOSTIC, ...) \
- extern int (*_GL_GENSYM (_gl_verify_function) (void)) \
+# define _GL_VERIFY(R, DIAGNOSTIC, ...) \
+ extern int (*_GL_GENSYM (_gl_verify_function) (void)) \
[_GL_VERIFY_TRUE (R, DIAGNOSTIC)]
# if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
# pragma GCC diagnostic ignored "-Wnested-externs"