mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
nul
should be uppercase [ci skip]
* doc/extension.rdoc: [DOC] `nul` should be uppercase. change 'nul' => 'NUL'. [Fix GH-1172] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5f0b598e2c
commit
c7d317cc02
3 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Dec 27 09:34:53 2015 craft4coder <yooobuntu@163.com>
|
||||
|
||||
* doc/extension.rdoc: [DOC] `nul` should be uppercase.
|
||||
change 'nul' => 'NUL'. [Fix GH-1172]
|
||||
|
||||
Sat Dec 26 18:29:01 2015 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/xmlrpc/client.rb: Support SSL options in async methods of
|
||||
|
|
|
@ -126,10 +126,10 @@ var は lvalue である必要があります.
|
|||
また,StringValuePtr() に類似した StringValueCStr() というマ
|
||||
クロもあります.StringValueCStr(var) は var を String に置き
|
||||
換えてから var の文字列表現に対する char* を返します.返され
|
||||
る文字列の末尾には nul 文字が付加されます.なお,途中に nul
|
||||
る文字列の末尾には NUL 文字が付加されます.なお,途中に NUL
|
||||
文字が含まれる場合は ArgumentError が発生します.
|
||||
一方,StringValuePtr() では,末尾に nul 文字がある保証はなく,
|
||||
途中に nul 文字が含まれている可能性もあります.
|
||||
一方,StringValuePtr() では,末尾に NUL 文字がある保証はなく,
|
||||
途中に NUL 文字が含まれている可能性もあります.
|
||||
|
||||
それ以外のデータタイプは対応するCの構造体があります.対応す
|
||||
る構造体のあるVALUEはそのままキャスト(型変換)すれば構造体の
|
||||
|
|
|
@ -115,11 +115,11 @@ is a String. Notice that the macros take only the lvalue as their
|
|||
argument, to change the value of var in place.
|
||||
|
||||
You can also use the macro named StringValueCStr(). This is just
|
||||
like StringValuePtr(), but always add nul character at the end of
|
||||
the result. If the result contains nul character, this macro causes
|
||||
like StringValuePtr(), but always add NUL character at the end of
|
||||
the result. If the result contains NUL character, this macro causes
|
||||
the ArgumentError exception.
|
||||
StringValuePtr() doesn't guarantee the existence of a nul at the end
|
||||
of the result, and the result may contain nul.
|
||||
StringValuePtr() doesn't guarantee the existence of a NUL at the end
|
||||
of the result, and the result may contain NUL.
|
||||
|
||||
Other data types have corresponding C structures, e.g. struct RArray
|
||||
for T_ARRAY etc. The VALUE of the type which has the corresponding
|
||||
|
|
Loading…
Add table
Reference in a new issue