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

 
 

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

Submitter:  Jerker Bäck <jerker_back>
Submitted:  Mon 20 Jun 2005 03:50:22 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.0 Operating System:  MS Windows
Fixed Release:  3.81 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-01 psmith Fixed Release4.0 3.81
2005-06-25 psmith StatusNone Fixed
    Assigned toNone psmith
    Open/ClosedOpen Closed
    Fixed ReleaseNone 4.0

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code