block: don't put spaces around :
[ironout.git] / name.h
blob816b9bb806b6186f194039300b44d71e59a2dcb4
1 #ifndef _NAME_H
2 #define _NAME_H
4 #include "ast.h"
5 #include "cfile.h"
6 #include "project.h"
8 #define NAME_VAR 0x0001
9 #define NAME_PARAM 0x0002
10 #define NAME_FIELD 0x0004
11 #define NAME_ENUMVAL 0x0008
12 #define NAME_FUNCTION 0x0010
13 #define NAME_TYPEDEF 0x0020
14 #define NAME_PARAMDECL 0x0040
16 #define NAME_ENUM 0x0100
17 #define NAME_STRUCT 0x0200
18 #define NAME_UNION 0x0400
19 #define NAME_LABEL 0x0800
21 #define NAME_STATIC 0x1000
22 #define NAME_EXTERN 0x2000
24 #define NAME_MOD_MASK 0x0F00
26 struct name {
27 char *name;
28 int flags;
31 struct project;
32 struct cfile;
34 struct name *name_init(struct node *node, int flags);
35 struct name *name_find(struct project *project,
36 struct cfile *cfile, char *location);
37 void name_free(struct name *name);
38 int guess_name_flags(struct node *node);
39 int modifiers_match(struct name *name, int flags);
41 #endif