On Mon, 10 Nov 2008 09:50:53 +0100
"Per Nordlow" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global