OLD | NEW |
1 /* chew | 1 /* chew |
2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001, | 2 Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001, |
3 2002, 2003, 2005, 2007, 2009 | 3 2002, 2003, 2005, 2007, 2009, 2012 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 Contributed by steve chamberlain @cygnus | 5 Contributed by steve chamberlain @cygnus |
6 | 6 |
7 This file is part of BFD, the Binary File Descriptor library. | 7 This file is part of BFD, the Binary File Descriptor library. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
11 the Free Software Foundation; either version 3 of the License, or | 11 the Free Software Foundation; either version 3 of the License, or |
12 (at your option) any later version. | 12 (at your option) any later version. |
13 | 13 |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 } | 469 } |
470 } | 470 } |
471 else | 471 else |
472 idx++; | 472 idx++; |
473 } | 473 } |
474 } | 474 } |
475 | 475 |
476 static void | 476 static void |
477 print_stack_level () | 477 print_stack_level () |
478 { | 478 { |
479 fprintf (stderr, "current string stack depth = %d, ", tos - stack); | 479 fprintf (stderr, "current string stack depth = %ld, ", tos - stack); |
480 fprintf (stderr, "current integer stack depth = %d\n", isp - istack); | 480 fprintf (stderr, "current integer stack depth = %ld\n", isp - istack); |
481 pc++; | 481 pc++; |
482 } | 482 } |
483 | 483 |
484 /* turn: | 484 /* turn: |
485 foobar name(stuff); | 485 foobar name(stuff); |
486 into: | 486 into: |
487 foobar | 487 foobar |
488 name PARAMS ((stuff)); | 488 name PARAMS ((stuff)); |
489 and a blank line. | 489 and a blank line. |
490 */ | 490 */ |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 { | 1556 { |
1557 warning = 1; | 1557 warning = 1; |
1558 } | 1558 } |
1559 else | 1559 else |
1560 usage (); | 1560 usage (); |
1561 } | 1561 } |
1562 } | 1562 } |
1563 write_buffer (stack + 0, stdout); | 1563 write_buffer (stack + 0, stdout); |
1564 if (tos != stack) | 1564 if (tos != stack) |
1565 { | 1565 { |
1566 fprintf (stderr, "finishing with current stack level %d\n", | 1566 fprintf (stderr, "finishing with current stack level %ld\n", |
1567 tos - stack); | 1567 tos - stack); |
1568 return 1; | 1568 return 1; |
1569 } | 1569 } |
1570 return 0; | 1570 return 0; |
1571 } | 1571 } |
OLD | NEW |