Algorithm-Diff-XS
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
293031323334353637383940414243444546474849
# releases once we can make sure it won't clash with custom
# Module::Install extensions.
$VERSION
=
'0.67'
;
}
# Whether or not inc::Module::Install is actually loaded, the
# $INC{inc/Module/Install.pm} is what will still get set as long as
# the caller loaded module this in the documented manner.
# If not set, the caller may NOT have loaded the bundled version, and thus
# they may not have a MI version that works with the Makefile.PL. This would
# result in false errors or unexpected behaviour. And we don't want that.
my
$file
=
join
(
'/'
,
'inc'
,
split
/::/, __PACKAGE__ ) .
'.pm'
;
unless
(
$INC
{
$file
} ) {
die
<<
"END_DIE"
;
Please invoke ${\__PACKAGE__}
with
:
not:
use
${\__PACKAGE__};
323334353637383940414243444546474849505152
--help show short help
--patch=file
write
one patch file
with
changes
--copy=suffix
write
changed copies
with
suffix
--compat-version=version provide compatibility
with
Perl version
--cplusplus
accept
C++ comments
--quiet don't output anything except fatal errors
--nodiag don't show diagnostics
--nohints don't show hints
--nochanges don't suggest changes
--nofilter don't filter input files
--list-provided list provided API
--list-unsupported list unsupported API
--api-info=name show Perl API portability information
=head1 COMPATIBILITY
9293949596979899100101102103104105106107108109110111112=head2 --cplusplus
Usually, F<ppport.h> will detect C++ style comments and
replace them with C style comments for portability reasons.
Using this option instructs F<ppport.h> to leave C++
comments untouched.
=head2 --quiet
Be quiet. Don't print anything except fatal errors.
=head2 --nodiag
Don't output any diagnostic messages. Only portability
alerts will be printed.
=head2 --nohints
Don't output any hints. Hints often contain useful portability
notes.
608609610611612613614615616617618619620621622623624625626627628PUSHi|||
PUSHmortal|5.009002||p
PUSHn|||
PUSHp|||
PUSHs|||
PUSHu|5.004000||p
PUTBACK|||
PerlIO_clearerr||5.007003|
PerlIO_close||5.007003|
PerlIO_eof||5.007003|
PerlIO_error||5.007003|
PerlIO_fileno||5.007003|
PerlIO_fill||5.007003|
PerlIO_flush||5.007003|
PerlIO_get_base||5.007003|
PerlIO_get_bufsiz||5.007003|
PerlIO_get_cnt||5.007003|
PerlIO_get_ptr||5.007003|
PerlIO_read||5.007003|
PerlIO_seek||5.007003|
PerlIO_set_cnt||5.007003|
157315741575157615771578157915801581158215831584158515861587158815891590159115921593ptr_table_clear|||
ptr_table_fetch|||
ptr_table_free|||
ptr_table_new|||
ptr_table_split|||
ptr_table_store|||
push_scope|||
put_byte|||
pv_display||5.006000|
pv_uni_display||5.007003|
qerror|||
re_croak2|||
re_dup|||
re_intuit_start||5.006000|
re_intuit_string||5.006000|
realloc||5.007002|n
reentrant_free|||
reentrant_init|||
reentrant_retry|||vn
reentrant_size|||
refkids|||
198119821983198419851986198719881989199019911992199319941995199619971998199920002001vwarner||5.006000|
vwarn||5.006000|
wait4pid|||
warn_nocontext|||vn
warner_nocontext|||vn
warner||5.006000|v
warn
|||v
watch|||
whichsig|||
write_to_stderr|||
yyerror|||
yylex|||
yyparse|||
yywarn|||
);
if
(
exists
$opt
{
'list-unsupported'
}) {
my
$f
;
for
$f
(
sort
{
lc
$a
cmp
lc
$b
}
keys
%API
) {
next
unless
$API
{
$f
}{todo};
"$f "
,
'.'
x(40-
length
(
$f
)),
" "
, format_version(
$API
{
$f
}{todo}),
"\n"
;
237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415
if
(
$cppc
) {
my
$s
=
$cppc
!= 1 ?
's'
:
''
;
warning(
"Uses $cppc C++ style comment$s, which is not portable"
);
}
if
(
$file
{changes}) {
if
(
exists
$opt
{copy}) {
my
$newfile
=
"$filename$opt{copy}"
;
if
(-e
$newfile
) {
error(
"'$newfile' already exists, refusing to write copy of '$filename'"
);
}
else
{
local
*F
;
if
(
open
F,
">$newfile"
) {
info(
"Writing copy of '$filename' with changes to '$newfile'"
);
F
$c
;
close
F;
}
else
{
error(
"Cannot open '$newfile' for writing: $!"
);
}
}
}
elsif
(
exists
$opt
{patch} ||
$opt
{changes}) {
if
(
exists
$opt
{patch}) {
unless
(
$patch_opened
) {
if
(
open
PATCH,
">$opt{patch}"
) {
$patch_opened
= 1;
}
else
{
error(
"Cannot open '$opt{patch}' for writing: $!"
);
delete
$opt
{patch};
$opt
{changes} = 1;
goto
fallback;
}
}
mydiff(\
*PATCH
,
$filename
,
$c
);
}
else
{
fallback:
info(
"Suggested changes:"
);
245124522453245424552456245724582459246024612462246324642465246624672468246924702471
if
(!
defined
$diff
) {
$diff
= run_diff(
'diff -u'
,
$file
,
$str
);
}
if
(!
defined
$diff
) {
$diff
= run_diff(
'diff'
,
$file
,
$str
);
}
if
(!
defined
$diff
) {
error(
"Cannot generate a diff. Please install Text::Diff or use --copy."
);
return
;
}
F
$diff
;
}
sub
run_diff
{
my
(
$prog
,
$file
,
$str
) =
@_
;
248724882489249024912492249324942495249624972498249925002501250225032504250525062507
$diff
.=
$_
;
}
close
F;
unlink
$tmp
;
return
$diff
;
}
unlink
$tmp
;
}
else
{
error(
"Cannot open '$tmp' for writing: $!"
);
}
return
undef
;
}
sub
can_use
{
eval
"use @_;"
;
return
$@ eq
''
;
}
257825792580258125822583258425852586258725882589259025912592259325942595259625972598
$opt
{quiet} and
return
;
$opt
{diag} and
@_
,
"\n"
;
}
sub
warning
{
$opt
{quiet} and
return
;
"*** "
,
@_
,
"\n"
;
}
sub
error
{
"*** ERROR: "
,
@_
,
"\n"
;
}
my
%given_hints
;
sub
hint
{
$opt
{quiet} and
return
;
$opt
{hints} or
return
;
my
$func
=
shift
;
26512652265326542655265626572658265926602661266226632664266526662667266826692670
/* Replace: 0 */
# endif
#endif
#define PERL_BCDVERSION ((PERL_REVISION * 0x1000000L) + (PERL_VERSION * 0x1000L) + PERL_SUBVERSION)
(or greater), but who knows.
*/
#if PERL_REVISION != 5
# error ppport.h only works with Perl version 5
#endif /* PERL_REVISION != 5 */
#ifdef I_LIMITS
# include <limits.h>
#endif
#ifndef PERL_UCHAR_MIN
# define PERL_UCHAR_MIN ((unsigned char)0)
#endif
3378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426# define eval_sv perl_eval_sv
#endif
/* Replace: 0 */
/* Replace perl_eval_pv
with
eval_pv */
/* eval_pv depends on eval_sv */
#ifndef eval_pv
#if defined(NEED_eval_pv)
static SV* DPPP_(my_eval_pv)(char
*p
, I32 croak_on_error);
static
#else
extern SV* DPPP_(my_eval_pv)(char
*p
, I32 croak_on_error);
#endif
#ifdef eval_pv
# undef eval_pv
#endif
#define eval_pv(a,b) DPPP_(my_eval_pv)(aTHX_ a,b)
#define Perl_eval_pv DPPP_(my_eval_pv)
#if defined(NEED_eval_pv) || defined(NEED_eval_pv_GLOBAL)
SV*
DPPP_(my_eval_pv)(char
*p
, I32 croak_on_error)
{
dSP;
SV* sv = newSVpv(p, 0);
PUSHMARK(sp);
eval_sv(sv, G_SCALAR);
SvREFCNT_dec(sv);
SPAGAIN;
sv = POPs;
PUTBACK;
if
(croak_on_error && SvTRUE(GvSV(errgv)))
croak(SvPVx(GvSV(errgv), na));
return
sv;
}
#endif
#endif
#ifndef newRV_inc
# define newRV_inc(sv) newRV(sv) /* Replace */
#endif
( run in 0.844 second using v1.01-cache-2.11-cpan-95122f20152 )