diff options
author | Araq <rumpf_a@web.de> | 2012-07-16 23:00:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-07-16 23:00:57 +0200 |
commit | 8d99753d6320489e4de8cf186415b0a7be8260b4 (patch) | |
tree | 2008a25dac1df222efc2c205fdf772ba5a533ecc /doc | |
parent | 56b4e3ad91a0dda632ba6bab7139665a3da163d3 (diff) | |
download | Nim-8d99753d6320489e4de8cf186415b0a7be8260b4.tar.gz |
preparations for making 'closure' the default calling convention for proc types
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/manual.txt | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/manual.txt b/doc/manual.txt index 31b2b6585..36e444170 100755 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -1177,6 +1177,17 @@ that expects a proc of the calling convention ``closure``. Nimrod supports these `calling conventions`:idx:\: +`nimcall`:idx: + is the default convention used for a Nimrod **proc**. It is the + same as ``fastcall``, but only for C compilers that support ``fastcall``. + +`closure`:idx: + is the default calling convention for a **procedural type** that lacks + any pragma annotations. It indicates that the procedure has a hidden + implicit parameter (an *environment*). Proc vars that have the calling + convention ``closure`` take up two machine words: One for the proc pointer + and another one for the pointer to implicitely passed environment. + `stdcall`:idx: This the stdcall convention as specified by Microsoft. The generated C procedure is declared with the ``__stdcall`` keyword. @@ -1203,16 +1214,6 @@ Nimrod supports these `calling conventions`:idx:\: Fastcall means different things to different C compilers. One gets whatever the C ``__fastcall`` means. -`nimcall`:idx: - Nimcall is the default convention used for Nimrod procedures. It is the - same as ``fastcall``, but only for C compilers that support ``fastcall``. - -`closure`:idx: - indicates that the procedure has a hidden implicit parameter - (an *environment*). Proc vars that have the calling convention ``closure`` - take up two machine words: One for the proc pointer and another one for - the pointer to implicitely passed environment. - `syscall`:idx: The syscall convention is the same as ``__syscall`` in C. It is used for interrupts. |