Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
There is a patch available out there somewhere, but I can't find it on the web, so I will include it below in READMORE tags.
--- Curses-1.06/Curses.c.orig   Tue Jul 30 02:42:30 2002
+++ Curses-1.06/Curses.c        Tue Jul 30 03:09:25 2002
@@ -272,7 +272,7 @@
 SV *sv;
 int argnum;
 {
-    if (Perl_sv_isa(sv, "Curses::Window")) {
+    if (sv_isa( sv, "Curses::Window")) {
       WINDOW *ret = (WINDOW *)SvIV((SV*)SvRV(sv));
       return ret;
     }




--- Curses-1.06/CursesFun.c.orig        Tue Jul 30 04:04:30 2002
+++ Curses-1.06/CursesFun.c     Tue Jul 30 07:23:06 2002
@@ -1276,8 +1276,8 @@
     c_exactargs("newterm", items, 3);
     {
        char *  type    = ST(0) != &PL_sv_undef ? (char *)SvPV(ST(0),PL_na) : NU
LL;
-       FILE *  outfd   = IoIFP(sv_2io(ST(1)));
-       FILE *  infd    = IoIFP(sv_2io(ST(2)));
+       FILE *  outfd   = PerlIO_findFILE(IoIFP(sv_2io(ST(1))));
+       FILE *  infd    = PerlIO_findFILE(IoIFP(sv_2io(ST(2))));
        SCREEN *        ret     = newterm(type, outfd, infd);

        ST(0) = sv_newmortal();
@@ -3450,7 +3450,7 @@
     c_exactargs("putwin", items, 2);
     {
        WINDOW *win     = c_sv2window(ST(0), 0);
-       FILE *  filep   = IoIFP(sv_2io(ST(1)));
+       FILE *  filep   = PerlIO_findFILE(IoIFP(sv_2io(ST(1))));
        int     ret     = putwin(win, filep);

        ST(0) = sv_newmortal();
@@ -3469,7 +3469,7 @@
 #ifdef C_GETWIN
     c_exactargs("getwin", items, 1);
     {
-       FILE *  filep   = IoIFP(sv_2io(ST(0)));
+       FILE *  filep   = PerlIO_findFILE(IoIFP(sv_2io(ST(0))));
        WINDOW *        ret     = getwin(filep);

        ST(0) = sv_newmortal();

In reply to Re: Red Hat 9 --- Curses.pm installation woes. by Paladin
in thread Red Hat 9 --- Curses.pm installation woes. by blue_cowdawg

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-16 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found