-/* Generated by re2c 1.1.1 on Sat Jul 13 18:32:57 2019 */
+/* Generated by re2c 1.1.1 on Sat Jul 13 19:06:36 2019 */
#line 1 "../lib/lex.re"
#include <stdio.h>
extern "C" {
int yylex(const char *&pattern);
-void yyerror(const char *pattern, const char*) RE2C_GXX_ATTRIBUTE((noreturn));
+void yyerror(const char *pattern, const char*) RE2C_ATTR((noreturn));
} // extern "C"
-/* Generated by re2c 1.1.1 on Sat Jul 13 18:25:08 2019 */
+/* Generated by re2c 1.1.1 on Sat Jul 13 19:06:36 2019 */
#line 1 "../src/parse/lex.re"
#include <ctype.h>
#include "src/util/c99_stdint.h"
-/* Generated by re2c 1.1.1 on Sat Jul 13 18:25:08 2019 */
+/* Generated by re2c 1.1.1 on Sat Jul 13 19:06:36 2019 */
#ifndef _RE2C_PARSE_LEX_
#define _RE2C_PARSE_LEX_
extern "C" {
int yylex(context_t &context);
-void yyerror(context_t &context, const char*) RE2C_GXX_ATTRIBUTE((noreturn));
+void yyerror(context_t &context, const char*) RE2C_ATTR((noreturn));
} // extern "C"
extern "C" {
int yylex(const char *&pattern);
-void yyerror(const char *pattern, const char*) RE2C_GXX_ATTRIBUTE((noreturn));
+void yyerror(const char *pattern, const char*) RE2C_ATTR((noreturn));
} // extern "C"
}
static int32_t precedence(psimctx_t &ctx, const conf_t &x
- , const conf_t &y RE2C_GXX_ATTRIBUTE((unused)))
+ , const conf_t &y RE2C_ATTR((unused)))
{
DASSERT(x.state == y.state);
const size_t idx = index(x.state, ctx.nfa);
std::vector<int32_t> &p1 = ctx.history.path1, &p2 = ctx.history.path2;
const int32_t
- n1 RE2C_GXX_ATTRIBUTE((unused)) = subhistory_list(ctx.history, p1, x.thist, t),
- n2 RE2C_GXX_ATTRIBUTE((unused)) = subhistory_list(ctx.history, p2, y.thist, t);
+ n1 RE2C_ATTR((unused)) = subhistory_list(ctx.history, p1, x.thist, t),
+ n2 RE2C_ATTR((unused)) = subhistory_list(ctx.history, p2, y.thist, t);
DASSERT(n1 == n2);
std::vector<int32_t>::const_reverse_iterator
inline Msg(): filenames(), warn(*this), locfmt(LOCFMT_GNU) {}
size_t register_filename(const std::string &filename);
- void fatal(const loc_t &loc, const char *fmt, ...) RE2C_GXX_ATTRIBUTE ((format (printf, 3, 4), noreturn));
- void warning(const char *type, const loc_t &loc, bool error, const char *fmt, ...) RE2C_GXX_ATTRIBUTE ((format (printf, 5, 6)));
+ void fatal(const loc_t &loc, const char *fmt, ...) RE2C_ATTR((format (printf, 3, 4), noreturn));
+ void warning(const char *type, const loc_t &loc, bool error, const char *fmt, ...) RE2C_ATTR((format (printf, 5, 6)));
friend class Warn;
void warning_end(const char *type, bool error);
};
-void error(const char *fmt, ...) RE2C_GXX_ATTRIBUTE ((format (printf, 1, 2)));
-void fatal(const char *fmt, ...) RE2C_GXX_ATTRIBUTE ((format (printf, 1, 2), noreturn));
+void error(const char *fmt, ...) RE2C_ATTR((format (printf, 1, 2)));
+void fatal(const char *fmt, ...) RE2C_ATTR((format (printf, 1, 2), noreturn));
void error_arg(const char *option);
void usage ();
void vernum ();
extern "C" {
int yylex(context_t &context);
-void yyerror(context_t &context, const char*) RE2C_GXX_ATTRIBUTE((noreturn));
+void yyerror(context_t &context, const char*) RE2C_ATTR((noreturn));
} // extern "C"
#define _RE2C_UTIL_ATTRIBUTE_
#ifdef __GNUC__
-# define RE2C_GXX_ATTRIBUTE(x) __attribute__(x)
+# define RE2C_ATTR(x) __attribute__(x)
#else
-# define RE2C_GXX_ATTRIBUTE(x)
+# define RE2C_ATTR(x)
#endif
#endif // _RE2C_UTIL_ATTRIBUTE_
namespace re2c {
-bool s_to_u32_unsafe (const char * s, const char * s_end, uint32_t & number) RE2C_GXX_ATTRIBUTE ((warn_unused_result));
-bool s_to_i32_unsafe (const char * s, const char * s_end, int32_t & number) RE2C_GXX_ATTRIBUTE ((warn_unused_result));
+bool s_to_u32_unsafe (const char * s, const char * s_end, uint32_t & number) RE2C_ATTR((warn_unused_result));
+bool s_to_i32_unsafe (const char * s, const char * s_end, int32_t & number) RE2C_ATTR((warn_unused_result));
} // namespace re2c