bugmake - Bugs: bug #13477, Function prototype and const...

 
 

bug #13477: Function prototype and const defined incorrectly in glob.h

Submitted by:  Jerker Bäck <jerker_back>
Submitted on:  Mon 20 Jun 2005 03:50:22 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: FixedPrivacy: Public
Assigned to: Paul D. Smith <psmith>Open/Closed: Closed
Component Version: 4.0Operating System: MS Windows
Fixed Release: 3.81Triage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 25 Jun 2005 09:42:00 PM UTC, comment #2:

Fixed these issues with glob.h and fnmatch.h. Will check in shortly.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Mon 20 Jun 2005 05:32:51 AM UTC, comment #1:

The same issue in fnmatch.h(27)
# if !defined _GLIBC_ || !defined __P

fnmatch.h(40)
Microsoft/intel issue:
_STDC_ is FALSE with ANSI extensions

# if (defined _STDC_ && _STDC_) || defined __cplusplus

change to
# if (defined _STDC_ && _STDC_) || defined __cplusplus || defined WINDOWS32

or

#if defined(HAVE_ANSI_COMPILER) || defined __cplusplus

Jerker Bäck <jerker_back>
Mon 20 Jun 2005 03:50:22 AM UTC, original submission:

glob.h line 27
__P,__PMT and __const will not be correctly defined
since
__P is already defined in hash.h
due to:

...
# if !defined _GLIBC_ || !defined __P
# undef __P
# undef __PMT
# define __P(protos) protos
# define __PMT(protos) protos
# if !defined _GNUC_ || _GNUC_ < 2
...
# endif
# define __ptr_t void *
#else /* Not C++ or ANSI C. */
# undef __P
# undef __PMT
# define __P(protos) ()
# define __PMT(protos) ()
# undef __const
# define __const
# define __ptr_t char *
#endif /* C++ or ANSI C. */

=> we will always have the second definition

Solution:
change line 27 to
#if !defined _GLIBC_

regards Jerker

Jerker Bäck <jerker_back>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 01 Apr 2006 07:16:25 AM UTCpsmithFixed Release4.0=>3.81
Sat 25 Jun 2005 09:42:00 PM UTCpsmithStatusNone=>Fixed
  Assigned toNone=>psmith
  Open/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.0

Back to the top


Powered by Savane 3.1-cleanup1