Some small tagmanager fixes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@492 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
f741c89b4f
commit
8823f2dbe5
@ -8,6 +8,10 @@
|
||||
* tagmanager/tm_source_file.c: Fixed bug which prevented tag creation
|
||||
for the first opened file.
|
||||
* src/document.c, src/callbacks.c: Removed unused code.
|
||||
* tagmanager/sh.c: Fixed missing tags beginning with underscore.
|
||||
* tagmanager/get.c: Fixed problem in preprocessor directive handling.
|
||||
* tagmanager/c.c: Fixed identification of prototypes of functions
|
||||
returning wchar_t * without the extern keyword.
|
||||
|
||||
|
||||
2006-06-26 Nick Treleaven <nick.treleaven@btinternet.com>
|
||||
|
@ -1671,7 +1671,8 @@ static boolean skipPostArgumentStuff (statementInfo *const st,
|
||||
case KEYWORD_THROW: skipParens (); break;
|
||||
case KEYWORD_CONST: break;
|
||||
case KEYWORD_TRY: break;
|
||||
case KEYWORD_VOLATILE: break;
|
||||
case KEYWORD_VOLATILE: break;
|
||||
case KEYWORD_WCHAR_T: st->declaration = DECL_BASE; break;
|
||||
|
||||
case KEYWORD_CATCH: case KEYWORD_CLASS:
|
||||
case KEYWORD_EXPLICIT: case KEYWORD_EXTERN:
|
||||
|
@ -320,7 +320,10 @@ static void directiveDefine (const int c)
|
||||
if (isident1 (c))
|
||||
{
|
||||
readDefineTag (c, Cpp.directive.name, ¶meterized);
|
||||
makeDefineTag (vStringValue (Cpp.directive.name), parameterized);
|
||||
if (! isIgnore ())
|
||||
/// TODO
|
||||
// the second argument need to be tested, not sure if TRUE is correct
|
||||
makeDefineTag (vStringValue (Cpp.directive.name), TRUE);
|
||||
}
|
||||
Cpp.directive.state = DRCTV_NONE;
|
||||
}
|
||||
@ -376,7 +379,7 @@ static boolean directiveHash (const int c)
|
||||
*/
|
||||
static boolean handleDirective (const int c)
|
||||
{
|
||||
boolean ignore = FALSE;
|
||||
boolean ignore = isIgnore ();
|
||||
|
||||
switch (Cpp.directive.state)
|
||||
{
|
||||
|
@ -74,7 +74,7 @@ static void findShTags (void)
|
||||
while (isspace ((int) *cp))
|
||||
++cp;
|
||||
}
|
||||
if (! isalnum ((int) *cp))
|
||||
if (! (isalnum ((int) *cp) || *cp == '_'))
|
||||
continue;
|
||||
while (isalnum ((int) *cp) || *cp == '_')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user