Wrap the macro arguments for ck_proto in ().
[p5sagit/p5-mst-13.2.git] / ext / Devel / PPPort / apicheck_c.PL
CommitLineData
adfe19db 1################################################################################
2#
3# apicheck_c.PL -- generate apicheck.c
4#
5################################################################################
6#
ba120f6f 7# $Revision: 8 $
adfe19db 8# $Author: mhx $
ba120f6f 9# $Date: 2006/05/28 19:33:09 +0200 $
adfe19db 10#
11################################################################################
12#
0d0f8426 13# Version 3.x, Copyright (C) 2004-2006, Marcus Holland-Moritz.
adfe19db 14# Version 2.x, Copyright (C) 2001, Paul Marquess.
15# Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
16#
17# This program is free software; you can redistribute it and/or
18# modify it under the same terms as Perl itself.
19#
20################################################################################
21
0c96388f 22use strict;
23
24my $out = 'apicheck.c';
25my @api = map { /^--api=(\w+)$/ ? ($1) : () } @ARGV;
ba120f6f 26print "creating $out", (@api ? " (@api)" : ''), "\n";
0c96388f 27system $^X, 'parts/apicheck.pl', @api, $out
adfe19db 28 and die "couldn't create $out\n";
0c96388f 29