The cause of the problem is the line 299.

299: _ET_DECLARE_CHECKED(Uint,header_arity,Eterm)

The C parser in GLOBAL cannot treat a pattern like 'XXXX(YYYY)'
in outside of a function well, because it seems to be a function definition.

Work around is here. Please also refer to the Q2 in 'FAQ' file in GLOBAL
package.

$ echo _ET_DECLARE_CHECKED >.notfunction
$ gtags
$ global -f erl_term.h
...
is_arity_value    311 erl_term.h       #define is_arity_value(x)
 (((x) & _TAG_HEADER_MASK) == _TAG_HEADER_ARITYVAL)
is_sane_arity_value  312 erl_term.h       #define is_sane_arity_value(x)
     ((((x) & _TAG_HEADER_MASK) == _TAG_HEADER_ARITYVAL) && \



2014-02-24 17:46 GMT+09:00 Leo Liu <[email protected]>:

> On 2014-02-24 16:29 +0800, Shigio YAMAGUCHI wrote:
> > Hi,
> > It seems odd.
> > If possible, would you please post the file in this list?
> >
> > The reason is like follows:
> > [http://www.gnu.org/software/global/maillist.html]
>
>
>
> Leo
>
>


-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to