Browse files

remove hard tabs

  • Loading branch information...
1 parent d4a6ecc commit cd225cab1183a9bcd77423a7433a460ec9a7d045 @bubaflub bubaflub committed Sep 30, 2012
Showing with 18 additions and 19 deletions.
  1. +18 −19 config/auto/alignof.pm
View
37 config/auto/alignof.pm
@@ -34,20 +34,20 @@ sub runstep {
# This step only needed for clang++
if (test_if_needed($conf)) {
- # Can do compile-time ALIGNOF definitions via offsetof()
- $conf->data->set( 'HAS_COMPILER_OFFSETOF_ALIGNOF' => 1 );
+ # Can do compile-time ALIGNOF definitions via offsetof()
+ $conf->data->set( 'HAS_COMPILER_OFFSETOF_ALIGNOF' => 1 );
$conf->debug("DEBUG: auto::alignof is only needed for clang++\n");
$self->set_result('skipped');
- return 1;
+ return 1;
}
# Need pre-compiled PARROT_ALIGNOF_* definitions
$conf->data->set( 'HAS_COMPILER_OFFSETOF_ALIGNOF' => 0 );
my %types = (
intval => $conf->data->get('iv'),
floatval => $conf->data->get('nv'),
- stringptr => 'STRING *',
- pmcptr => 'PMC *',
+ stringptr => 'STRING *',
+ pmcptr => 'PMC *',
char => 'char',
short => 'short',
int => 'int',
@@ -59,27 +59,26 @@ sub runstep {
float => 'float',
double => 'double',
longdouble => 'long double',
- Parrot_Int1 => 'char',
- Parrot_Int2 => 'short',
- Parrot_Int4 => 'int',
- Parrot_Int8 => 'long long',
- charptr => 'char *',
- voidptr => 'void *',
- funcptr_t => 'funcptr_t',
-
+ Parrot_Int1 => 'char',
+ Parrot_Int2 => 'short',
+ Parrot_Int4 => 'int',
+ Parrot_Int8 => 'long long',
+ charptr => 'char *',
+ voidptr => 'void *',
+ funcptr_t => 'funcptr_t',
longlong => 'long long',
ulonglong => 'unsigned long long',
__float128 => '__float128',
);
my $alignof = '';
for my $name (keys %types) {
- my $type = $types{$name};
- my $value = test_alignof($conf, $name, $type);
- $alignof .= ' '.$name;
- if ($value) {
- $conf->data->set( 'PARROT_ALIGNOF_'.$name => $value );
- }
+ my $type = $types{$name};
+ my $value = test_alignof($conf, $name, $type);
+ $alignof .= ' '.$name;
+ if ($value) {
+ $conf->data->set( 'PARROT_ALIGNOF_'.$name => $value );
+ }
}
$conf->data->set( 'alignof' => $alignof );

0 comments on commit cd225ca

Please sign in to comment.