Mercurial > pub > dyncall > dyncall
comparison test/suite/main.c @ 606:85b7a117b807
- more statics in test code (this is partly needed on an experimental freebsd sparc64 build where the elf cleanup code crashes for some reason ... it's probably that experimental build, but a good change to do regardless)
author | Tassilo Philipp |
---|---|
date | Wed, 21 Sep 2022 15:20:58 +0200 |
parents | 0f40e13a2f0a |
children |
comparison
equal
deleted
inserted
replaced
605:0f40e13a2f0a | 606:85b7a117b807 |
---|---|
4 Library: test | 4 Library: test |
5 File: test/suite/main.c | 5 File: test/suite/main.c |
6 Description: | 6 Description: |
7 License: | 7 License: |
8 | 8 |
9 Copyright (c) 2007-2021 Daniel Adler <dadler@uni-goettingen.de>, | 9 Copyright (c) 2007-2022 Daniel Adler <dadler@uni-goettingen.de>, |
10 Tassilo Philipp <tphilipp@potion-studios.com> | 10 Tassilo Philipp <tphilipp@potion-studios.com> |
11 | 11 |
12 Permission to use, copy, modify, and distribute this software for any | 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 | 13 purpose with or without fee is hereby granted, provided that the above |
14 copyright notice and this permission notice appear in all copies. | 14 copyright notice and this permission notice appear in all copies. |
37 int getId(); | 37 int getId(); |
38 DCpointer getFunc(int x); | 38 DCpointer getFunc(int x); |
39 DCValue* getArg(int pos); | 39 DCValue* getArg(int pos); |
40 | 40 |
41 | 41 |
42 DCbool valueBool [NARGS]; | 42 static DCbool valueBool [NARGS]; |
43 DCshort valueShort [NARGS]; | 43 static DCshort valueShort [NARGS]; |
44 DCchar valueChar [NARGS]; | 44 static DCchar valueChar [NARGS]; |
45 DCint valueInt [NARGS]; | 45 static DCint valueInt [NARGS]; |
46 DClonglong valueLongLong[NARGS]; | 46 static DClonglong valueLongLong[NARGS]; |
47 DCdouble valueDouble [NARGS]; | 47 static DCdouble valueDouble [NARGS]; |
48 DCpointer valuePointer [NARGS]; | 48 static DCpointer valuePointer [NARGS]; |
49 DCfloat valueFloat [NARGS]; | 49 static DCfloat valueFloat [NARGS]; |
50 | 50 |
51 enum { | 51 enum { |
52 ID_DOUBLE = 0, | 52 ID_DOUBLE = 0, |
53 ID_LONGLONG, | 53 ID_LONGLONG, |
54 ID_INT, | 54 ID_INT, |