Skip to content

Commit

Permalink
Fixed invalid function signature on a table.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Jan 16, 2024
1 parent 94f85b4 commit 11886e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ ILAsmと比較しても、はるかに簡単に書けるはずです。
|関数シグネチャ|対応するC言語でのシグネチャ例|
|:----|:----|
|`int32(argc:int32,argv:sbyte**)`|`int main(int argc, char** argv)`|
|`void(argc:int32,argv:sbyte**)`|`void() main(int argc, char** argv)`|
|`void(argc:int32,argv:sbyte**)`|`void main(int argc, char** argv)`|
|`int32()`|`int main(void)`|
|`void()`|`void() main(void)`|
|`void()`|`void main(void)`|

奇妙に思えるかもしれませんが、引数の`argv`は、現実にポインタへのポインタです。
そしてその先は、Unicodeではない、終端文字を含む8ビット文字列を示します。
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ The signature of the `main` function accepts the following variations:
|Function signature|Example signature in the C language|
|:----|:----|
|`int32(argc:int32,argv:sbyte**)`|`int main(int argc, char** argv)`|
|`void(argc:int32,argv:sbyte**)`|`void() main(int argc, char** argv)`|
|`void(argc:int32,argv:sbyte**)`|`void main(int argc, char** argv)`|
|`int32()`|`int main(void)`|
|`void()`|`void() main(void)`|
|`void()`|`void main(void)`|

It may seem strange in .NET peoples, but the argument `argv` is actually a nested pointers.
And the destination is a non-Unicode, 8-bit string containing the terminating character.
Expand Down

0 comments on commit 11886e2

Please sign in to comment.