OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / assert.3
index e46cf9c..809bf5d 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
-.\" License.
+.\" %%%LICENSE_END
+.\"
 .\" Modified Sat Jul 24 21:42:42 1993 by Rik Faith <faith@cs.unc.edu>
 .\" Modified Tue Oct 22 23:44:11 1996 by Eric S. Raymond <esr@thyrsus.com>
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 1996 Kentaro OGAWA
-.\"         all rights reserved.
-.\" Translated Sun, 14 Jul 1996 01:33:26 +0900
-.\"         by Kentaro OGAWA <k_ogawa@oyna.cc.muroran-it.ac.jp>
-.\" Updated Fri  6 Oct JST 2000 by Kentaro Shirakata <argrath@ub32.org>
-.\" Updated Thu 19 Sep JST 2002 by Kentaro Shirakata <argrath@ub32.org>
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH ASSERT 3  2002-08-25 "GNU" "Linux Programmer's Manual"
+.\"*******************************************************************
+.TH ASSERT 3 2002\-08\-25 GNU "Linux Programmer's Manual"
 .SH 名前
 assert \- 診断が偽の時にプログラムを中止する
 .SH 書式
 .nf
-.B #include <assert.h>
+\fB#include <assert.h>\fP
 .sp
-.BI "void assert(scalar " expression );
+\fBvoid assert(scalar \fP\fIexpression\fP\fB);\fP
 .fi
 .SH 説明
-.\"O If the macro
-.\"O .B NDEBUG
-.\"O was defined at the moment
-.\"O .I <assert.h>
-.\"O was last included, the macro
-.\"O .BR assert ()
-.\"O generates no code, and hence does nothing at all.
-.I <assert.h>
-が最後にインクルードされた時点で、
-.B NDEBUG
-マクロが定義されていた場合、
-.BR assert ()
-マクロは何のコードも生成せず、従って全く何もしない。
-.\"O Otherwise, the macro
-.\"O .BR assert ()
-.\"O prints an error message to standard error and terminates the program
-.\"O by calling
-.\"O .BR abort (3)
-.\"O if
-.\"O .I expression
-.\"O is false (i.e., compares equal to zero).
-さもなければ、
-.BR assert (3)
-マクロは
-.I expression
-が偽の時(すなわち、比較の結果が0と等しい時)に
-標準エラー出力にエラーメッセージを表示し、さらに
-.BR abort ()
+\fI<assert.h>\fP が最後にインクルードされた時点で、 \fBNDEBUG\fP マクロが定義されていた場合、 \fBassert\fP()
+マクロは何のコードも生成せず、従って全く何もしない。 さもなければ、 \fBassert\fP(3)  マクロは \fIexpression\fP
+が偽の時(すなわち、比較の結果が0と等しい時)に 標準エラー出力にエラーメッセージを表示し、さらに \fBabort\fP()
 を呼び出すことによって、プログラムを終了させる。
 .LP
-.\"O The purpose of this macro is to help the programmer find bugs in
-.\"O his program.
-.\"O The message "assertion failed in file foo.c, function
-.\"O do_bar(), line 1287" is of no help at all to a user.
-このマクロの目的は、プログラマーがプログラムのバグを発見する手助けを
-することである。"assertion failed in file foo.c, function do_bar(), line 1287"
-というメッセージはユーザーには何の助けにもならない。
+このマクロの目的は、プログラマーがプログラムのバグを発見する手助けを することである。"assertion failed in file foo.c,
+function do_bar(), line 1287" というメッセージはユーザーには何の助けにもならない。
 .SH 返り値
 値は返されない。
 .SH 準拠
-.\"O POSIX.1-2001, C89, C99.
-.\"O In C89,
-.\"O .B expression
-.\"O is required to be of type
-.\"O .I int
-.\"O and undefined behavior results if it is not, but in C99
-.\"O it may have any scalar type.
-POSIX.1-2001, C89, C99.
-C89 では
-.B expression
-は
-.I int
-型であることが必要とされ、そうでない場合の動作は未定義とされていた。
-しかし C99 ではどのようなスカラ値でもよいことになった。
-.\"O .\" See Defect Report 107 for more details.
-.\" 詳細は不具合報告 107 を参照のこと。
+.\" See Defect Report 107 for more details.
+POSIX.1\-2001, C89, C99.  C89 では \fBexpression\fP は \fIint\fP
+型であることが必要とされ、そうでない場合の動作は未定義とされていた。 しかし C99 ではどのようなスカラ値でもよいことになった。
 .SH バグ
-.\"O .BR assert ()
-.\"O is implemented as a macro; if the expression tested has side-effects,
-.\"O program behavior will be different depending on whether
-.\"O .B NDEBUG
-.\"O is defined.
-.\"O This may create Heisenbugs which go away when debugging
-.\"O is turned on.
-.BR assert ()
-は、マクロとして実装されている。すなわち、
-試されている式が副作用を持っている場合には、
-マクロ
-.B NDEBUG
-が定義されているかどうかに依存して、プログラムの振舞いは異なるだろう。
-これによって、バグ出しするときには消えてしまう
+\fBassert\fP()  は、マクロとして実装されている。すなわち、 試されている式が副作用を持っている場合には、 マクロ \fBNDEBUG\fP
+が定義されているかどうかに依存して、プログラムの振舞いは異なるだろう。 これによって、バグ出しするときには消えてしまう
 ハイゼンバグ(Heisenbugs)を生み出すだろう。
 .SH 関連項目
-.BR abort (3),
-.BR assert_perror (3),
-.BR exit (3)
+\fBabort\fP(3), \fBassert_perror\fP(3), \fBexit\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。