Re: QUESTION: obstack, size of new chunk?

2015-01-04 Thread Hans Aberg
On 3 Jan 2015, at 21:15, Sean Nakasone wrote: > > Hi, lib/obstack.c has a function, _obstack_newchunk(). > > there's a formula used to calculate a variable new_size > > new_size = (obj_size + length) + (obj_size >> 3) + h->alignment_mask + 100; > > i understand obj_size + length, but what's t

How to construct an abstract semantic tree with c/cpp file in bison? all i need is the function definition part

2015-01-04 Thread Guan Wanxian
I am using flex and bison to recognize the functions in C or CPP file and test whether each function is in good style (ie. The function body is no more than 120 lines). In my lexer.l file ,I return these tokens: [a-zA-Z_][a-zA-Z0-9_]* SAVE_TOKEN; return TIDENTIFIER; [0-9]+\.[0-9]*

Re: QUESTION: trying to speed up "make install"

2015-01-04 Thread Akim Demaille
> Le 3 nov. 2014 à 05:56, sean nakasone a écrit : > > Hi, everytime I run "make install", it does this... > > installing ast.gmo as /usr/local/share/locale/ast/LC_MESSAGES/bison-runtime.mo > installing da.gmo as /usr/local/share/locale/da/LC_MESSAGES/bison-runtime.mo > installing de.gmo as /usr

Re: QUESTION: trying to speed up "make install"

2015-01-04 Thread Sean Nakasone
thanks for your reply. make install is too slow for me since i was running it after many incremental changes. i've since been using make src/bison.exe; cp src/bison.exe /usr/local/bin which is working well for my incremental changes. Sent from my iPhone > On Jan 4, 2015, at 9:58 AM, A