1 /*
2 * Copyright (C) 2009 Dan Carpenter.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see http://www.gnu.org/copyleft/gpl.txt
16 */
17
18 /*
19 * Idea from Michael Stefaniuc and Vincent Béron's earlier WtoA
20 * check.
21 *
22 * Apparently when you are coding WINE, you are not allowed to call
23 * functions that end in capital 'A' from functions that end in
24 * capital 'W'
25 *
26 */
27
28 #include "smatch.h"
29
30 static int my_id;
31
32 static int in_w = 0;
33
34 static void match_function_def(struct symbol *sym)
35 {
36 char *func = get_function();
37 int len;
38
39 if (!func) {
|
1 /*
2 * Copyright (C) 2009 Dan Carpenter.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see http://www.gnu.org/copyleft/gpl.txt
16 */
17
18 /*
19 * Idea from Michael Stefaniuc and Vincent BĂ©ron's earlier WtoA
20 * check.
21 *
22 * Apparently when you are coding WINE, you are not allowed to call
23 * functions that end in capital 'A' from functions that end in
24 * capital 'W'
25 *
26 */
27
28 #include "smatch.h"
29
30 static int my_id;
31
32 static int in_w = 0;
33
34 static void match_function_def(struct symbol *sym)
35 {
36 char *func = get_function();
37 int len;
38
39 if (!func) {
|