this is a quick fix for CPrederef.pm to make to generated code compile with the MS
compiler.
fixes:
- ms compiler allows inline only for c++, for c there's __inline
- ms header files knows nothing about ssize_t
may be this should go into parrot.h??
Index: CPrederef.pm
===
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
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
well, pdump is broken...the patch to fix it...
Index: pdump.c
===
RCS file: /cvs/public/parrot/pdump.c,v
retrieving revision 1.10
diff -u -r1.10 pdump.c
--- pdump.c 18 Feb 2002 08:26:03 - 1.10
+++ pdump.c 20 Feb 2002 21:52:49 -0
this patch adds support for the freely availabe borland c++ 5.5.1 compiler
depends on:
- josh's patch to remove ssize_t from CPrederef.pm
- working borland compiler (compiler must know where to find headers and libs)
- Perl's Config.pm modified to use cc='bcc32.exe' not of cc='cl.exe'
- a workin
fixes most of these warnings (cc: bcc32):
- XXX is assigned a value that is never used in function YYY
- Unreachable code in function XXX
Index: memory.c
===
RCS file: /cvs/public/parrot/memory.c,v
retrieving revision 1.23
diff -u -
subjects says all...patch too...
Index: include/parrot/trace.h
===
RCS file: /cvs/public/parrot/include/parrot/trace.h,v
retrieving revision 1.6
diff -u -r1.6 trace.h
--- include/parrot/trace.h 4 Mar 2002 03:38:23 - 1.6
+++ incl
with borland compiler:
All tests successful, 20 subtests skipped.
Files=19, Tests=313, 294 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)
with the redmond compiler:
All tests successful, 20 subtests skipped.
Files=19, Tests=313, 358 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)
parrot_dlclose() uses dlclose() on unix, FreeLibrary() on windoze.
dlclose returns 0 on success, FreeLibrary returns 0 on failure...fix included
Index: platforms/win32.c
===
RCS file: /cvs/public/parrot/platforms/win32.c,v
retrievin