]> granicus.if.org Git - re2c/commitdiff
- Clearify difference
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 8 Apr 2006 23:05:21 +0000 (23:05 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 8 Apr 2006 23:05:21 +0000 (23:05 +0000)
code.cc

diff --git a/code.cc b/code.cc
index cc3e0b5edbded6f965d46cb526190c3a86e37d10..f695e42ba84c25a71a030e2d117854d03174d08b 100644 (file)
--- a/code.cc
+++ b/code.cc
@@ -1367,10 +1367,10 @@ void DFA::emit(std::ostream &o, uint ind)
 
        // Generate prolog
        o << "\n" << outputFileInfo;
+       o << indent(ind++) << "{\n";
 
        if (!fFlag)
        {
-               o << indent(ind++) << "{\n";
                o << indent(ind) << "YYCTYPE yych;\n";
                if (bUsedYYAccept)
                {
@@ -1379,7 +1379,7 @@ void DFA::emit(std::ostream &o, uint ind)
        }
        else
        {
-               o << indent(ind++) << "{\n\n";
+               o << "\n";
        }
 
        if (fFlag && start_label == 0)