Author: leo
Date: Tue Nov 15 06:37:31 2005
New Revision: 9985
Modified:
trunk/config/gen/config_h/feature_h.in
Log:
Use va_ptr_type
* create include/parrot/feature.h with the correct line depending on
config var 'va_ptr_type' => 'x86' or 'ppc'
Modified: trunk/config/gen/config_h/feature_h.in
==============================================================================
--- trunk/config/gen/config_h/feature_h.in (original)
+++ trunk/config/gen/config_h/feature_h.in Tue Nov 15 06:37:31 2005
@@ -60,12 +60,24 @@ END
print OUT <<'END';
-#if defined __powerpc__ || defined __x86_64__ || defined __s390__
+END
+my $va_result = ${va_ptr_type};
+ print OUT <<"END";
+/* from config/auto/va_ptr.pm: va_ptr_type => $va_result */
+END
+if (${va_ptr_type} eq 'ppc') {
+ print OUT <<'END';
+/* if defined __powerpc__ || defined __x86_64__ || defined __s390__ */
# define PARROT_VA_TO_VAPTR(x) (x)
-#else
+
+END
+}
+if (${va_ptr_type} eq 'x86') {
+ print OUT <<'END';
# define PARROT_VA_TO_VAPTR(x) (&(x))
-#endif
+
END
+}
print OUT <<'END';