別のキーワード
モジュール
- Kernel (35)
キーワード
-
cc
_ command (1) -
check
_ signedness (2) -
convertible
_ int (2) -
cpp
_ command (1) -
dir
_ config (1) -
egrep
_ cpp (2) -
find
_ type (2) -
have
_ macro (2) -
have
_ type (2) -
link
_ command (1) -
try
_ compile (2) -
try
_ constant (2) -
try
_ cpp (2) -
try
_ do (2) -
try
_ link (2) -
try
_ run (2) -
try
_ static _ assert (2) -
try
_ type (2) -
with
_ werror (2) - xsystem (1)
検索結果
先頭5件
-
Kernel
# with _ werror(opt , opts = nil) {|opt , opts| . . . } -> object (1237.0) -
@todo 内部用?
@todo 内部用?
???
@param opt ????
@param opts ????
@return ブロックを評価した結果を返します。 -
Kernel
# with _ werror(opt , opts = nil) {|opt| . . . } -> object (937.0) -
@todo 内部用?
@todo 内部用?
???
@param opt ????
@param opts ????
@return ブロックを評価した結果を返します。 -
Kernel
# try _ compile(src , opt = "" , *opts) -> bool (631.0) -
与えられた C のソースコードがコンパイルできた場合は真を返します。 コンパイルできなかった場合は偽を返します。
与えられた C のソースコードがコンパイルできた場合は真を返します。
コンパイルできなかった場合は偽を返します。
ブロックを与えた場合、そのブロックはコンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。 -
Kernel
# try _ compile(src , opt = "" , *opts) { . . . } -> bool (631.0) -
与えられた C のソースコードがコンパイルできた場合は真を返します。 コンパイルできなかった場合は偽を返します。
与えられた C のソースコードがコンパイルできた場合は真を返します。
コンパイルできなかった場合は偽を返します。
ブロックを与えた場合、そのブロックはコンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。 -
Kernel
# try _ cpp(src , opt = "" , *opts) -> bool (631.0) -
C プログラムのソースコード src をプリプロセスします。
...イン引数として渡す値を指定します。
@return 問題なくプリプロセスできたら true を返します。
プリプロセスに失敗したら false を返します。
例:
require 'mkmf'
if try_cpp("#include <stdio.h>")
$stderr.puts "stdio.h exists"
end... -
Kernel
# try _ cpp(src , opt = "" , *opts) { . . . } -> bool (631.0) -
C プログラムのソースコード src をプリプロセスします。
...イン引数として渡す値を指定します。
@return 問題なくプリプロセスできたら true を返します。
プリプロセスに失敗したら false を返します。
例:
require 'mkmf'
if try_cpp("#include <stdio.h>")
$stderr.puts "stdio.h exists"
end... -
Kernel
# try _ link(src , opt = "" , *options) -> bool (631.0) -
C プログラムのソースコード src をコンパイル、リンクします。
...たら false を返します。
@param src C プログラムのソースコードを指定します。
@param opt リンカにコマンド引数として渡す値を指定します。
例:
require 'mkmf'
if try_link("int main() { sin(0.0); }", '-lm')
$stderr.puts "sin() exists"
end... -
Kernel
# try _ link(src , opt = "" , *options) { . . . } -> bool (631.0) -
C プログラムのソースコード src をコンパイル、リンクします。
...たら false を返します。
@param src C プログラムのソースコードを指定します。
@param opt リンカにコマンド引数として渡す値を指定します。
例:
require 'mkmf'
if try_link("int main() { sin(0.0); }", '-lm')
$stderr.puts "sin() exists"
end... -
Kernel
# egrep _ cpp(pattern , src , opt = "") -> bool (331.0) -
C プログラムのソースコード src をプリプロセスし、 その結果が正規表現 pattern にマッチするかどうかを判定します。
C プログラムのソースコード src をプリプロセスし、
その結果が正規表現 pattern にマッチするかどうかを判定します。
CPP $CFLAGS opt | egrep pat
を実行し、その結果が正常かどうかを true または false で返します。
このメソッドはヘッダファイルに関数などの宣言があるかどうか
検査するために使用します。
@param pattern 「egrep の」正規表現を文字列で指定します。
Ruby の正規表現ではありません。
@param src C 言語のソースコードを文字列で記述します。
@see ... -
Kernel
# egrep _ cpp(pattern , src , opt = "") { . . . } -> bool (331.0) -
C プログラムのソースコード src をプリプロセスし、 その結果が正規表現 pattern にマッチするかどうかを判定します。
C プログラムのソースコード src をプリプロセスし、
その結果が正規表現 pattern にマッチするかどうかを判定します。
CPP $CFLAGS opt | egrep pat
を実行し、その結果が正常かどうかを true または false で返します。
このメソッドはヘッダファイルに関数などの宣言があるかどうか
検査するために使用します。
@param pattern 「egrep の」正規表現を文字列で指定します。
Ruby の正規表現ではありません。
@param src C 言語のソースコードを文字列で記述します。
@see ... -
Kernel
# find _ type(type , opt , *headers) -> Array (331.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
@param type 検査したい型の名前を指定します。
@param opt コンパイラに渡す追加のオプションを指定します。
@param headers 追加のヘッダを指定します。
@see Kernel#have_type -
Kernel
# find _ type(type , opt , *headers) { . . . } -> Array (331.0) -
静的な型 type がシステムに存在するかどうか検査します。
静的な型 type がシステムに存在するかどうか検査します。
@param type 検査したい型の名前を指定します。
@param opt コンパイラに渡す追加のオプションを指定します。
@param headers 追加のヘッダを指定します。
@see Kernel#have_type -
Kernel
# have _ macro(macro , headers = nil , opt = "") -> bool (331.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt C コンパイラに渡すコマンドライン引数を指定します。 -
Kernel
# have _ macro(macro , headers = nil , opt = "") { . . . } -> bool (331.0) -
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。 そうでない場合は偽を返します。
与えられた macro が共通のヘッダファイルか headers に定義されている場合は真を返します。
そうでない場合は偽を返します。
@param macro マクロの名前を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt C コンパイラに渡すコマンドライン引数を指定します。 -
Kernel
# have _ type(type , headers = nil , opt = "") -> bool (331.0) -
静的な型 type がシステムに存在するかどうか検査します。
...VE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@par... -
Kernel
# have _ type(type , headers = nil , opt = "") { . . . } -> bool (331.0) -
静的な型 type がシステムに存在するかどうか検査します。
...VE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例えば、
require 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@par... -
Kernel
# try _ constant(const , headers = nil , opt = "") -> Integer | nil (331.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 (331.0) -
定数 const がシステムに存在するかどうか検査します。 Kernel#have_const を使ってください。
定数 const がシステムに存在するかどうか検査します。
Kernel#have_const を使ってください。
@param const C 言語の定数名を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。
@return 定数 const がシステムに存在する場合はその値を返します。
定数 const がシステムに存在しない場合は nil を返します。 -
Kernel
# try _ run(src , opt = "") -> bool | nil (331.0) -
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
以下の全ての検査に成功した場合は、真を返します。そうでない場合は偽を返します。
* src が C のソースとしてコンパイルできるか
* 生成されたオブジェクトが依存しているライブラリとリンクできるか
* リンクしたファイルが実行可能かどうか
* 実行ファイルがきちんと存在しているかどうか
ブロックを与えた場合、そのブロックはコンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt リンカに渡す... -
Kernel
# try _ run(src , opt = "") { . . . } -> bool | nil (331.0) -
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
与えられたソースコードが、コンパイルやリンクできるかどうか検査します。
以下の全ての検査に成功した場合は、真を返します。そうでない場合は偽を返します。
* src が C のソースとしてコンパイルできるか
* 生成されたオブジェクトが依存しているライブラリとリンクできるか
* リンクしたファイルが実行可能かどうか
* 実行ファイルがきちんと存在しているかどうか
ブロックを与えた場合、そのブロックはコンパイル前に評価されます。
ブロック内でソースコードを変更することができます。
@param src C のソースコードを指定します。
@param opt リンカに渡す... -
Kernel
# try _ static _ assert(expr , headers = nil , opt = "") -> bool (331.0) -
@todo ???
@todo ???
...
@param expr C 言語の式を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。 -
Kernel
# try _ static _ assert(expr , headers = nil , opt = "") { . . . } -> bool (331.0) -
@todo ???
@todo ???
...
@param expr C 言語の式を指定します。
@param headers 追加のヘッダファイルを指定します。
@param opt コンパイラに渡すオプションを指定します。
$CFLAGS もコンパイラには渡されます。 -
Kernel
# try _ type(type , headers = nil , opt = "") -> bool (331.0) -
Kernel#have_type を使ってください。
Kernel#have_type を使ってください。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラに渡す追加のオプションを指定します。 -
Kernel
# try _ type(type , headers = nil , opt = "") { . . . } -> bool (331.0) -
Kernel#have_type を使ってください。
Kernel#have_type を使ってください。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラに渡す追加のオプションを指定します。 -
Kernel
# cc _ command(opt = "") -> String (328.0) -
実際にコンパイルする際に使用するコマンドを返します。
実際にコンパイルする際に使用するコマンドを返します。
@param opt コンパイラに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Kernel
# cpp _ command(outfile , opt = "") -> String (328.0) -
実際にプリプロセッサを実行する際に使用するコマンドを返します。
実際にプリプロセッサを実行する際に使用するコマンドを返します。
@param outfile 出力ファイルの名前を指定します。
@param opt プリプロセッサに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Kernel
# link _ command(ldflags , opt = "" , libpath = $ DEFLIBPATH| $ LIBPATH) -> String (328.0) -
実際にリンクする際に使用するコマンドを返します。
実際にリンクする際に使用するコマンドを返します。
@param ldflags LDFLAGS に追加する値を指定します。
@param opt LIBS に追加する値を指定します。
@param libpath LIBPATH に指定する値を指定します。
@see RbConfig.expand -
Kernel
# check _ signedness(type , headers = nil , opts = nil) -> "signed" | "unsigned" | nil (307.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 (307.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
# convertible _ int(type , headers = nil , opts = nil) (307.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) { . . . } (307.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
# try _ do(src , command , *opts) -> () (307.0) -
@param src C プログラムのソースコードを指定します。
@param src C プログラムのソースコードを指定します。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
@raise RuntimeError 開発環境がインストールされていない場合に発生します。
@see Kernel#xsystem -
Kernel
# try _ do(src , command , *opts) { . . . } -> () (307.0) -
@param src C プログラムのソースコードを指定します。
@param src C プログラムのソースコードを指定します。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
@raise RuntimeError 開発環境がインストールされていない場合に発生します。
@see Kernel#xsystem -
Kernel
# xsystem(command , opts = nil) -> () (307.0) -
Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー 出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
...ですが、コマンドの出力は(標準出力、標準エラー
出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。
@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
:werror と... -
Kernel
# dir _ config(target , idefault = nil , ldefault = nil) -> [String , String] (43.0) -
configure オプション --with-TARGET-dir, --with-TARGET-include, --with-TARGET-lib をユーザが extconf.rb に指定できるようにします。
...。
@param ldefault システム標準ではないライブラリのディレクトリのデフォルト値を指定します。
例
require 'mkmf'
# xml2 の configure オプションを指定できるようにします。
xml2_dirs = dir_config('xml2', '/opt/local/include/libxml2', '/opt/l...