summaryrefslogtreecommitdiffstats
path: root/tools/cpu/sh/shgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cpu/sh/shgen.c')
-rw-r--r--tools/cpu/sh/shgen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/cpu/sh/shgen.c b/tools/cpu/sh/shgen.c
index 73c8a4f027..b4ab34b5cd 100644
--- a/tools/cpu/sh/shgen.c
+++ b/tools/cpu/sh/shgen.c
@@ -44,12 +44,12 @@ static struct option long_options[] =
static void shgen_header( FILE *file )
{
- fprintf( file,
+ fprintf( file,
"/*\n * DO NOT EDIT - this file is automatically generated by shgen %s\n",
VERSION );
fprintf( file,
" * Copyright (c) 1998,1999,2000 Ralf Corsepius (corsepiu@faw.uni-ulm.de)\n */\n" );
- fprintf( file,
+ fprintf( file,
"\n/* This file is not copyrighted */\n\n" );
}
@@ -57,7 +57,7 @@ int main( int argc, char *argv[] )
{
double Phi = 20000000.0 ;
-#if HAVE_GETOPT_LONG
+#if HAVE_GETOPT_LONG
int option_index = 0 ;
while( ( optopt = getopt_long( argc, argv, "M:K:H:hv",
long_options, &option_index ) ) > 0 )
@@ -68,11 +68,11 @@ int main( int argc, char *argv[] )
switch ( optopt )
{
case 'M' :
- sscanf( optarg, "%lf", &Phi );
+ sscanf( optarg, "%lf", &Phi );
Phi = Phi * 1000000.0;
break ;
case 'K' :
- sscanf( optarg, "%lf", &Phi );
+ sscanf( optarg, "%lf", &Phi );
Phi = Phi * 1000.0;
break ;
case 'H' :
@@ -96,9 +96,9 @@ int main( int argc, char *argv[] )
fprintf( stderr, "%s: Missing argument: driver\n", argv[0] );
exit(1);
}
-
+
shgen_header( stdout );
-
+
if ( strcmp( argv[optind], "sci" ) == 0 )
{
shgen_gensci( stdout, Phi );
@@ -108,6 +108,6 @@ int main( int argc, char *argv[] )
fprintf( stderr, "%s: Invalid argument: driver\n", argv[0] );
exit(1);
}
-
+
return 0 ;
}