geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include "general.h"
#include "ctags.h"
#include "debug.h"
#include "options.h"
#include "options_p.h"
#include "parse_p.h"
#include "routines.h"
#include "trashbox.h"
#include "writer_p.h"
#include "xtag.h"
#include "xtag_p.h"
#include <string.h>
#include <ctype.h>
Go to the source code of this file.
Classes | |
struct | sXtagObject |
Typedefs | |
typedef struct sXtagObject | xtagObject |
typedef bool(* | xtagPredicate) (xtagObject *pobj, langType language, const void *user_data) |
Variables | |
static xtagDefinition | xtagDefinitions [] |
static unsigned int | xtagObjectUsed |
static unsigned int | xtagObjectAllocated |
static xtagObject * | xtagObjects |
typedef struct sXtagObject xtagObject |
typedef bool(* xtagPredicate) (xtagObject *pobj, langType language, const void *user_data) |
int countXtags | ( | void | ) |
Definition at line 327 of file xtag.c.
References xtagObjectUsed.
Referenced by copyTagEntry(), isTagExtraBitMarked(), makeExtraDescriptionsPseudoTags(), markTagExtraBitFull(), renderFieldExtras(), and resetXtags().
int defineXtag | ( | xtagDefinition * | def, |
langType | language | ||
) |
Definition at line 349 of file xtag.c.
References Assert, sXtagObject::def, sXtagDefinition::description, getLanguageName(), sXtagObject::language, sXtagDefinition::letter, sXtagDefinition::name, NUL_XTAG_LETTER, sXtagObject::sibling, updateSiblingXtag(), verbose(), xRealloc, XTAG_UNKNOWN, xtagObjectAllocated, xtagObjects, xtagObjectUsed, and sXtagDefinition::xtype.
Referenced by installXtagDefinition(), and processLangDefineExtra().
|
static |
Definition at line 52 of file xtag.c.
References sXtagDefinition::enabled, and enableDefaultFileKind().
bool enableXtag | ( | xtagType | type, |
bool | state | ||
) |
Definition at line 259 of file xtag.c.
References Assert, sXtagDefinition::enable, sXtagDefinition::enabled, getXtagDefinition(), sXtagDefinition::isEnabled, isXtagEnabled(), isXtagFixed(), and NULL.
Referenced by checkOptions(), enableLanguageXtag(), processExtraTagsOption(), resetXtags(), setBooleanToXtagWithWarning(), and tm_ctags_init().
xtagDefinition * getXtagDefinition | ( | xtagType | type | ) |
Definition at line 92 of file xtag.c.
References Assert, sXtagObject::def, getXtagObject(), and xtagObjectUsed.
Referenced by enableXtag(), getXtagDescription(), getXtagName(), isXtagEnabled(), and isXtagFixed().
const char * getXtagDescription | ( | xtagType | type | ) |
Definition at line 299 of file xtag.c.
References sXtagDefinition::description, getXtagDefinition(), and NULL.
Referenced by makeExtraDescriptionPseudoTag().
const char * getXtagName | ( | xtagType | type | ) |
Definition at line 290 of file xtag.c.
References getXtagDefinition(), sXtagDefinition::name, and NULL.
Referenced by makeExtraDescriptionPseudoTag(), renderFieldExtras(), and writeCtagsPtagEntry().
|
static |
Definition at line 86 of file xtag.c.
References Assert, xtagObjects, and xtagObjectUsed.
Referenced by getXtagDefinition(), getXtagOwner(), xtagColprintAddLanguageLines(), and xtagColprintAddLine().
int getXtagOwner | ( | xtagType | type | ) |
Definition at line 285 of file xtag.c.
References getXtagObject(), and sXtagObject::language.
Referenced by makeExtraDescriptionsPseudoTags(), and resetXtags().
xtagType getXtagTypeForLetter | ( | char | letter | ) |
Definition at line 127 of file xtag.c.
References getXtagTypeGeneric(), LANG_IGNORE, and xtagEqualByLetter().
Referenced by processExtraTagsOption().
Definition at line 143 of file xtag.c.
References getXtagTypeGeneric(), name, and xtagEqualByNameAndLanguage().
Referenced by common_flag_extra_long(), enableLanguageXtag(), and processExtraTagsOption().
|
static |
Definition at line 100 of file xtag.c.
References initializeParser(), LANG_AUTO, LANG_IGNORE, XTAG_UNKNOWN, xtagObjects, and xtagObjectUsed.
Referenced by getXtagTypeForLetter(), and getXtagTypeForNameAndLanguage().
void initXtagObjects | ( | void | ) |
Definition at line 308 of file xtag.c.
References ARRAY_SIZE, sXtagObject::def, DEFAULT_TRASH_BOX, eFreeIndirect(), LANG_IGNORE, sXtagObject::language, sXtagObject::sibling, xMalloc, XTAG_UNKNOWN, xtagDefinitions, xtagObjectAllocated, xtagObjects, xtagObjectUsed, and sXtagDefinition::xtype.
Referenced by ctags_cli_main(), and tm_ctags_init().
bool isCommonXtag | ( | xtagType | type | ) |
Definition at line 280 of file xtag.c.
References XTAG_COUNT.
|
static |
Definition at line 34 of file xtag.c.
References isDestinationStdout(), writerCanPrintPtag(), and writerPrintPtagByDefault().
|
static |
Definition at line 44 of file xtag.c.
References writerCanPrintPtag().
bool isXtagEnabled | ( | xtagType | type | ) |
Definition at line 235 of file xtag.c.
References Assert, sXtagDefinition::enabled, getXtagDefinition(), and sXtagDefinition::isEnabled.
Referenced by checkOptions(), directiveUndef(), enableXtag(), findPerlTags(), includeTag(), initializeDependencies(), isTagWritable(), makeConstTag(), makeDefineTag(), makeExtraDescriptionsPseudoTags(), makeExtraTagEntry(), makeFileTag(), makePromise(), makeQualifiedTagEntry(), makeTag(), matchMultilineRegex(), matchRegex(), openTagFile(), parsePackage(), uncorkTagFile(), writeTagEntry(), and xtagColprintAddLine().
bool isXtagFixed | ( | xtagType | type | ) |
Definition at line 247 of file xtag.c.
References Assert, getXtagDefinition(), and sXtagDefinition::isFixed.
Referenced by enableXtag(), and xtagColprintAddLine().
Definition at line 383 of file xtag.c.
References sXtagObject::sibling, and xtagObjects.
Referenced by enableLanguageXtag().
|
static |
Definition at line 332 of file xtag.c.
References Assert, sXtagObject::def, sXtagDefinition::name, name, sXtagObject::sibling, XTAG_UNKNOWN, and xtagObjects.
Referenced by defineXtag().
void xtagColprintAddCommonLines | ( | struct colprintTable * | table | ) |
Definition at line 175 of file xtag.c.
References XTAG_COUNT, and xtagColprintAddLine().
Referenced by processListExtrasOption().
void xtagColprintAddLanguageLines | ( | struct colprintTable * | table, |
langType | language | ||
) |
Definition at line 181 of file xtag.c.
References getXtagObject(), sXtagObject::language, XTAG_COUNT, xtagColprintAddLine(), and xtagObjectUsed.
Referenced by processListExtrasOption().
|
static |
Definition at line 154 of file xtag.c.
References colprintLineAppendColumnBool(), colprintLineAppendColumnChar(), colprintLineAppendColumnCString(), colprintTableGetNewLine(), sXtagObject::def, sXtagDefinition::description, getLanguageName(), getXtagObject(), isXtagEnabled(), isXtagFixed(), LANG_IGNORE, sXtagObject::language, sXtagDefinition::letter, line, sXtagDefinition::name, NUL_XTAG_LETTER, RSV_NONE, and sXtagDefinition::xtype.
Referenced by xtagColprintAddCommonLines(), and xtagColprintAddLanguageLines().
|
static |
Definition at line 192 of file xtag.c.
References colprintLineGetColumn(), and RSV_NONE.
Referenced by xtagColprintTablePrint().
struct colprintTable * xtagColprintTableNew | ( | void | ) |
Definition at line 148 of file xtag.c.
References colprintTableNew(), and NULL.
Referenced by processListExtrasOption().
void xtagColprintTablePrint | ( | struct colprintTable * | table, |
bool | withListHeader, | ||
bool | machinable, | ||
FILE * | fp | ||
) |
Definition at line 228 of file xtag.c.
References colprintTablePrint(), colprintTableSort(), and xtagColprintCompareLines().
Referenced by processListExtrasOption().
|
static |
Definition at line 121 of file xtag.c.
References sXtagObject::def, and sXtagDefinition::letter.
Referenced by getXtagTypeForLetter().
|
static |
Definition at line 132 of file xtag.c.
References sXtagObject::def, LANG_AUTO, sXtagObject::language, sXtagDefinition::name, and name.
Referenced by getXtagTypeForNameAndLanguage().
|
static |
Definition at line 58 of file xtag.c.
Referenced by initXtagObjects().
|
static |
Definition at line 83 of file xtag.c.
Referenced by defineXtag(), and initXtagObjects().
|
static |
Definition at line 84 of file xtag.c.
Referenced by defineXtag(), getXtagObject(), getXtagTypeGeneric(), initXtagObjects(), nextSiblingXtag(), and updateSiblingXtag().
|
static |
Definition at line 82 of file xtag.c.
Referenced by countXtags(), defineXtag(), getXtagDefinition(), getXtagObject(), getXtagTypeGeneric(), initXtagObjects(), and xtagColprintAddLanguageLines().