From f87009b3a1615f097b749faf682fd5a0df8f9927 Mon Sep 17 00:00:00 2001 From: naba Date: Thu, 22 Mar 2007 10:39:20 +0000 Subject: [PATCH] * tagmanager/tm_tag.c, tagmanager/entry.h: Restored entry.h from svn and fixed to get function/prototype/member args list. Call tips also work fine now. git-svn-id: http://svn.gnome.org/svn/anjuta/trunk@2881 1dbfb86a-d425-0410-a06b-cb591aac69f6 --- ChangeLog | 6 ++++++ tagmanager/entry.h | 4 +--- tagmanager/tm_tag.c | 7 +++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba49762e..87556bc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-03-23 Naba Kumar + + * tagmanager/tm_tag.c, tagmanager/entry.h: Restored entry.h from + svn and fixed to get function/prototype/member args list. Call tips + also work fine now. + 2007-03-22 Naba Kumar * tagmanager/c.c: Enabled 'prototype' tags so that autocomplete diff --git a/tagmanager/entry.h b/tagmanager/entry.h index b7a0a382..0ba758fc 100644 --- a/tagmanager/entry.h +++ b/tagmanager/entry.h @@ -57,12 +57,10 @@ typedef struct sTagEntryInfo { boolean lineNumberEntry; /* pattern or line number entry */ unsigned long lineNumber; /* line number of tag */ fpos_t filePosition; /* file position of line containing tag */ - int bufferPosition; /* buffer position of line containing tag */ const char* language; /* language of source file */ boolean isFileScope; /* is tag visibile only within source file? */ boolean isFileEntry; /* is this just an entry for a file name? */ boolean truncateLine; /* truncate tag line at end of tag name? */ - int pointerOrder; /* The number of *'s this variable has */ const char *sourceFileName; /* name of source file */ const char *name; /* name of the tag */ const char *kindName; /* kind of tag */ @@ -77,7 +75,7 @@ typedef struct sTagEntryInfo { /* type (union/struct/etc.) and name for a variable or typedef. */ const char* typeRef [2]; /* e.g., "struct" and struct name */ - const char *arglist; /* Argument list for functions and macros with arguments */ + } extensionFields; /* list of extension fields*/ } tagEntryInfo; diff --git a/tagmanager/tm_tag.c b/tagmanager/tm_tag.c index 23610657..f9e38ea0 100644 --- a/tagmanager/tm_tag.c +++ b/tagmanager/tm_tag.c @@ -137,11 +137,10 @@ gboolean tm_tag_init(TMTag *tag, TMSourceFile *file, const tagEntryInfo *tag_ent tag->name = g_strdup(tag_entry->name); tag->type = get_tag_type(tag_entry->kindName); tag->atts.entry.local = tag_entry->isFileScope; - tag->atts.entry.pointerOrder = tag_entry->pointerOrder; + tag->atts.entry.pointerOrder = 0; /*FIXME: tag_entry->pointerOrder; */ tag->atts.entry.line = tag_entry->lineNumber; - if (NULL != tag_entry->extensionFields.arglist) - tag->atts.entry.arglist = g_strdup(tag_entry->extensionFields.arglist); - + if (NULL != tag_entry->extensionFields.signature) + tag->atts.entry.arglist = g_strdup(tag_entry->extensionFields.signature); if ((NULL != tag_entry->extensionFields.scope[1]) && (isalpha(tag_entry->extensionFields.scope[1][0]) || tag_entry->extensionFields.scope[1][0] == '_')) { -- 2.11.4.GIT