Author Topic: Please let CC to support the global namepace  (Read 16949 times)

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: Please let CC to support the global namepace
« Reply #15 on: May 01, 2010, 07:54:37 am »
please check out the nativeparser.cpp file. in about line 1656
Code
        if (tok.Length() != 0 || tokenType == pttSearchText)

but in my above patch , it is
Code
if (!tok.IsEmpty() || (tokenType == pttSearchText && components.size() != 0))


if you apply the patch I provided in this thread.http://forums.codeblocks.org/index.php/topic,12096.msg82256.html#msg82256

when you type "(" , you will get what I mean.
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: Please let CC to support the global namepace
« Reply #16 on: May 01, 2010, 02:33:37 pm »
please check out the nativeparser.cpp file. in about line 1656
Code
        if (tok.Length() != 0 || tokenType == pttSearchText)

but in my above patch , it is
Code
if (!tok.IsEmpty() || (tokenType == pttSearchText && components.size() != 0))


if you apply the patch I provided in this thread.http://forums.codeblocks.org/index.php/topic,12096.msg82256.html#msg82256

when you type "(" , you will get what I mean.

I apply the patch, and test it.
I can confirm this.