Browse code

cosmetics: Write some trivial C test programs in a more compact form.

Originally committed as revision 12641 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun authored on 2008/03/31 07:23:52
Showing 1 changed files
... ...
@@ -427,9 +427,7 @@ check_asm(){
427 427
     asm="$2"
428 428
     shift 2
429 429
     check_cc "$@" <<EOF && enable $name || disable $name
430
-int foo(void){
431
-    asm volatile($asm);
432
-}
430
+int foo(void){ asm volatile($asm); }
433 431
 EOF
434 432
 }
435 433
 
... ...
@@ -454,9 +452,7 @@ EOF
454 454
 check_ldflags(){
455 455
     log check_ldflags "$@"
456 456
     check_ld "$@" <<EOF && add_ldflags "$@"
457
-int main(void){
458
-    return 0;
459
-}
457
+int main(void){ return 0; }
460 458
 EOF
461 459
 }
462 460
 
... ...
@@ -479,9 +475,7 @@ check_func(){
479 479
     disable $func
480 480
     check_ld "$@" <<EOF && enable $func
481 481
 extern int $func();
482
-int main(void){
483
-    $func();
484
-}
482
+int main(void){ $func(); }
485 483
 EOF
486 484
 }
487 485
 
... ...
@@ -1464,9 +1458,7 @@ rm $TMPE
1464 1464
 
1465 1465
 # compiler sanity check
1466 1466
 check_exec <<EOF
1467
-int main(void){
1468
-    return 0;
1469
-}
1467
+int main(void){ return 0; }
1470 1468
 EOF
1471 1469
 if test "$?" != 0; then
1472 1470
     echo "$cc is unable to create an executable file."