Bug 60763

Summary: Problem reporter errors on C function pointer declarations
Product: [Applications] kdevelop Reporter: Jon Smirl <jonsmirl>
Component: Problem reporterAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jon Smirl 2003-07-04 21:18:35 UTC
Version:           CVS (using KDE KDE 3.1)
Installed from:    RedHat RPMs

I get a problem reporter error on the line with *emit. But I don't get one on *check_tex_sizes. The typedefs are coming from an include file that I'm not sure the problem reporter knows how to find.

static struct {
   void                (*emit)( GLcontext *, GLuint, GLuint, void *, GLuint );
   interp_func		interp;
   copy_pv_func	        copy_pv;
   GLboolean           (*check_tex_sizes)( GLcontext *ctx );
   GLuint               vertex_size;
   GLuint               vertex_stride_shift;
   GLuint               vertex_format;
} setup_tab[R200_MAX_SETUP];

This may also be related to only declaring types without variable names.
Comment 1 Amilcar do Carmo Lucas 2003-07-04 22:29:02 UTC
'emit' is considered as keyword 
 
Comment 2 Jon Smirl 2003-07-04 22:43:29 UTC
This is in C code, emit is not a keywork in C.
Comment 3 Jon Smirl 2003-07-05 00:07:14 UTC
This is in C code, emit is not a keywork in C. 
Comment 4 Thiago Macieira 2003-07-05 01:20:46 UTC
Indeed, it no keyword at all. But it's reserved by the Qt headers for signal emission. 
 
By the way, the developer marked this as WONTFIX, so, unless you're willing to provide a fix 
yourself, you should let it stay. 
Comment 5 Jens Dagerbo 2006-04-18 22:17:18 UTC
Dupe

*** This bug has been marked as a duplicate of 57156 ***