develooper Front page | perl.perl5.porters | Postings from March 2001

[PATCH] USE_PERLIO && USE_SFIO

Thread Previous
From:
Chris Nandor
Date:
March 10, 2001 11:42
Subject:
[PATCH] USE_PERLIO && USE_SFIO
Message ID:
p05010400b6d02ea0f014@[10.0.1.177]
OK, I am not 100 percent sure this is the right thing to do, I just know there are still problems with udnefined symbols in makedef.pl (sorry, Jarkko :-).  What I do know is that 25 symbols are defined in perlio.c only if USE_PERLIO is defined and USE_SFIO is not defined; so my guess is they should be skipped in makedef.pl.

The other idea is that they should be defined in perlio.c or elsewhere -- they are not referenced from anywhere outside perlio.c/h, except for Encode.xs -- so I don't know.  Maybe Encode.xs should have #if defined(USE_PERLIO) && !defined(USE_SFIO) instead of #ifdef USE_PERLIO?

Anyway, I added all 25 symbols below the comment "# Skip the PerlIO New Generation symbols." to the portion just above, to be skipped where USE_SFIO is defined.  Those 25 symbols gave me linking errors until I included them here, and then bleadperl built just fine for me (I didn't get around to building Encode, though).


--- makedef.pl.orig	Thu Mar  8 00:54:27 2001
+++ makedef.pl	Sat Mar 10 13:41:16 2001
@@ -587,6 +587,32 @@
 			 PerlIO_ungetc
 			 PerlIO_vprintf
 			 PerlIO_write
+
+			 PerlIOBase_clearerr
+			 PerlIOBase_close
+			 PerlIOBase_eof
+			 PerlIOBase_error
+			 PerlIOBase_fileno
+			 PerlIOBuf_bufsiz
+			 PerlIOBuf_fdopen
+			 PerlIOBuf_fill
+			 PerlIOBuf_flush
+			 PerlIOBuf_get_cnt
+			 PerlIOBuf_get_ptr
+			 PerlIOBuf_open
+			 PerlIOBuf_pushed
+			 PerlIOBuf_read
+			 PerlIOBuf_reopen
+			 PerlIOBuf_seek
+			 PerlIOBuf_set_ptrcnt
+			 PerlIOBuf_setlinebuf
+			 PerlIOBuf_tell
+			 PerlIOBuf_unread
+			 PerlIOBuf_write
+			 PerlIO_define_layer
+			 PerlIO_pending
+			 PerlIO_push
+			 PerlIO_unread
 			 )];
     }
 } else {

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About