Set up current working directory on File->Open
[gscope.git] / tags.h
blobcca2dcd02f5a24aec1faadb4f42c5d9fb9434dc2
1 /*
2 * (c) 2010 Cyrill Gorcunov, gorcunov@gmail.com
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or (at
7 * your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20 #ifndef TAGS_H
21 #define TAGS_H
23 #include "list.h"
24 #include "backend-proto.h"
26 enum tag_type {
27 TAG_NONE,
29 TAG_CLASS,
30 TAG_MACRO,
31 TAG_ENUMERATOR,
32 TAG_FUNCTION,
33 TAG_ENUM,
34 TAG_LOCAL,
35 TAG_MEMBER,
36 TAG_NAMESPACE,
37 TAG_PROTOTYPE,
38 TAG_STRUCTURE,
39 TAG_TYPEDEF,
40 TAG_UNION,
41 TAG_VARIABLE,
42 TAG_EXTERNVAR,
44 TAG_MAX
47 struct tag {
48 struct list_head list;
49 void *data_copy;
50 unsigned long key;
52 const char *symtype;
53 char *name;
54 char *file;
55 unsigned long line;
56 int type;
59 void tag_dump(struct tag *t);
60 struct tag *tag_name_lookup(struct list_head *head, char *str);
61 struct tag *tag_line_lookup(struct list_head *head, unsigned long line);
62 struct tag *tag_key_lookup(struct list_head *head, unsigned long key);
63 void tags_free(struct list_head *head);
64 struct list_head *tag_parse_file(char *name);
66 #endif/* TAGS_H */