Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

vector<int> is OK, but string or wstring no-work.

<< < (20/23) > >>

blueshake:

--- Quote ---#include <iostream>

int main()
{
    // std::cou // not work!
    std::endl // work here.
    return 0;
}
--- End quote ---


where is the definition of std::cout???

MortenMacFly:

--- Quote from: blueshake on January 18, 2010, 03:06:52 am ---where is the definition of std::cout???

--- End quote ---
Directly in iostream:

--- Code: ---  extern istream cin; ///< Linked to standard input
  extern ostream cout; ///< Linked to standard output
  extern ostream cerr; ///< Linked to standard error (unbuffered)
  extern ostream clog; ///< Linked to standard error (buffered)

--- End code ---
And yes: It's "gone". ?!

ollydbg:
In my opinion: In the parserThread DoParse function, when it meet the "extern" keyword, the parser just skip to the the ";".

blueshake:

--- Quote from: ollydbg on January 18, 2010, 06:55:36 am ---In my opinion: In the parserThread DoParse function, when it meet the "extern" keyword, the parser just skip to the the ";".

--- End quote ---

right.that is why I ask where is the real definition.if it is just so,we need to  do some handle about extern.

MortenMacFly:

--- Quote from: ollydbg on January 18, 2010, 06:55:36 am ---In my opinion: In the parserThread DoParse function, when it meet the "extern" keyword, the parser just skip to the the ";".

--- End quote ---
No, the code is question is as follows:

--- Code: ---        else if (token==ParserConsts::kw_extern)
        {
            // check for "C"
            m_Str = m_Tokenizer.GetToken();
            if (m_Str==ParserConsts::kw_C)
            {
                m_Tokenizer.GetToken(); // "eat" {
                DoParse(); // time for recursion ;)
            }
            else
            {
                // do nothing, just skip keyword "extern", otherwise uncomment:
                //SkipToOneOfChars(ParserConsts::semicolon); // skip externs
            }
            m_Str.Clear();
        }

--- End code ---
As you see: Really only "extern" is skipped, the rest is parsed as usual.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version