Warning fix (Andrew Stanaski).
[nedit.git] / source / tags.h
blob7e7ba0db5190cee0c38d641c64278792c659bab7
1 /* $Id: tags.h,v 1.13 2002/09/06 19:13:08 n8gray Exp $ */
3 #ifndef NEDIT_TAGS_H_INCLUDED
4 #define NEDIT_TAGS_H_INCLUDED
6 #include "nedit.h"
8 #include <X11/Intrinsic.h>
9 #include <X11/X.h>
10 #include <time.h>
12 typedef struct _tagFile {
13 struct _tagFile *next;
14 char *filename;
15 time_t date;
16 Boolean loaded;
17 short index;
18 } tagFile;
20 extern tagFile *TagsFileList; /* list of loaded tags files */
21 extern tagFile *TipsFileList; /* list of loaded calltips tag files */
23 /* file_type and search_type arguments are to select between tips and tags,
24 and should be one of TAG or TIP. TIP_FROM_TAG is for ShowTipString. */
25 enum mode {TAG, TIP_FROM_TAG, TIP};
27 int AddRelTagsFile(const char *tagSpec, const char *windowPath,
28 int file_type);
29 /* tagSpec is a colon-delimited list of filenames */
30 int AddTagsFile(const char *tagSpec, int file_type);
31 int DeleteTagsFile(const char *tagSpec, int file_type);
32 int LookupTag(const char *name, const char **file, int *lang,
33 const char **searchString, int * pos, const char **path,
34 int search_type);
36 /* Routines for handling tags or tips from the current selection */
37 void FindDefinition(WindowInfo *window, Time time, const char *arg);
38 void FindDefCalltip(WindowInfo *window, Time time, const char *arg);
40 /* Display (possibly finding first) a calltip. Search type can only be
41 TIP or TIP_FROM_TAG here. */
42 int ShowTipString(WindowInfo *window, char *text, Boolean anchored,
43 int pos, Boolean lookup, int search_type, int hAlign, int vAlign,
44 int alignMode);
46 #endif /* NEDIT_TAGS_H_INCLUDED */