[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GLOBAL does not index C inline function
From: |
Shigio YAMAGUCHI |
Subject: |
Re: GLOBAL does not index C inline function |
Date: |
Tue, 11 Nov 2008 15:15:41 +0900 |
On Mon, 10 Nov 2008 09:50:53 +0100
"Per Nordlow" <address@hidden> wrote:
Hi,
> Example function that doesn't get added to database (yet)
>
> static inline char *
> memdup(const char *s, size_t n)
> {
> char * t = (char*)malloc(n);
> memcpy(t, s, n);
> return t;
> }
>
> I have tested without the static keyword and with __inline__ instead but it
> makes no difference.
It does not occur in my environment.
$ cat test.c
static inline char *
memdup(const char *s, size_t n)
{
char * t = (char*)malloc(n);
memcpy(t, s, n);
return t;
}
$ gtags
$ global -x '.*'
memdup 2 test.c memdup(const char *s, size_t n)
$ _
Does not something others cause it?
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3