Merge remote-tracking branch 'origin/release-v4.6.1'
[WRF.git] / var / da / makedepf90-2.8.8 / finddep.h
blob99d9bf7c49081008b2eadc5c561c271993834d5e
1 /*
2 * Copyright (C) 2000-2005 Erik Edelmann <Erik.Edelmann@iki.fi>
4 * This program is free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License version 2 as published by the Free Software
7 * Foundation.
9 * This program is distributed in the hope that it will be
10 * useful, but WITHOUT ANY WARRANTY; without even the implied
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the GNU General Public License for more
13 * details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the Free
17 * Software Foundation, Inc., 59 Temple Place, Suite 330,
18 * Boston, MA 02111-1307 USA
21 #include "list.h"
22 #include "xmalloc.h"
23 #include "global.h"
25 typedef struct {
26 char *sourcefile;
27 List *targets;
28 List *modules;
29 List *includes;
30 } Dependency;
33 typedef struct {
34 char *modulename;
35 char *modfile_name;
36 char *sourcefile;
37 } Module;
40 Module *module_new ();
41 Dependency *dependency_new ();
43 bool find_dep (char *file, Dependency *d, List **mods, const List *predef_macro);
45 int modstrcmp (const void *s, const void *m);