From 21688c8923db18edd4d1fe26436fd6bab45f7dce Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Thu, 26 Feb 2015 10:36:16 +0000 Subject: [PATCH] Moved operator definition to where it belongs. --- re2c/code.cc | 9 --------- re2c/output.cc | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/re2c/code.cc b/re2c/code.cc index b398a8b5..d76dcb9d 100644 --- a/re2c/code.cc +++ b/re2c/code.cc @@ -2146,15 +2146,6 @@ void output_version_time (OutputFile & o) o << "*/" << "\n"; } -OutputFragment & operator << (OutputFragment & o, const file_info& li) -{ - if (li.ln && !iFlag) - { - o << "#line " << li.ln->get_line() << " \"" << li.fname << "\"\n"; - } - return o; -} - void Scanner::config(const Str& cfg, int num) { if (cfg.to_string() == "indent:top") diff --git a/re2c/output.cc b/re2c/output.cc index 51fb006f..5e9afc21 100644 --- a/re2c/output.cc +++ b/re2c/output.cc @@ -7,6 +7,15 @@ namespace re2c { +OutputFragment & operator << (OutputFragment & o, const file_info & i) +{ + if (i.ln && !iFlag) + { + o << "#line " << i.ln->get_line () << " \"" << i.fname << "\"\n"; + } + return o; +} + uint OutputFragment::count_lines () { uint lines = 0; -- 2.40.0