User forums > Nightly builds

The 12 January 2010 build (6080) is out.

<< < (4/10) > >>

ollydbg:

--- Quote from: aozima on January 14, 2010, 04:30:55 am ---yes!
the ENABLE is lost!
but the DISABLE is OK!

I dont't know how to ....

--- End quote ---
I will check this bug. by enable #define PARSERTHREAD_DEBUG_OUTPUT 1.
By the way, I found that you also comes from China, and nice to meet you and your personal site

ollydbg:
Ok, this bug can be fixed soon. For example:

In the DoParse() function


--- Code: ---  else if (token==ParserConsts::kw_typedef)
        {
            if (m_Options.handleTypedefs)
                HandleTypedef();
            else
                SkipToOneOfChars(ParserConsts::semicolonclbrace, true);
            m_Str.Clear();
        }
--- End code ---

Then in your code

--- Code: ---typedef enum {DISABLE = 0, DISABLE2 = 0, ENABLE = !DISABLE} FunctionalState;

a = DISABLE; // is work
a = ena;

--- End code ---
When the Tokenizer meet the first "=" in your statement, it just SKIP to the "}".
That's the reason.

So, I think we can add this  before we handling typedef.

--- Code: ---m_Tokenizer.SetState(tsSkipNone);

--- End code ---

I will do more testing.

ollydbg:
Oh, my God, I found a bug in the Tokenizer::SkipUnWanted.


--- Code: ---    // skip the following = or ?
    if(m_State&tsSkipEqual)
    {
        if(c == _T('='))
        {
            if (!SkipToOneOfChars(_T(";}"), true))
                return false;
        }
    }
--- End code ---

should be:

--- Code: ---    // skip the following = or ?
    if(m_State&tsSkipEqual)
    {
        if(c == _T('='))
        {
            if (!SkipToOneOfChars(_T(",;}"), true))
                return false;
        }
    }
--- End code ---

Sorry! That's my fault.

Edit:
So, the problem Re: The 12 January 2010 build (6080) is out. can be solved.

aozima:
Thinks! ollydbg..  is OK now!!!! :lol: :lol:

Borr:
I have IBPP (http://www.ibpp.org/) and CB. And I want CB to autocomplete names of members of IBPP classes. I have create external tag database for IBPP includes, attached this tags and re-tagged the current cpp-file but autocomplete not works well.


--- Code: ---IBPP::/*CodeCompletion work*/Transaction tr = IBPP::/*CodeCompletion*/TransactionFactory();
IBPP::/*CodeCompletion*/Database db = IBPP::/*CodeCompletion*/DatabaseFactory();
IBPP::/*CodeCompletion*/Statement st = IBPP::/*CodeCompletion*/StatementFactory(db, tr);
tr->/*CodeCompletion NOT work*/

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version