diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-04 22:29:08 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-04 22:29:08 (GMT) |
commit | 52dfffd97ba49b603b4814d843cd9be08d040364 (patch) | |
tree | 044c93d19aa38ac24822a241babbece7425bfbb2 /src/lexer.l | |
parent | 0be212e75d73644b1cff8291a4b6a6fe0098b942 (diff) | |
parent | ba8aa515d14cf270c9d0fdf50b4c7c55b3c416a8 (diff) |
Merge branch 'master' into threading
Conflicts:
RELEASE_NOTES
Diffstat (limited to 'src/lexer.l')
-rw-r--r-- | src/lexer.l | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/lexer.l b/src/lexer.l index c799028..07819b2 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -114,27 +114,6 @@ use[ \t\r\n>]*"<"[^\t\r\n>]+">" { return TOK_USE; } -"<"[^ \t\r\n>]+">" { - char *filename = strdup(yytext+1); - filename[strlen(filename)-1] = 0; - QFileInfo finfo(QDir(parser_source_path), filename); - if (!finfo.exists()) { - finfo = QFileInfo(QDir(librarydir), filename); - } - - PRINTF("DEPRECATED: Support for implicit include will be removed in future releases. Use `include <filename>' instead."); - handle_dep(finfo.absoluteFilePath().toStdString()); - yyin = fopen(finfo.absoluteFilePath().toLocal8Bit(), "r"); - if (!yyin) { - PRINTF("WARNING: Can't open input file `%s'.", filename); - } else { - openfiles.append(yyin); - yypush_buffer_state(yy_create_buffer( yyin, YY_BUF_SIZE )); - BEGIN(INITIAL); - } - free(filename); -} - <<EOF>> { if(!path_stack.empty()) path_stack.pop(); |