develooper Front page | perl.perl5.porters | Postings from October 2000

fcrypt

Thread Next
From:
Richard Proctor
Date:
October 31, 2000 10:28
Subject:
fcrypt
Message ID:
Marcel-1.46-1031165056-0b0Rr9i@waveney.demon.co.uk
Hi,

I am slowly trying to get the Riscos perl port to compile (Yes, I have been
taking to Nicholas Clark before anyone asks) as I want to move the Riscos
port closer to the main perl, and should be eventually taking over the Riscos
perl pumpkin from him. [Watch this space].

Amongst the problems I am having is the fcrypt procedure.

The Riscos port, uses "UnixLib" Which has fcrypt, and the HAS_CRYPT and
FCRYPT macros are properly defined.

The problem is that fcrypt is not prototyped anywhere.  Not being prottyped,
results in an assumption (wrongly) that it returns an integer rather than
a char*.  This results in compile time errors.

I have worked around this for now by a simple cast in pp.c, but wonder where
it should be prototyped, or should this cast cast be in the code? 

    sv_setpv(TARG, (char*) fcrypt(tmps, SvPV(right, n_a)));

Richard


-- 

Richard@waveney.org


Thread Next


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