種類
- インスタンスメソッド (34)
- 変数 (1)
モジュール
- Kernel (35)
キーワード
-
$ defs (1) -
check
_ signedness (2) -
check
_ sizeof (2) -
convertible
_ int (2) -
create
_ header (1) -
find
_ header (1) -
find
_ type (2) -
have
_ func (2) -
have
_ header (2) -
have
_ library (2) -
have
_ macro (2) -
have
_ struct _ member (2) -
have
_ type (2) -
have
_ var (2) -
try
_ constant (2) -
try
_ func (2) -
try
_ static _ assert (2) -
try
_ type (2) -
try
_ var (2)
検索結果
先頭5件
-
Kernel
# have _ header(header , preheaders = nil) -> bool (47239.0) -
ヘッダファイル header がシステムに存在するかどうか検査します。
ヘッダファイル header がシステムに存在するかどうか検査します。
ヘッダファイル header が存在する場合は、グローバル変数 $defs に
"-DHAVE_header" を追加して true を返します。ヘッダファイル header が存
在しない場合は $defs は変更せず false を返します。
@param header 検査したいヘッダファイルを指定します。
@param preheaders ヘッダファイルを検査する前に読み込んでおくヘッダファイルを指定します。 -
Kernel
# have _ header(header , preheaders = nil) { . . . } -> bool (47239.0) -
ヘッダファイル header がシステムに存在するかどうか検査します。
ヘッダファイル header がシステムに存在するかどうか検査します。
ヘッダファイル header が存在する場合は、グローバル変数 $defs に
"-DHAVE_header" を追加して true を返します。ヘッダファイル header が存
在しない場合は $defs は変更せず false を返します。
@param header 検査したいヘッダファイルを指定します。
@param preheaders ヘッダファイルを検査する前に読み込んでおくヘッダファイルを指定します。 -
Kernel
# create _ header(header = "extconf . h") -> String (46315.0) -
Kernel#have_func, Kernel#have_header などの検査結果を元に、 ヘッダファイルを生成します。
...eader ヘッダファイルの名前を指定します。
@return ヘッダファイルの名前を返します。
例
# extconf.rb
require 'mkmf'
have_func('realpath')
have_header('sys/utime.h')
create_header
create_makefile('foo')
上の extconf.rb は以下の extconf.h を生成... -
Kernel
# find _ header(header , *paths) -> bool (46279.0) -
与えられた paths から header を検索し、見つかった場合は真を返します。 そうでない場合は偽を返します。
与えられた paths から header を検索し、見つかった場合は真を返します。
そうでない場合は偽を返します。
ヘッダが見つかったディレクトリをコンパイラに渡すコマンドラインオプショ
ンに追加します(-I オプションを経由します)。
@param header ヘッダを指定します。
@param paths ヘッダを検索するパスを指定します。 -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (27907.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS... -
Kernel
# check _ signedness(type , headers = nil , opts = nil) { . . . } -> "signed" | "unsigned" | nil (27907.0) -
Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.
Returns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.
If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS... -
Kernel
# find _ type(type , opt , *headers) -> Array (27607.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
@param type 検査したい型の名前を指定します。
@param opt コンパイラに渡す追加のオプションを指定します。
@param headers 追加のヘッダを指定します。
@see Kernel#have_type -
Kernel
# find _ type(type , opt , *headers) { . . . } -> Array (27607.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
@param type 検査したい型の名前を指定します。
@param opt コンパイラに渡す追加のオプションを指定します。
@param headers 追加のヘッダを指定します。
@see Kernel#have_type -
Kernel
$ $ defs -> [String] (27361.0) -
拡張ライブラリをコンパイルするときのマクロ定義を指定する配列です。
拡張ライブラリをコンパイルするときのマクロ定義を指定する配列です。
この変数の値は、例えば
["-DHAVE_FUNC", "-DHAVE_HEADER_H"]
のような形式の配列です。
Kernel#have_func または Kernel#have_header
を呼び出すと、その検査結果が $defs に追加されます。
Kernel#create_header
はこの変数の値を参照してヘッダファイルを生成します。 -
Kernel
# have _ library(lib , func = nil , headers = nil) -> bool (19207.0) -
ライブラリ lib がシステムに存在し、関数 func が定義されているかどうかをチェックします。 チェックが成功すれば $libs に lib を追加し true を返します。 チェックが失敗したら false を返します。
ライブラリ lib がシステムに存在し、関数 func が定義されているかどうかをチェックします。
チェックが成功すれば $libs に lib を追加し true を返します。
チェックが失敗したら false を返します。
@param lib ライブラリの名前を指定します。
@param func 検査する関数名を指定します。
nil または空文字列のときは、"main" になります。
@param headers 追加のヘッダファイルを指定します。 -
Kernel
# have _ library(lib , func = nil , headers = nil) { . . . } -> bool (19207.0) -
ライブラリ lib がシステムに存在し、関数 func が定義されているかどうかをチェックします。 チェックが成功すれば $libs に lib を追加し true を返します。 チェックが失敗したら false を返します。
ライブラリ lib がシステムに存在し、関数 func が定義されているかどうかをチェックします。
チェックが成功すれば $libs に lib を追加し true を返します。
チェックが失敗したら false を返します。
@param lib ライブラリの名前を指定します。
@param func 検査する関数名を指定します。
nil または空文字列のときは、"main" になります。
@param headers 追加のヘッダファイルを指定します。 -
Kernel
# convertible _ int(type , headers = nil , opts = nil) (18907.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p... -
Kernel
# convertible _ int(type , headers = nil , opts = nil) { . . . } (18907.0) -
Returns the convertible integer type of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. _Convertible_ means actually same type, or typedefed from same type. If the +type+ is a integer type and _convertible_ type is found, following macros are passed as preprocessor constants to the compiler using the +type+ name, in uppercase. * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X' is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP, where 'TYP' is the +type+ name in uppercase with replacing '_t' suffix with 'T', followed by '=X' where 'X' is the macro name to convert +type+ to +Integer+ object, and vice versa. For example, if foobar_t is defined as unsigned long, then convertible_int("foobar_t") would return "unsigned long", and define macros: #define TYPEOF_FOOBAR_T unsigned long #define FOOBART2NUM ULONG2NUM #define NUM2FOOBART NUM2ULONG
Returns the convertible integer type of the given +type+. You may
optionally specify additional +headers+ to search in for the +type+.
_Convertible_ means actually same type, or typedefed from same type.
If the +type+ is a integer type and _convertible_ type is found,
following macros are p... -
Kernel
# check _ sizeof(type , headers = nil) -> Integer | nil (9907.0) -
与えられた型のサイズを返します。
...加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。... -
Kernel
# check _ sizeof(type , headers = nil) { . . . } -> Integer | nil (9907.0) -
与えられた型のサイズを返します。
...加し、型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。... -
Kernel
# have _ func(func , headers = nil) -> bool (9907.0) -
関数 func がシステムに存在するかどうかを検査します。
関数 func がシステムに存在するかどうかを検査します。
関数 func が存在すれば $defs に "-DHAVE_func" (func は大文字に変
換されます) を追加して true を返します。関数 func が見つからないときは
グローバル変数を変更せず false を返します。
@param func 関数名を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイル名を指定しま
す。これは関数の型をチェックするためではなく、関数が実際
にはマクロで定義されている場合などの... -
Kernel
# have _ func(func , headers = nil) { . . . } -> bool (9907.0) -
関数 func がシステムに存在するかどうかを検査します。
関数 func がシステムに存在するかどうかを検査します。
関数 func が存在すれば $defs に "-DHAVE_func" (func は大文字に変
換されます) を追加して true を返します。関数 func が見つからないときは
グローバル変数を変更せず false を返します。
@param func 関数名を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイル名を指定しま
す。これは関数の型をチェックするためではなく、関数が実際
にはマクロで定義されている場合などの... -
Kernel
# have _ macro(macro , headers = nil , opt = "") -> bool (9907.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt C コンパイラに渡すコマンドライン引数を指定します。 -
Kernel
# have _ macro(macro , headers = nil , opt = "") { . . . } -> bool (9907.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt C コンパイラに渡すコマンドライン引数を指定します。 -
Kernel
# have _ struct _ member(type , member , headers = nil) -> bool (9907.0) -
member というメンバを持つ構造体 type がシステムに存在するかどうか検査します。
...真を返します。
member というメンバを持つ構造体 type が存在しない場合は、偽を返します。
例えば
require 'mkmf'
have_struct_member('struct foo', 'bar') # => true
である場合、HAVE_STRUCT_FOO_BAR というプリプロセッサマクロをコンパイラ... -
Kernel
# have _ struct _ member(type , member , headers = nil) { . . . } -> bool (9907.0) -
member というメンバを持つ構造体 type がシステムに存在するかどうか検査します。
...真を返します。
member というメンバを持つ構造体 type が存在しない場合は、偽を返します。
例えば
require 'mkmf'
have_struct_member('struct foo', 'bar') # => true
である場合、HAVE_STRUCT_FOO_BAR というプリプロセッサマクロをコンパイラ... -
Kernel
# have _ type(type , headers = nil , opt = "") -> bool (9907.0) -
静的な型 type がシステムに存在するかどうか検査します。
...VE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@par... -
Kernel
# have _ type(type , headers = nil , opt = "") { . . . } -> bool (9907.0) -
静的な型 type がシステムに存在するかどうか検査します。
...VE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@par... -
Kernel
# have _ var(var , headers = nil) -> bool (9907.0) -
変数 var がシステムに存在するかどうか検査します。
...E_var" を追加し、真を返します。変数 var がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_var('foo') # => true
である場合、HAVE_FOO というプリプロセッサマクロをコンパイラに渡します。
@param var... -
Kernel
# have _ var(var , headers = nil) { . . . } -> bool (9907.0) -
変数 var がシステムに存在するかどうか検査します。
...E_var" を追加し、真を返します。変数 var がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_var('foo') # => true
である場合、HAVE_FOO というプリプロセッサマクロをコンパイラに渡します。
@param var... -
Kernel
# try _ constant(const , headers = nil , opt = "") -> Integer | nil (9907.0) -
定数 const がシステムに存在するかどうか検査します。 Kernel#have_const を使ってください。
定数 const がシステムに存在するかどうか検査します。
Kernel#have_const を使ってください。
@param const C 言語の定数名を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。
@return 定数 const がシステムに存在する場合はその値を返します。
定数 const がシステムに存在しない場合は nil を返します。 -
Kernel
# try _ constant(const , headers = nil , opt = "") { . . . } -> Integer | nil (9907.0) -
定数 const がシステムに存在するかどうか検査します。 Kernel#have_const を使ってください。
定数 const がシステムに存在するかどうか検査します。
Kernel#have_const を使ってください。
@param const C 言語の定数名を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。
@return 定数 const がシステムに存在する場合はその値を返します。
定数 const がシステムに存在しない場合は nil を返します。 -
Kernel
# try _ func(func , libs , headers = nil) -> bool (9907.0) -
関数 func がシステムに存在するかどうか検査します。 Kernel#have_func を使ってください。
関数 func がシステムに存在するかどうか検査します。
Kernel#have_func を使ってください。
@param func 関数名を指定します。
@param libs ライブラリの名前を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイル名を指定しま
す。これは関数の型をチェックするためではなく、関数が実際
にはマクロで定義されている場合などのために使用します。 -
Kernel
# try _ func(func , libs , headers = nil) { . . . } -> bool (9907.0) -
関数 func がシステムに存在するかどうか検査します。 Kernel#have_func を使ってください。
関数 func がシステムに存在するかどうか検査します。
Kernel#have_func を使ってください。
@param func 関数名を指定します。
@param libs ライブラリの名前を指定します。
@param headers 関数 func を使用するのに必要なヘッダファイル名を指定しま
す。これは関数の型をチェックするためではなく、関数が実際
にはマクロで定義されている場合などのために使用します。 -
Kernel
# try _ static _ assert(expr , headers = nil , opt = "") -> bool (9907.0) -
@todo ???
@todo ???
...
@param expr C 言語の式を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。 -
Kernel
# try _ static _ assert(expr , headers = nil , opt = "") { . . . } -> bool (9907.0) -
@todo ???
@todo ???
...
@param expr C 言語の式を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。 -
Kernel
# try _ type(type , headers = nil , opt = "") -> bool (9907.0) -
Kernel#have_type を使ってください。
Kernel#have_type を使ってください。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラに渡す追加のオプションを指定します。 -
Kernel
# try _ type(type , headers = nil , opt = "") { . . . } -> bool (9907.0) -
Kernel#have_type を使ってください。
Kernel#have_type を使ってください。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラに渡す追加のオプションを指定します。 -
Kernel
# try _ var(var , headers = nil) -> bool (9907.0) -
Kernel#have_var を使ってください。
Kernel#have_var を使ってください。
@param var 検査したい変数名を指定します。
@param headers 追加のヘッダを指定します。 -
Kernel
# try _ var(var , headers = nil) { . . . } -> bool (9907.0) -
Kernel#have_var を使ってください。
Kernel#have_var を使ってください。
@param var 検査したい変数名を指定します。
@param headers 追加のヘッダを指定します。