projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf: Remove redundant declarations of lexer/parser functions
[babeltrace.git]
/
src
/
plugins
/
ctf
/
common
/
metadata
/
lexer.l
diff --git
a/src/plugins/ctf/common/metadata/lexer.l
b/src/plugins/ctf/common/metadata/lexer.l
index 694ddc3aed28258b26ae0f36a27577841470a43b..55a42d6191185d205307b072afd0e28979f2be41 100644
(file)
--- a/
src/plugins/ctf/common/metadata/lexer.l
+++ b/
src/plugins/ctf/common/metadata/lexer.l
@@
-25,13
+25,14
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
+#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN-CTF-METADATA-LEXER"
#include "logging.h"
#include <stdio.h>
#include <ctype.h>
#include "scanner.h"
#define BT_LOG_TAG "PLUGIN-CTF-METADATA-LEXER"
#include "logging.h"
#include <stdio.h>
#include <ctype.h>
#include "scanner.h"
-#include "parser.h"
+#include "parser
-wrap
.h"
#include "ast.h"
#define YY_FATAL_ERROR(_msg) BT_LOGF_STR(_msg)
#include "ast.h"
#define YY_FATAL_ERROR(_msg) BT_LOGF_STR(_msg)
@@
-51,10
+52,6
@@
BT_HIDDEN
void setstring(struct ctf_scanner *scanner, YYSTYPE *lvalp, const char *src);
BT_HIDDEN
void setstring(struct ctf_scanner *scanner, YYSTYPE *lvalp, const char *src);
-static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
- __attribute__((unused));
-static int input (yyscan_t yyscanner) __attribute__((unused));
-
BT_HIDDEN
int import_string(struct ctf_scanner *scanner, YYSTYPE *lvalp, const char *src, char delim);
BT_HIDDEN
int import_string(struct ctf_scanner *scanner, YYSTYPE *lvalp, const char *src, char delim);
@@
-142,7
+139,7
@@
_Imaginary setstring(yyextra, yylval, yytext); return CTF_IMAGINARY;
0{OCTALDIGIT}*{INTEGER_SUFFIX}? PARSE_INTEGER_LITERAL(8); return CTF_INTEGER_LITERAL;
0[xX]{HEXDIGIT}+{INTEGER_SUFFIX}? PARSE_INTEGER_LITERAL(16); return CTF_INTEGER_LITERAL;
0{OCTALDIGIT}*{INTEGER_SUFFIX}? PARSE_INTEGER_LITERAL(8); return CTF_INTEGER_LITERAL;
0[xX]{HEXDIGIT}+{INTEGER_SUFFIX}? PARSE_INTEGER_LITERAL(16); return CTF_INTEGER_LITERAL;
-{IDENTIFIER} BT_LOG
V
("Got identifier: id=\"%s\"", yytext); setstring(yyextra, yylval, yytext); if (is_type(yyextra, yytext)) return ID_TYPE; else return IDENTIFIER;
+{IDENTIFIER} BT_LOG
T
("Got identifier: id=\"%s\"", yytext); setstring(yyextra, yylval, yytext); if (is_type(yyextra, yytext)) return ID_TYPE; else return IDENTIFIER;
[ \t\r\n] ; /* ignore */
. _BT_LOGE_LINENO(yylineno, "Invalid character: char=\"%c\", val=0x%02x", isprint(yytext[0]) ? yytext[0] : '\0', yytext[0]); return CTF_ERROR;
%%
[ \t\r\n] ; /* ignore */
. _BT_LOGE_LINENO(yylineno, "Invalid character: char=\"%c\", val=0x%02x", isprint(yytext[0]) ? yytext[0] : '\0', yytext[0]); return CTF_ERROR;
%%
This page took
0.025351 seconds
and
4
git commands to generate.