bug-global
[Top][All Lists]
Advanced

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

Re: function symbol surround by ifndef else endif will not be find by gn


From: Shigio YAMAGUCHI
Subject: Re: function symbol surround by ifndef else endif will not be find by gnu global
Date: Fri, 22 Oct 2021 11:17:57 +0900

Hello,
> the attached file is test.c which expose  the bug
> I can not find the symbol testfun when use the latest version of gnu 
> global6.6.7

It is a bug.
The current parser cannot recognize the split function definition.
I will this bug to the bugs list.

Here is a workaround. It works correctly with the following changes:

[current]
#ifndef _SOMETAG
static inline int testfun
#else
static int testfun
#endif
        (
        )
|
v
[changed]
#ifndef _SOMETAG
static inline int testfun
        (
        )
#else
static int testfun
        (
        )
#endif

Thank you for the report.

Regards,
Shigio
-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



reply via email to

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