Mercurial > pub > dyncall > dyncall
comparison dyncall/dyncall.3 @ 362:78dfa2f9783a
- added helper function dcGetModeFromCCSigChar() mapping callconv sig chars to respective mode
- added a signature-based syscall to callf testcode
- manual clarification about dcReset usage in combination with dcMode
author | Tassilo Philipp |
---|---|
date | Tue, 14 Apr 2020 16:56:57 +0200 |
parents | 32736025371f |
children | 71c884e610f0 |
comparison
equal
deleted
inserted
replaced
361:06c9adae114d | 362:78dfa2f9783a |
---|---|
1 .\" Copyright (c) 2007-2013 Daniel Adler <dadler AT uni-goettingen DOT de>, | 1 .\" Copyright (c) 2007-2020 Daniel Adler <dadler AT uni-goettingen DOT de>, |
2 .\" Tassilo Philipp <tphilipp AT potion-studios DOT com> | 2 .\" Tassilo Philipp <tphilipp AT potion-studios DOT com> |
3 .\" | 3 .\" |
4 .\" Permission to use, copy, modify, and distribute this software for any | 4 .\" Permission to use, copy, modify, and distribute this software for any |
5 .\" purpose with or without fee is hereby granted, provided that the above | 5 .\" purpose with or without fee is hereby granted, provided that the above |
6 .\" copyright notice and this permission notice appear in all copies. | 6 .\" copyright notice and this permission notice appear in all copies. |
110 available modes. Note that some mode/platform combinations don't make any | 110 available modes. Note that some mode/platform combinations don't make any |
111 sense (e.g. using a PowerPC calling convention on a MIPS platform) and are | 111 sense (e.g. using a PowerPC calling convention on a MIPS platform) and are |
112 silently ignored. | 112 silently ignored. |
113 .Pp | 113 .Pp |
114 .Fn dcReset | 114 .Fn dcReset |
115 resets the internal stack of arguments and prepares it for a new call. | 115 resets the internal stack of arguments and prepares it for a new call. This |
116 This function should be called after setting the call mode (using dcMode), but | 116 function should be called after setting the call mode (using dcMode), but prior |
117 prior to binding arguments to the CallVM. Use it also when reusing a CallVM, as | 117 to binding arguments to the CallVM (except for when setting mode |
118 arguments don't get flushed automatically after a function call invocation. | 118 DC_SIGCHAR_CC_ELLIPSIS_VARARGS, which is used prior to binding varargs of |
119 Note: you should also call this function after initial creation of the a CallVM | 119 variadic functions). Use it also when reusing a CallVM, as arguments don't get |
120 object, as dcNewCallVM doesn't do this, implicitly. | 120 flushed automatically after a function call invocation. Note: you should also |
121 call this function after initial creation of the a CallVM object, as | |
122 dcNewCallVM doesn't do this, implicitly. | |
121 .Pp | 123 .Pp |
122 .Fn dcArgBool , | 124 .Fn dcArgBool , |
123 .Fn dcArgChar , | 125 .Fn dcArgChar , |
124 .Fn dcArgShort , | 126 .Fn dcArgShort , |
125 .Fn dcArgInt , | 127 .Fn dcArgInt , |