OLD | NEW |
1 /* Copyright 2011-2012 Free Software Foundation, Inc. | 1 /* Copyright 2011-2013 Free Software Foundation, Inc. |
2 | 2 |
3 This file is part of GDB. | 3 This file is part of GDB. |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify | 5 This program is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
7 the Free Software Foundation; either version 3 of the License, or | 7 the Free Software Foundation; either version 3 of the License, or |
8 (at your option) any later version. | 8 (at your option) any later version. |
9 | 9 |
10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
25 callfunc (int (*funcp) (void)) | 25 callfunc (int (*funcp) (void)) |
26 { | 26 { |
27 return funcp () * 2; | 27 return funcp () * 2; |
28 } | 28 } |
29 | 29 |
30 int | 30 int |
31 main (void) | 31 main (void) |
32 { | 32 { |
33 return callfunc (func); | 33 return callfunc (func); |
34 } | 34 } |
OLD | NEW |