xref: /Universal-ctags/main/dependency.h (revision d86d377268b295b1ff670bd0f2fc9ae3689c5754)
1 /*
2  *
3  *  Copyright (c) 2016, Red Hat, Inc.
4  *  Copyright (c) 2016, Masatake YAMATO
5  *
6  *  Author: Masatake YAMATO <yamato@redhat.com>
7  *
8  *   This source code is released for free distribution under the terms of the
9  *   GNU General Public License version 2 or (at your option) any later version.
10  *
11  */
12 #ifndef CTAGS_MAIN_DEPENDENCY_H
13 #define CTAGS_MAIN_DEPENDENCY_H
14 
15 /*
16 *   INCLUDE FILES
17 */
18 #include "general.h"  /* must always come first */
19 
20 #include "types.h"
21 
22 
23 /*
24 *   DATA DECLARATIONS
25 */
26 typedef enum eDepType {
27 	DEPTYPE_KIND_OWNER,
28 	DEPTYPE_SUBPARSER,
29 	DEPTYPE_FOREIGNER,
30 	COUNT_DEPTYPES,
31 } depType;
32 
33 struct sParserDependency {
34 	depType type;
35 	const char *upperParser;
36 	void *data;
37 };
38 
39 struct sSlaveParser {
40 	depType type;
41 	langType id;
42 	void *data;
43 	slaveParser *next;
44 };
45 
46 #endif	/* CTAGS_MAIN_DEPENDENCY_H */
47