Mercurial > pub > dyncall > dyncall
diff test/ellipsis/ellipsis.cc @ 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 | f5577f6bf97a |
children |
line wrap: on
line diff
--- a/test/ellipsis/ellipsis.cc Wed Sep 21 14:37:09 2022 +0200 +++ b/test/ellipsis/ellipsis.cc Wed Sep 21 15:20:58 2022 +0200 @@ -6,7 +6,7 @@ Description: License: - Copyright (c) 2007-2018 Daniel Adler <dadler@uni-goettingen.de>, + Copyright (c) 2007-2022 Daniel Adler <dadler@uni-goettingen.de>, Tassilo Philipp <tphilipp@potion-studios.com> Permission to use, copy, modify, and distribute this software for any @@ -36,7 +36,7 @@ #include <cstdarg> #endif -DCValue mValue[NARGS]; +static DCValue mValue[NARGS]; void clearValues() { for(int i = 0;i<NARGS;++i) mValue[i].L = 0xCAFEBABEDEADC0DEULL; } @@ -53,7 +53,7 @@ DCValue* getArg(int pos) { return &mValue[pos]; } -int gID; +static int gID; int getId() { return gID; } extern "C" { @@ -98,10 +98,11 @@ #define VF9(id,A1,A2,A3,A4,A5,A6,A7,A8,A9,S) (void*)S, #define VF10(id,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,S) (void*)S, -DCpointer gFuncTable[] = { +static DCpointer gFuncTable[] = { #include "case.h" }; DCpointer getFunc(int x) { return gFuncTable[x]; } +