comparison test/suite2_x86win32fast/case.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 90dfdac91b9b
children
comparison
equal deleted inserted replaced
605:0f40e13a2f0a 606:85b7a117b807
4 Library: test 4 Library: test
5 File: test/suite2_x86win32fast/case.cc 5 File: test/suite2_x86win32fast/case.cc
6 Description: 6 Description:
7 License: 7 License:
8 8
9 Copyright (c) 2007-2018 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.
50 template<> void g(DCfloat value, int pos) { mValue[pos].f = value; } 50 template<> void g(DCfloat value, int pos) { mValue[pos].f = value; }
51 template<> void g(DCdouble value, int pos) { mValue[pos].d = value; } 51 template<> void g(DCdouble value, int pos) { mValue[pos].d = value; }
52 52
53 DCValue* getArg(int pos) { return &mValue[pos]; } 53 DCValue* getArg(int pos) { return &mValue[pos]; }
54 54
55 int gID; 55 static int gID;
56 int getId() { return gID; } 56 int getId() { return gID; }
57 57
58 extern "C" { 58 extern "C" {
59 59
60 #define VF0(id,S) void API f##id () {gID=id;} 60 #define VF0(id,S) void API f##id () {gID=id;}