From 7f1be197b379d10925884de5897372b0bdcbff6d Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Sun, 27 Oct 2002 06:02:21 +0000 Subject: [PATCH] embed.pl doc. (embed.pl reorganization for doc headers) Wed, 23 Oct 2002; Jarkko Hietaniemi With some additional modifications p4raw-id: //depot/perl@18067 --- embed.pl | 129 ++++++++++++++++++++------------------------------------------- 1 file changed, 41 insertions(+), 88 deletions(-) diff --git a/embed.pl b/embed.pl index 74abb17..548294a 100755 --- a/embed.pl +++ b/embed.pl @@ -10,6 +10,40 @@ require 5.003; # keep this compatible, an old perl is all we may have before # implicit interpreter context argument. # +sub do_not_edit ($) +{ + my $file = shift; + my $warning = < embed.h') or die "Can't create embed.h: $!\n"; -print EM <<'END'; -/* - * embed.h - * - * Copyright (c) 1997-2002, Larry Wall - * - * You may distribute under the terms of either the GNU General Public - * License or the Artistic License, as specified in the README file. - * - * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - * This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, - * perlvars.h and thrdvar.h. Any changes made here will be lost! - */ +print EM do_not_edit ("embed.h"), <<'END'; /* (Doing namespace management portably in C is really gross.) */ @@ -501,20 +493,7 @@ unlink 'embedvar.h'; open(EM, '> embedvar.h') or die "Can't create embedvar.h: $!\n"; -print EM <<'END'; -/* - * embedvar.h - * - * Copyright (c) 1997-2002, Larry Wall - * - * You may distribute under the terms of either the GNU General Public - * License or the Artistic License, as specified in the README file. - * - * - * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - * This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, - * perlvars.h and thrdvar.h. Any changes made here will be lost! - */ +print EM do_not_edit ("embedvar.h"), <<'END'; /* (Doing namespace management portably in C is really gross.) */ @@ -622,20 +601,7 @@ unlink 'perlapi.c'; open(CAPI, '> perlapi.c') or die "Can't create perlapi.c: $!\n"; open(CAPIH, '> perlapi.h') or die "Can't create perlapi.h: $!\n"; -print CAPIH <<'EOT'; -/* - * perlapi.h - * - * Copyright (c) 1997-2002, Larry Wall - * - * You may distribute under the terms of either the GNU General Public - * License or the Artistic License, as specified in the README file. - * - * - * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - * This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, - * perlvars.h and thrdvar.h. Any changes made here will be lost! - */ +print CAPIH do_not_edit ("perlapi.h"), <<'EOT'; /* declare accessor functions for Perl variables */ #ifndef __perlapi_h__ @@ -731,20 +697,7 @@ print CAPIH <<'EOT'; EOT close CAPIH; -print CAPI <<'EOT'; -/* - * perlapi.c - * - * Copyright (c) 1997-2002, Larry Wall - * - * You may distribute under the terms of either the GNU General Public - * License or the Artistic License, as specified in the README file. - * - * - * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - * This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h, - * perlvars.h and thrdvar.h. Any changes made here will be lost! - */ +print CAPI do_not_edit ("perlapi.c"), <<'EOT'; #include "EXTERN.h" #include "perl.h" -- 1.8.3.1