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++ - tell is a macro, why?

↑ ↓ ← "Johnny Willemsen" <jwillemsen remedy.nl> writes:
Hi,

We started with some test porting of ACE/TAO (see www.cs.wustl.edu/~schmidt 
and www.theaceorb.nl) to the DMC compiler. We have in a class a method tell, 
now we found that DMC defnes tell as macro, resulting in some problems. Any 
option that tell is not defined in the future as macro by DMC?

Regards,

Johnny Willemsen

From io.h

#define _chsize chsize
#define tell( handle ) _lseek( handle, 0L, SEEK_CUR )
#define _tell tell
Sep 22 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
For now, I suggest just adding a:
    #undef tell
in the file that has the problem with tell.

"Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
news:cisljp$2u6s$1 digitaldaemon.com...
 Hi,

 We started with some test porting of ACE/TAO (see

 and www.theaceorb.nl) to the DMC compiler. We have in a class a method

 now we found that DMC defnes tell as macro, resulting in some problems.

 option that tell is not defined in the future as macro by DMC?

 Regards,

 Johnny Willemsen

 From io.h

 #define _chsize chsize
 #define tell( handle ) _lseek( handle, 0L, SEEK_CUR )
 #define _tell tell

Sep 22 2004
↑ ↓ "Johnny Willemsen" <jwillemsen remedy.nl> writes:
Hi,

Yes, I can do that, but what about the future, will tell then not be defined 
as a macro?

Johnny

"Walter" <newshound digitalmars.com> wrote in message 
news:cit2bd$32q$1 digitaldaemon.com...
 For now, I suggest just adding a:
    #undef tell
 in the file that has the problem with tell.

 "Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
 news:cisljp$2u6s$1 digitaldaemon.com...
 Hi,

 We started with some test porting of ACE/TAO (see

 and www.theaceorb.nl) to the DMC compiler. We have in a class a method

 now we found that DMC defnes tell as macro, resulting in some problems.

 option that tell is not defined in the future as macro by DMC?

 Regards,

 Johnny Willemsen

 From io.h

 #define _chsize chsize
 #define tell( handle ) _lseek( handle, 0L, SEEK_CUR )
 #define _tell tell


Sep 22 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
It'll probably stay as a macro.

"Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
news:citqsf$hp9$1 digitaldaemon.com...
 Hi,

 Yes, I can do that, but what about the future, will tell then not be

 as a macro?

 Johnny

 "Walter" <newshound digitalmars.com> wrote in message
 news:cit2bd$32q$1 digitaldaemon.com...
 For now, I suggest just adding a:
    #undef tell
 in the file that has the problem with tell.

 "Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
 news:cisljp$2u6s$1 digitaldaemon.com...
 Hi,

 We started with some test porting of ACE/TAO (see

 and www.theaceorb.nl) to the DMC compiler. We have in a class a method

 now we found that DMC defnes tell as macro, resulting in some problems.

 option that tell is not defined in the future as macro by DMC?

 Regards,

 Johnny Willemsen

 From io.h

 #define _chsize chsize
 #define tell( handle ) _lseek( handle, 0L, SEEK_CUR )
 #define _tell tell



Sep 30 2004
↑ ↓ "Johnny Willemsen" <jwillemsen remedy.nl> writes:
Hi,

 It'll probably stay as a macro.

I would regret that, ACE/TAO is very portable and I don't like hacking in the header files just for DMC Johnny
 "Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
 news:citqsf$hp9$1 digitaldaemon.com...
 Hi,

 Yes, I can do that, but what about the future, will tell then not be

 as a macro?

 Johnny

 "Walter" <newshound digitalmars.com> wrote in message
 news:cit2bd$32q$1 digitaldaemon.com...
 For now, I suggest just adding a:
    #undef tell
 in the file that has the problem with tell.

 "Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
 news:cisljp$2u6s$1 digitaldaemon.com...
 Hi,

 We started with some test porting of ACE/TAO (see

 and www.theaceorb.nl) to the DMC compiler. We have in a class a method

 now we found that DMC defnes tell as macro, resulting in some 
 problems.

 option that tell is not defined in the future as macro by DMC?

 Regards,

 Johnny Willemsen

 From io.h

 #define _chsize chsize
 #define tell( handle ) _lseek( handle, 0L, SEEK_CUR )
 #define _tell tell




Oct 05 2004
↑ ↓ → "Walter" <newshound digitalmars.com> writes:
I understand your concern about this.

"Johnny Willemsen" <jwillemsen remedy.nl> wrote in message
news:cjtkqj$2lvi$1 digitaldaemon.com...
 Hi,

 It'll probably stay as a macro.

I would regret that, ACE/TAO is very portable and I don't like hacking in the header files just for DMC Johnny

Oct 05 2004