This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
- Create C project: math.c -------------------------------- #include <math.h> int main() { return(0); } -------------------------------- - Go to main function - Type "cos" and press Ctrl-space ==> Code completion list contains: double cos(double __x) double cosh(double __x) Should be: double cos(double __x) float cosf(float __x) double cosh(double __x) float coshf(float __x) long double coshl(long double __x) long double cosl(long double __x)
not repeatable
I can reproduce on Fedora Core 3 and SunOS(sparc) 5.9 It is platform or compiler specific bug.
Platform independent test case: ---------------------fedora.h------------------------------- #define __THROW #define __CONCAT(x,y) x ## y #define __MATHCALL(function,suffix, args) \ __MATHDECL (_Mdouble_,function,suffix, args) #define __MATHDECL(type, function,suffix, args) \ __MATHDECL_1(type, function,suffix, args); \ __MATHDECL_1(type, __CONCAT(__,function),suffix, args) #define __MATHCALLX(function,suffix, args, attrib) \ __MATHDECLX (_Mdouble_,function,suffix, args, attrib) #define __MATHDECLX(type, function,suffix, args, attrib) \ __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \ __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) #define __MATHDECL_1(type, function,suffix, args) \ extern type __MATH_PRECNAME(function,suffix) args __THROW #define __MATH_PRECNAME(name,r) __CONCAT(name,r) ---------------------fedora_math.h------------------------------- __MATHCALL (tan,, (_Mdouble_ __x)); ---------------------fedora.cc------------------------------- #include "fedora.h" #define _Mdouble_ double #include "fedora_math.h" #undef _Mdouble_ #define _Mfloat_ float #define _Mdouble_ _Mfloat_ #include "fedora_math.h" void fedora(){ tan//<--CTRL+SPACE completion list should contain two methods "tan()". } ---------------------------------------------------------------
Code completion shows only functions available on the current platform. This is correct.
No. Problem is not fixed.
consider for the next release due to lack of resources
In general it's include with different macros. *** This bug has been marked as a duplicate of bug 159229 ***