Mercurial > pub > dyncall > dyncall
annotate test/call_suite/globals.h @ 429:2b708397bba1
- simplified and decluttered test/call_suite
author | Tassilo Philipp |
---|---|
date | Mon, 17 Jan 2022 11:36:09 +0100 |
parents | f5577f6bf97a |
children | 23b12c7ad462 |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 Package: dyncall | |
4 Library: test | |
5 File: test/call_suite/globals.h | |
6 Description: | |
7 License: | |
8 | |
281 | 9 Copyright (c) 2011-2018 Daniel Adler <dadler@uni-goettingen.de>, |
0 | 10 Tassilo Philipp <tphilipp@potion-studios.com> |
11 | |
12 Permission to use, copy, modify, and distribute this software for any | |
13 purpose with or without fee is hereby granted, provided that the above | |
14 copyright notice and this permission notice appear in all copies. | |
15 | |
16 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
17 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
18 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
19 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
23 | |
24 */ | |
25 | |
26 | |
429
2b708397bba1
- simplified and decluttered test/call_suite
Tassilo Philipp
parents:
281
diff
changeset
|
27 #define DEF_TYPES X(c,char) X(s,short) X(i,int) X(j,long) X(l,long long) X(p,void*) X(f,float) X(d,double) |
0 | 28 |
429
2b708397bba1
- simplified and decluttered test/call_suite
Tassilo Philipp
parents:
281
diff
changeset
|
29 #define X(CH,T) extern T *K_##CH; extern T *V_##CH; |
0 | 30 DEF_TYPES |
31 #undef X | |
32 | |
33 typedef void (*funptr)(); | |
34 | |
35 extern funptr G_funtab[]; | |
36 extern char const * G_sigtab[]; | |
37 extern int G_ncases; | |
38 extern int G_maxargs; | |
39 | |
40 void init_K(); | |
41 void init_T(); | |
42 void clear_V(); | |
43 |