www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - strchr() non-standard?

↑ ↓ ← "Matthew" <nowhere noaddress.co.us> writes:
I'm having trouble with DMC++ because string.h defines non-standard 
overloads of strchr() (and others).

Using -A then fails in STLport's cwchar

Is there a reason for the non-standard definitions? Is it safe to assume 
they will not be persist as is, so I can be confident of a DMC++-specific 
workaround?

Cheers

Matthew 
Apr 29 2006
↑ ↓ Walter Bright <newshound digitalmars.com> writes:
Matthew wrote:
 I'm having trouble with DMC++ because string.h defines non-standard 
 overloads of strchr() (and others).
 
 Using -A then fails in STLport's cwchar
 
 Is there a reason for the non-standard definitions? Is it safe to assume 
 they will not be persist as is, so I can be confident of a DMC++-specific 
 workaround?

For a workaround for now, just drop using -A.
May 01 2006
↑ ↓ → "Matthew" <nowhere noaddress.co.us> writes:
"Walter Bright" <newshound digitalmars.com> wrote in message 
news:e34iuh$1pdu$1 digitaldaemon.com...
 Matthew wrote:
 I'm having trouble with DMC++ because string.h defines non-standard 
 overloads of strchr() (and others).

 Using -A then fails in STLport's cwchar

 Is there a reason for the non-standard definitions? Is it safe to assume 
 they will not be persist as is, so I can be confident of a DMC++-specific 
 workaround?

For a workaround for now, just drop using -A.

The problem was when -A was not used; the STLport problem arises when -A was used. I've just worked around it by implementing an shwild_strchr() function, whose return type and calling convention I have total control of, for taking the address of.
May 01 2006