From b1dd01f67a48785678209b90c1b0e4f44621c146 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Wed, 12 Mar 2008 21:53:48 -0300 Subject: Add a tags interface to xedit. To use the tags, first create a tags file with a command like "ctags -R". The interface can be disabled with resources, see the updated man page. Tag files are searched descending to the root directory. Multiple tags files are properly handled, and multiple symbol definitions can be searched. --- xedit.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'xedit.h') diff --git a/xedit.h b/xedit.h index 1c86f6b..326071e 100644 --- a/xedit.h +++ b/xedit.h @@ -66,6 +66,7 @@ typedef struct _xedit_hints { typedef enum {NO_READ, READ_OK, WRITE_OK} FileAccess; typedef struct _XeditLispData XeditLispData; +typedef struct _XeditTagsInfo XeditTagsInfo; #define CHANGED_BIT 0x01 #define EXISTS_BIT 0x02 @@ -81,6 +82,7 @@ typedef struct _xedit_flist_item { XawTextPropertyList *properties; XawTextWrapMode wrap; XeditLispData *xldata; + XeditTagsInfo *tags; } xedit_flist_item; extern struct _xedit_flist { @@ -101,6 +103,8 @@ extern struct _app_resources { char *changed_pixmap_name; char *position_format; char *auto_replace; + char *tagsName; + Boolean loadTags; } app_resources; extern Widget topwindow, textwindow, labelwindow, filenamewindow, messwidget; @@ -177,6 +181,10 @@ void UnsetTextProperties(xedit_flist_item*); void CreateEditModePopup(Widget); void SetEditModeMenu(void); +/* tags.c */ +void TagsAction(Widget, XEvent*, String*, Cardinal*); +void SearchTagsFile(xedit_flist_item *item); + /* externs for system replacement functions */ #ifdef NEED_STRCASECMP int strcasecmp(const char *s1, const char *s2); -- cgit v1.2.3