xamarin-macios/runtime/trampolines-varargs.h

35 строки
551 B
C
Исходник Обычный вид История

2016-04-21 15:19:32 +03:00
#ifndef __TRAMPOLINES_VARARGS_H__
#define __TRAMPOLINES_VARARGS_H__
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
[runtime] Rename CallState to XamarinCallState to keep the public namespace cleaner. (#5940) Also ignore the corresponding public symbols in the PublicSymbols test. This was introduced in 464882d14a83a13f9fd6a3d9df2ca4d844933e36 (changes to the CallState struct made the compiler create public symbols). Fixes these test failures: 1) Failed : Xamarin.Tests.Misc.PublicSymbols(iOS) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196 2) Failed : Xamarin.Tests.Misc.PublicSymbols(tvOS) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.AppleTVSimulator.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196 3) Failed : Xamarin.Tests.Misc.PublicSymbols(watchOS) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchOS.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchSimulator.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196 4) Failed : Xamarin.Tests.Misc.PublicSymbols(macOSMobile) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-system-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-system.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196
2019-04-23 18:53:35 +03:00
struct XamarinCallState {
2016-04-21 15:19:32 +03:00
enum TrampolineType type; // the type of trampoline
id self;
SEL sel;
void *buffer;
va_list ap;
union { // floating point return value
double double_ret;
float float_ret;
long long longlong_ret;
void *ptr_ret;
};
};
struct ParamIterator {
[runtime] Rename CallState to XamarinCallState to keep the public namespace cleaner. (#5940) Also ignore the corresponding public symbols in the PublicSymbols test. This was introduced in 464882d14a83a13f9fd6a3d9df2ca4d844933e36 (changes to the CallState struct made the compiler create public symbols). Fixes these test failures: 1) Failed : Xamarin.Tests.Misc.PublicSymbols(iOS) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196 2) Failed : Xamarin.Tests.Misc.PublicSymbols(tvOS) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.AppleTVOS.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.AppleTVSimulator.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196 3) Failed : Xamarin.Tests.Misc.PublicSymbols(watchOS) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchOS.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchSimulator.sdk/usr/lib/libxamarin-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196 4) Failed : Xamarin.Tests.Misc.PublicSymbols(macOSMobile) Failed libraries Expected: <empty> But was: "/work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-system-debug.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac-system.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv /work/maccore/master/xamarin-macios/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/libxammac.a: __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv __ZN9CallState3selEv __ZN9CallState4selfEv __ZN9CallState8is_stretEv " at Xamarin.Tests.Misc.PublicSymbols (Xamarin.Tests.Profile profile) [0x00259] in /work/maccore/master/xamarin-macios/tests/mtouch/MiscTests.cs:196
2019-04-23 18:53:35 +03:00
struct XamarinCallState *state;
2016-04-21 15:19:32 +03:00
va_list ap;
};
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __TRAMPOLINES_VARARGS_H__ */