webengine/osswebengine/JavaScriptCore/kjs/lexer.cpp
changeset 13 10e98eab6f85
parent 0 dd21522fd290
equal deleted inserted replaced
8:7c90e6132015 13:10e98eab6f85
    57 }
    57 }
    58 
    58 
    59 namespace KJS {
    59 namespace KJS {
    60 
    60 
    61 static Lexer* currLexer = 0;
    61 static Lexer* currLexer = 0;
       
    62 
       
    63 struct cleanupLexer {
       
    64     ~cleanupLexer() {
       
    65         delete currLexer;
       
    66         currLexer=0;
       
    67     }
       
    68 };
       
    69 static cleanupLexer clearLexer;
    62 
    70 
    63 static bool isDecimalDigit(int);
    71 static bool isDecimalDigit(int);
    64 
    72 
    65 Lexer::Lexer()
    73 Lexer::Lexer()
    66   : yylineno(1),
    74   : yylineno(1),