Here's my output:
cl -nologo -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -I./i nclu de -Foio/io.obj -c io/io.c io.c io\io.c(323) : warning C4033: 'PIO_close' must return a value c:\perl6\parrot\io\io.c(329) : warning C4715: 'PIO_close' : not all control path s return a value cl -nologo -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -I./i nclu de -Foio/io_os.obj -c io/io_os.c io_os.c io\io_os.c(127) : error C2065: 'F_GETFL' : undeclared identifier NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. That one error is the only real problem. If I change your #if 1 to #if 0 then it compiles fine. If you tell me what you're trying to do, I might be able to figure out the Win32 way. Jason. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 01, 2002 3:06 PM Subject: ParrotIO : Please test this [PATCH] for breakage > All who have time, specifically Win32, please test this > patch for compilation. I currently don't have a Win32 > environment to test with. Anyone with non-Linux please test. > > What this patch does: > > -Implements initial IO stack framework (pushing/popping layers) > -Implements an initial "layer" for the stack, the layer being > a low level OS layer and pops it on at interp initialization. > -Implements the initial "entry layer" in io.c > -Implements the standard IO streams (STDIN, STDOUT, STDERR) in > very simple form as Parrot IO PMCs (not stdio FILE * wrappers). > See io.h (pio_stdin, etc.) > -Adds 4 rudimentary calls to core.ops to test with > open, close, print, puts > puts() will print through ParrotIO.STDOUT instead of STDIO.STDOUT > > Note, I'm concentrating primarily on design right now, not > completeness, there are a lot of "calls" to be added to the > layer API. Once we like the design we will complete the OS > layer and start working on a buffered layer, filters, async > stuff as well as other layers, etc. > > I still haven't discussed with anyone whether UTF stuff > makes sense as a layer or filter. It can be implemented > as either/or. > > Files modified: > include/parrot/io.h > include/parrot/pmc.h > core.ops > MANIFEST > > Files added: > io/ > io/io.c > io/io_os.c > > -Melvin >