@@ -461,33 +461,46 @@ msgid ""
461461"as if ``PyObject_Malloc(1)`` had been called instead. The memory will not "
462462"have been initialized in any way."
463463msgstr ""
464+ "0バイトを要求すると、 ``PyObject_Malloc(1)`` が呼ばれたときと同じように、可能"
465+ "なら ``NULL`` でないユニークなポインタを返します。\n"
466+ "確保されたメモリーにはいかなる初期化も行われません。"
464467
465468#: ../../c-api/memory.rst:299
466469msgid ""
467470"Requesting zero elements or elements of size zero bytes returns a distinct "
468471"non-``NULL`` pointer if possible, as if ``PyObject_Calloc(1, 1)`` had been "
469472"called instead."
470473msgstr ""
474+ "要素数か要素のサイズが0バイトの要求に対しては、可能なら ``PyObject_Calloc(1, "
475+ "1)`` が呼ばれたのと同じように、ユニークな ``NULL`` でないポインタを返します。"
471476
472477#: ../../c-api/memory.rst:311
473478msgid ""
474479"If *p* is ``NULL``, the call is equivalent to ``PyObject_Malloc(n)``; else "
475480"if *n* is equal to zero, the memory block is resized but is not freed, and "
476481"the returned pointer is non-``NULL``."
477482msgstr ""
483+ "*p* が ``NULL`` の場合呼び出しは ``PyObject_Malloc(n)`` と等価です。そうでな"
484+ "く、 *n* がゼロに等しい場合、メモリブロックはリサイズされますが解放されませ"
485+ "ん。返されたポインタは非 ``NULL`` です。"
478486
479487#: ../../c-api/memory.rst:315
480488msgid ""
481489"Unless *p* is ``NULL``, it must have been returned by a previous call to :c:"
482490"func:`PyObject_Malloc`, :c:func:`PyObject_Realloc` or :c:func:"
483491"`PyObject_Calloc`."
484492msgstr ""
493+ "*p* が ``NULL`` でない限り、*p* はそれより前の :c:func:`PyObject_Malloc`, :c:"
494+ "func:`PyObject_Realloc` または :c:func:`PyObject_Calloc` の呼び出しにより返さ"
495+ "れなければなりません。"
485496
486497#: ../../c-api/memory.rst:318
487498msgid ""
488499"If the request fails, :c:func:`PyObject_Realloc` returns ``NULL`` and *p* "
489500"remains a valid pointer to the previous memory area."
490501msgstr ""
502+ "要求が失敗した場合 :c:func:`PyObject_Realloc` は ``NULL`` を返し、 *p* は前の"
503+ "メモリエリアをさす有効なポインタのままです。"
491504
492505#: ../../c-api/memory.rst:324
493506msgid ""
0 commit comments