Re: [PATCH 1/2] gcc symbol database

2012-09-05 Thread Yunfeng ZHANG
What progress about my patch?

Re: [PATCH 1/2] gcc symbol database

2012-07-19 Thread Yunfeng ZHANG
Hi Dodji Seketeli: > This is what I was trying to tell you in my previous message, when I was > saying: > > > _cpp_pop_context is really the function that marks the end of a > > given macro expansion, especially when the predicate > > in_macro_expansion_p (introduced recently in trunk f

Re: [PATCH 1/2] gcc symbol database

2012-07-18 Thread Yunfeng ZHANG
To Dodji Seketeli: Thanks for you check my patch, I will release it again later. Yunfeng

Re: [PATCH 1/2] gcc symbol database

2012-07-17 Thread Yunfeng ZHANG
> It took me a couple of minutes to understand what you meant here, so > please let me re-phrase to make sure I got it. > > You are saying that the callback function of the cb_lex_token event is > set by the callback function of the macro_start_expand event. > > Is that correct? Yes. > And this m

Re: [PATCH 1/2] gcc symbol database

2012-07-17 Thread Yunfeng ZHANG
Please allow me to resend former sample: #define Z(a) a #define Y Z #define X(p) p + Y X(1)(2); The flow is: 1) `X' -- leader macro token by macro_start_expand. 2) `(', `1', `)' -- macro tokens, by cb_lex_token. 3) macro_end_arg. 4) `1', `+' -- macro replacement toke

Re: [PATCH 1/2] gcc symbol database

2012-07-16 Thread Yunfeng ZHANG
> But the "meaning" of the macro_end_arg event is really not clear to > ... > and so on. Let's see a sample: #define Z(a) a #define Y Z #define X(p) p + Y X(1)(2); With my solution, user get 1) `X' -- leader macro token by macro_start_expand. 2) `(', `1', `)', `(', `2'

Re: [PATCH 1/2] gcc symbol database

2012-06-27 Thread Yunfeng ZHANG
Hi Dodji Seketeli: Is it possible to gcc to accept libcpp.patch and plugin.patch? I recently rewrite my doc.txt which mainly add a new section , it's focused on pfile.context usage linking to macro. I think it's important to use cb_macro_start/end callbacks because most users only care about the

Re: [PATCH 1/2] gcc symbol database

2012-06-04 Thread Yunfeng ZHANG
To Dodji Seketeli: Thanks, I will republish my libcpp patch later. 2012/6/4 Dodji Seketeli : > Hello YunFeng, > > Thank you for taking the time to work on this.  I cannot accept or > deny your patches, but I thought I could maybe comment on some parts > of them. > > First, IMHO, some of the new pl

Re: [PATCH 2/2] gcc symbol database

2012-05-30 Thread Yunfeng ZHANG
Resend ChangeLog and two patches by attachment. Patches using `diff -upr' based on quilt internal data .pc/XX and original directory. ChangeLog Description: Binary data gcc.patch Description: Binary data libcpp.patch Description: Binary data

Re: [PATCH 2/2] gcc symbol database

2012-05-30 Thread Yunfeng ZHANG
Resend ChangeLog and two patches by attachment. ChangeLog Description: Binary data gcc.patch Description: Binary data libcpp.patch Description: Binary data

[PATCH 2/2] gcc symbol database

2012-05-28 Thread Yunfeng ZHANG
diff -upr .pc/symdb_enhance_plugin/gcc/c-family/c-common.h gcc/c-family/c-common.h --- .pc/symdb_enhance_plugin/gcc/c-family/c-common.h2011-12-21 04:44:13.0 +0800 +++ gcc/c-family/c-common.h2012-05-25 14:56:56.776263281 +0800 @@ -25,6 +25,7 @@ along with GCC; see the file COPYING3.