Front page | perl.perl5.porters |
Postings from October 2000
From: Richard Proctor
October 31, 2000 10:28
Message ID: Marcel-1.46-1031165056-0b0Rr9i@waveney.demon.co.uk
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)));
by Richard Proctor