RE: [PATCH] inline and win32 w/ msvc++

2002-02-19 Thread Hong Zhang
If the function is intended to be inlined, why we need prototype for it. The INLINE function should have immediate implementation, and not prototype. I will use the following macro to handle this. #if defined(__GNUC__) /* && __GNUC__ > nnn */ # define INLINE __inline__ #elif defined(_MSC_VER) /*

Re: [PATCH] inline and win32 w/ msvc++

2002-02-19 Thread Ritz Daniel
ve #define INLINE __inline? if yes, i have the same question: what vc++ are you using (version, standard/professional/enterprise)?? - Original Message - From: "Brent Dax" <[EMAIL PROTECTED]> To: "Ritz Daniel" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> S

RE: [PATCH] inline and win32 w/ msvc++

2002-02-18 Thread Brent Dax
Ritz Daniel: # w/o that extern in rx.h the msvc++ can't link and gcc does it # with or w/o... # Index: rx.h # === # RCS file: /cvs/public/parrot/include/parrot/rx.h,v # retrieving revision 1.11 # diff -u -r1.11 rx.h # --- rx.h 18

[PATCH] inline and win32 w/ msvc++

2002-02-18 Thread Ritz Daniel
this patch adds the inline definition for win32 with msvc++ - for ms compiler: inline is c++, __inline is ms exension for c - inline functions called from another source file don't work w/o extern w/o that extern in rx.h the msvc++ can't link and gcc does it with or w/o... josh's patch [josh-006