Mercurial > pub > dyncall > dyncall
comparison test/callback_suite/README.txt @ 505:049e04af13c8
test/callback_suite:
- greatly simplified
- refactored to look more like other test cases (especially call_suite{,_aggrs} for consistency/maintainablity/future code sharing
author | Tassilo Philipp |
---|---|
date | Sat, 09 Apr 2022 13:53:58 +0200 |
parents | 45ac093ca822 |
children | 5a3c07a0f376 |
comparison
equal
deleted
inserted
replaced
504:f263eb7a206e | 505:049e04af13c8 |
---|---|
36 ^- return type signature | 36 ^- return type signature |
37 ^- arg signature char 0 (later expected) value | 37 ^- arg signature char 0 (later expected) value |
38 | 38 |
39 | 39 |
40 Result (type DCValue) and ValueMatrix (type DCValueSet[MAXARGS]) are globals. | 40 Result (type DCValue) and ValueMatrix (type DCValueSet[MAXARGS]) are globals. |
41 The ValueMatrix is initialized once from main.c for all cominations of types | 41 The ValueMatrix is initialized once from main.c for all combinations of types |
42 and argument position. | 42 and argument position. |
43 See env.* files for details. | 43 See globals.* files for details. |
44 | 44 |
45 | 45 |
46 Reference argument and result value | 46 Reference argument and result value |
47 | 47 |
48 The value is generated by a pure function GetReferenceValue and | 48 The value is generated by a pure function get_reference_arg and |
49 GetReferenceResult (file env.c). They have formals position and type | 49 get_reference_result (file globals.c). They have formals position and type |
50 and are pure without any side-effects (means the function value does only | 50 and are pure without any side-effects (means the function value does only |
51 relay on the input arguments - if called with same arguments it will reveal | 51 relay on the input arguments - if called with same arguments it will reveal |
52 the same value. | 52 the same value. |
53 | 53 |
54 It defined in env.c. | 54 It defined in globals.c. |
55 | 55 |
56 Tssting for exotic calling conventions on Windows: | 56 Tssting for exotic calling conventions on Windows: |
57 | 57 |
58 Specify 'api' and 'ccprefix' accordingly: | 58 Specify 'api' and 'ccprefix' accordingly: |
59 | 59 |
61 "__stdcall" "_s" | 61 "__stdcall" "_s" |
62 "__fastcall" "_f" for gcc compiler | 62 "__fastcall" "_f" for gcc compiler |
63 "_F" for microsoft compiler | 63 "_F" for microsoft compiler |
64 | 64 |
65 | 65 |
66 @@@STRUCT review | |
66 | 67 |