[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some #define .... in C not recognised as definition

From: Shigio YAMAGUCHI
Subject: Re: Some #define .... in C not recognised as definition
Date: Mon, 24 Feb 2014 17:29:07 +0900

It seems odd.
If possible, would you please post the file in this list?

The reason is like follows:
> Since mails in this list are archived and may be referred
> to later, please complete information in your mail. If
> possible, please avoid description which refers to external
> sites, because it brings lack of information in the future.

I appreciate cooperation.

2014-02-24 15:56 GMT+09:00 Leo Liu <address@hidden>:
For example

        #define is_arity_value(x)       (((x) & _TAG_HEADER_MASK) == _TAG_HEADER_ARITYVAL)

is_arity_value is not recognised as definition but

but the next line:

        #define is_sane_arity_value(x)  ((((x) & _TAG_HEADER_MASK) == _TAG_HEADER_ARITYVAL) && \
                                         (((x) >> _HEADER_ARITY_OFFS) <= MAX_ARITYVAL))

is_sane_arity_value is recognised as definition.

To demonstrate:

$ global -x "is_arity_value"
[no output]
$ global -x "is_sane_arity_value"
is_sane_arity_value  314 erl_term.h       #define is_sane_arity_value(x)        ((((x) & _TAG_HEADER_MASK) == _TAG_HEADER_ARITYVAL) && \


[using global from CVS]

Bug-global mailing list

Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]