[Top][All Lists]

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

[patch #3498] Fix some parameter names in C function definitions

From: Patrick Middleton
Subject: [patch #3498] Fix some parameter names in C function definitions
Date: Tue, 02 Nov 2004 10:03:39 -0500
User-agent: Mozilla/4.5 (compatible; OmniWeb/4.2.1-v435.9; Mac_PowerPC)

This mail is an automated notification from the patch tracker
 of the project: GNUstep.

[patch #3498] Full Item Snapshot:

URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3498>
Project: GNUstep
Submitted by: Patrick Middleton
On: Tue 11/02/2004 at 14:57

Category:  AppKit
Priority:  5 - Normal
Resolution:  None
Privacy:  Public
Assigned to:  None
Originator Email:  
Status:  Open

Summary:  Fix some parameter names in C function definitions

Original Submission:  Because of what appears to be a known bug/misfeature in 
the ObjC compiler, type information associated with parameter names in function 
definitions is remembered and causes compilation errors when the same parameter 
names are used with different type in ObjC method definitions.

Parameter names are optional in C function definitions, but not in inline 
function declarations or in in ObjC method definitions, so I chose to adopt 
lengthy clumsy descriptive names implying type information.  This probably does 
not conform to GNU coding recommendations and is going to look hideous if 
processed by eg 'headerdoc'.  But it compiles.

I was using the MinGW compiler etc provided by the recent base-1.10.0 installer 
on WinXP SP1.

(There is a small amount of similar trouble elsewhere; one of the base-1.10.0 
objc headers contains one function for which a parameter name 'm' has not been 
removed, and this causes problems when compiling NSPortMessage.[hm].)

File Attachments

Date: Tue 11/02/2004 at 14:57  Name: AppKit-function-definitions.patch  Size: 
78.56KB   By: patrickx
Patch against gnustep-gui-0.9.4

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

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