[perldocjp-cvs 1817] CVS update: docs/perl/5.16.1

Zurück zum Archiv-Index

argra****@users***** argra****@users*****
2013年 10月 30日 (水) 02:34:01 JST


Index: docs/perl/5.16.1/perlxs.pod
diff -u docs/perl/5.16.1/perlxs.pod:1.1 docs/perl/5.16.1/perlxs.pod:1.2
--- docs/perl/5.16.1/perlxs.pod:1.1	Sun Oct 27 03:44:08 2013
+++ docs/perl/5.16.1/perlxs.pod	Wed Oct 30 02:34:01 2013
@@ -724,10 +724,9 @@
 従って、上述の XSUB は、呼び出されるごとにメモリリークします。
 同じ問題は C<HV *>, C<CV *>, (一般的な C<SV *> ではなく
 スカラリファレンスを示す) C<SVREF> にもあります。
-In XS code on perls starting with perl 5.16, you can override the
-typemaps for any of these types with a version that has proper
-handling of refcounts. In your C<TYPEMAP> section, do
-(TBT)
+perl 5.16 以降の perl の XS コードでは、これらの型の typemap を、
+適切に参照カウントを扱える版に上書きできます。
+C<TYPEMAP> セクションで、
 
   AV*	T_AVREF_REFCOUNT_FIXED
 
@@ -740,11 +739,10 @@
 
 =end original
 
-to get the repaired variant. For backward compatibility with older
-versions of perl, you can instead decrement the reference count
-manually when you're returning one of the aforementioned
-types using C<sv_2mortal>:
-(TBT)
+とすると修正版を得られます。
+古いバージョンの perl との後方互換性のために、C<sv_2mortal> を使って
+前述の型の一つを返すとき、代わりに参照カウントを手動でデクリメントすることも
+できます:
 
   AV *
   array()
@@ -763,9 +761,7 @@
 =end original
 
 C<SV *> のためにはこれをする必要はないことも覚えておいてください。
-The reference
-documentation for all core typemaps can be found in L<perlxstypemap>.
-(TBT)
+全てのコア typemap に関するリファレンス文書は L<perlxstypemap> です。
 
 =head2 The MODULE Keyword
 
@@ -1212,14 +1208,13 @@
 
 =end original
 
-Starting with Perl 5.16, you can embed typemaps into your XS code
-instead of or in addition to typemaps in a separate file.  Multiple
-such embedded typemaps will be processed in order of appearance in
-the XS code and like local typemap files take precendence over the
-default typemap, the embedded typemaps may overwrite previous
-definitions of TYPEMAP, INPUT, and OUTPUT stanzas.  The syntax for
-embedded typemaps is
-(TBT)
+Perl 5.16 から、独立したファイルに typemap を追加するのではなく、
+XS コードに typemap を組み込めるようになりました。
+このような組み込みの typemap が複数回現れた場合は、XS コード中に現れた
+順に処理され、ローカルな typemap ファイルと同様にデフォルトの
+typemap よりも優先順位が高く、組み込みの typemap は以前の TYPEMAP, INPUT,
+OUTPUT 節を上書きできます。
+組み込みの typemap の文法は
 
       TYPEMAP: <<HERE
       ... your typemap code here ...
@@ -1232,9 +1227,7 @@
 
 =end original
 
-where the C<TYPEMAP> keyword must appear in the first column of a
-new line.
-(TBT)
+ここで C<TYPEMAP> キーワードは新しい行の最初の列に現れなければなりません。
 
 =begin original
 
@@ -1242,8 +1235,7 @@
 
 =end original
 
-Refer to L<perlxstypemap> for details on writing typemaps.
-(TBT)
+typemap を書くための詳細については L<perlxstypemap> を参照してください。
 
 =head2 Initializing Function Parameters
 
@@ -3236,11 +3228,11 @@
 
 =end original
 
-The EXPORT_XSUB_SYMBOLS: keyword is likely something you will never need.
-In perl versions earlier than 5.16.0, this keyword does nothing. Starting
-with 5.16, XSUB symbols are no longer exported by default. That is, they
-are C<static> functions. If you include
-(TBT)
+EXPORT_XSUB_SYMBOLS: キーワードはおそらく決して必要にならないようなものです。
+5.16.0 より前のバージョンの perl では、このキーワードは何もしません。
+5.16 から、XSUB シンボルはもはやデフォルトではエクスポートしません。
+つまり、これは C<static> 関数です。
+以下のものを
 
   EXPORT_XSUB_SYMBOLS: ENABLE
 
@@ -3251,9 +3243,9 @@
 
 =end original
 
-in your XS code, the XSUBs following this line will not be declared C<static>.
-You can later disable this with
-(TBT)
+XS コードでインクルードすると、この行に引き続く XSUB は
+C<static> 宣言しません。
+これはその後で以下のようにして無効にできます
 
   EXPORT_XSUB_SYMBOLS: DISABLE
 
@@ -3265,10 +3257,9 @@
 
 =end original
 
-which, again, is the default that you should probably never change.
-You cannot use this keyword on versions of perl before 5.16 to make
-XSUBs C<static>.
-(TBT)
+これはおそらく決して変更しないデフォルトです。
+5.16 より前のバージョンで XSUB を C<static> にするためにこのキーワードを
+使うことはできません。
 
 =head2 The & Unary Operator
 
@@ -4424,7 +4415,7 @@
 
 Translate: KIMURA Koichi
 Update: SHIRAKATA Kentaro <argra****@ub32*****> (5.8.8-)
-Status: in progress
+Status: completed
 
 =end meta
 



perldocjp-cvs メーリングリストの案内
Zurück zum Archiv-Index