From: Dave Mitchell Date: Sun, 1 Aug 2004 16:49:20 +0000 (+0000) Subject: Add comment to top of reentr.c and fix typos in other files X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=61296642cbf8fa29a8af855294fd11d2d43e79d5;p=p5sagit%2Fp5-mst-13.2.git Add comment to top of reentr.c and fix typos in other files p4raw-id: //depot/perl@23180 --- diff --git a/deb.c b/deb.c index 21688c3..58b49a6 100644 --- a/deb.c +++ b/deb.c @@ -14,8 +14,8 @@ */ /* - * This file contains various utilites for producing debugging output - * (mainly related to displaying the stack) + * This file contains various utilities for producing debugging output + * (mainly related to displaying the stack) */ #include "EXTERN.h" diff --git a/dump.c b/dump.c index f80416b..5f0bef2 100644 --- a/dump.c +++ b/dump.c @@ -14,7 +14,7 @@ */ /* This file contains utility routines to dump the contents of SV and OP - * structures, as used by comand-line options like -Dt and -Dx, and + * structures, as used by command-line options like -Dt and -Dx, and * by Devel::Peek. * * It also holds the debugging version of the runops function. diff --git a/miniperlmain.c b/miniperlmain.c index 3cc25f8..3c13b7e 100644 --- a/miniperlmain.c +++ b/miniperlmain.c @@ -18,12 +18,12 @@ * * Miniperl is like perl except that does not support dynamic loading, * and in fact is used to build the dynamic modules need for the 'real' - * perl execuable. + * perl executable. */ #ifdef OEMVS #ifdef MYMALLOC -/* sbrk is limited to first heap segement so make it big */ +/* sbrk is limited to first heap segment so make it big */ #pragma runopts(HEAP(8M,500K,ANYWHERE,KEEP,8K,4K) STACK(,,ANY,) ALL31(ON)) #else #pragma runopts(HEAP(2M,500K,ANYWHERE,KEEP,8K,4K) STACK(,,ANY,) ALL31(ON)) diff --git a/pad.c b/pad.c index dc220f5..f1d15ab 100644 --- a/pad.c +++ b/pad.c @@ -22,9 +22,9 @@ /* =head1 Pad Data Structures -This file contains the functions that create and manipluate scratchpads, +This file contains the functions that create and manipulate scratchpads, which are array-of-array data structures attached to a CV (ie a sub) -and which store lexical variables and opcode temporay and per-thread +and which store lexical variables and opcode temporary and per-thread values. =for apidoc m|AV *|CvPADLIST|CV *cv diff --git a/perly.y b/perly.y index 5d1b19f..0d00b95 100644 --- a/perly.y +++ b/perly.y @@ -18,7 +18,7 @@ * * The main job of of this grammar is to call the various newFOO() * functions in op.c to build a syntax tree of OP structs. - * It relies in the lexer in toke.c to do the tokenizing. + * It relies on the lexer in toke.c to do the tokenizing. */ /* Make the parser re-entrant. */ diff --git a/reentr.c b/reentr.c index 493a3b5..c2972e0 100644 --- a/reentr.c +++ b/reentr.c @@ -7,11 +7,17 @@ * License or the Artistic License, as specified in the README file. * * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - * This file is built by reentrl.pl from data in reentr.pl. + * This file is built by reentr.pl from data in reentr.pl. * * "Saruman," I said, standing away from him, "only one hand at a time can * wield the One, and you know that well, so do not trouble to say we!" * + * This file contains a collection of automatically created wrappers + * (created by running reentr.pl) for reentrant (thread-safe) versions of + * various library calls, such as getpwent_r. The wrapping is done so + * that other files like pp_sys.c calling those library functions need not + * care about the differences between various platforms' idiosyncrasies + * regarding these reentrant interfaces. */ #include "EXTERN.h" diff --git a/reentr.h b/reentr.h index 5e6e274..728dcbc 100644 --- a/reentr.h +++ b/reentr.h @@ -7,7 +7,7 @@ * License or the Artistic License, as specified in the README file. * * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! - * This file is built by reentrl.pl from data in reentr.pl. + * This file is built by reentr.pl from data in reentr.pl. */ #ifndef REENTR_H diff --git a/reentr.pl b/reentr.pl index 0622a80..f4d754a 100644 --- a/reentr.pl +++ b/reentr.pl @@ -47,7 +47,7 @@ print <