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
![]() ![]() |
Go to the source code of this file.
Typedefs | |
typedef struct sPtrArray | ptrArray |
typedef void(* | ptrArrayDeleteFunc) (void *data) |
Functions | |
ptrArray * | ptrArrayNew (ptrArrayDeleteFunc deleteFunc) |
unsigned int | ptrArrayAdd (ptrArray *const current, void *ptr) |
void * | ptrArrayRemoveLast (ptrArray *const current) |
void | ptrArrayCombine (ptrArray *const current, ptrArray *const from) |
void | ptrArrayClear (ptrArray *const current) |
unsigned int | ptrArrayCount (const ptrArray *const current) |
void * | ptrArrayItem (const ptrArray *const current, const unsigned int indx) |
void * | ptrArrayLast (const ptrArray *const current) |
void | ptrArrayDelete (ptrArray *const current) |
bool | ptrArrayHasTest (const ptrArray *const current, bool(*test)(const void *ptr, void *userData), void *userData) |
bool | ptrArrayHas (const ptrArray *const current, void *ptr) |
void | ptrArrayReverse (const ptrArray *const current) |
void | ptrArrayDeleteItem (ptrArray *const current, unsigned int indx) |
void | ptrArraySort (ptrArray *const current, int(*compare)(const void *, const void *)) |
Definition at line 22 of file ptrarray.h.
typedef void(* ptrArrayDeleteFunc) (void *data) |
Definition at line 24 of file ptrarray.h.
unsigned int ptrArrayAdd | ( | ptrArray *const | current, |
void * | ptr | ||
) |
Definition at line 47 of file ptrarray.c.
References sPtrArray::array, Assert, sPtrArray::count, sPtrArray::max, NULL, ptr, and xRealloc.
Referenced by addCompiledTagCommon(), addRegexTable(), anonResetMaybe(), attachParserFieldGeneric(), attachPromiseModifier(), collectModifiers(), colprintTableGetNewLine(), colprintTableNew(), common_flag_field_long(), corkTagFile(), defineScopeSeparator(), extendRegexTable(), matchMultitableRegexTable(), objPoolPut(), ptrArrayCombine(), queueTagEntry(), stringListAdd(), tokenUnreadFull(), uugcUngetC(), and uwiGetC().
void ptrArrayClear | ( | ptrArray *const | current | ) |
Definition at line 99 of file ptrarray.c.
References sPtrArray::array, Assert, sPtrArray::count, sPtrArray::deleteFunc, and NULL.
Referenced by clearPatternSet(), flashTokenBacklog(), matchMultitableRegexTable(), notifyRegexInputStart(), ptrArrayDelete(), stringListClear(), and uugcUngetC().
Definition at line 69 of file ptrarray.c.
References sPtrArray::array, Assert, sPtrArray::count, NULL, ptrArrayAdd(), and ptrArrayDelete().
Referenced by stringListCombine().
unsigned int ptrArrayCount | ( | const ptrArray *const | current | ) |
Definition at line 80 of file ptrarray.c.
References Assert, sPtrArray::count, and NULL.
Referenced by collectModifiers(), colprintHeaderPrint(), colprintLinesPrint(), colprintUpdateMaxWidths(), common_flag_field_long(), countEntryInCorkQueue(), dumpTstack(), extendRegexTable(), getEntryInCorkQueue(), getScopeSeparatorDynamic(), getTableIndexForName(), getTagScopeInformation(), hasScopeActionInRegex(), hasScopeActionInRegex0(), matchMultilineRegex(), matchMultitableRegex(), matchMultitableRegexTable(), matchRegex(), matchTagPattern(), objPoolGet(), objPoolPut(), printMultitableStatistics(), queueTagEntry(), regexNeedsMultilineBuffer(), runModifiers(), stringListCount(), stringListHasTest(), stringListIndex(), stringListPrint(), tokenReadFull(), uncorkTagFile(), uugcGetFilePosition(), uugcGetLineNumber(), uugciGetC(), and uugcInjectC().
void ptrArrayDelete | ( | ptrArray *const | current | ) |
Definition at line 111 of file ptrarray.c.
References sPtrArray::array, eFree(), NULL, and ptrArrayClear().
Referenced by attachParserFieldGeneric(), clearParserFields(), colprintTableDelete(), deletePattern(), deleteTable(), freeKindControlBlock(), freeLregexControlBlock(), freeModifiers(), objPoolDelete(), ptrArrayCombine(), runModifiers(), stringListDelete(), teardownAnon(), uncorkTagFile(), uugcDeactive(), and uwiDeactivate().
void ptrArrayDeleteItem | ( | ptrArray *const | current, |
unsigned int | indx | ||
) |
Definition at line 157 of file ptrarray.c.
References sPtrArray::array, sPtrArray::count, sPtrArray::deleteFunc, and ptr.
Referenced by stringListDeleteItemExtension().
bool ptrArrayHas | ( | const ptrArray *const | current, |
void * | ptr | ||
) |
Definition at line 138 of file ptrarray.c.
References ptr, ptrArrayHasTest(), and ptrEq().
Referenced by anonResetMaybe().
bool ptrArrayHasTest | ( | const ptrArray *const | current, |
bool(*)(const void *ptr, void *userData) | test, | ||
void * | userData | ||
) |
Definition at line 121 of file ptrarray.c.
References sPtrArray::array, Assert, sPtrArray::count, and NULL.
Referenced by ptrArrayHas().
void * ptrArrayItem | ( | const ptrArray *const | current, |
const unsigned int | indx | ||
) |
Definition at line 86 of file ptrarray.c.
References sPtrArray::array, Assert, and NULL.
Referenced by addCompiledTagCommon(), collectModifiers(), colprintHeaderPrint(), colprintLinePrint(), colprintLinesPrint(), colprintUpdateMaxWidths(), common_flag_field_long(), dumpTstack(), extendRegexTable(), foreachEntriesInScope(), getEntryInCorkQueue(), getParserFieldForIndex(), getScopeSeparatorDynamic(), getTableIndexForName(), hasScopeActionInRegex(), hasScopeActionInRegex0(), matchMultilineRegex(), matchMultitableRegex(), matchMultitableRegexTable(), matchRegex(), matchTagPattern(), pre_ptrn_flag_mtable_long(), printMultitableStatistics(), registerEntry(), runModifiers(), stringListHasTest(), stringListIndex(), stringListItem(), stringListPrint(), and uncorkTagFile().
void * ptrArrayLast | ( | const ptrArray *const | current | ) |
Definition at line 92 of file ptrarray.c.
References sPtrArray::array, Assert, sPtrArray::count, and NULL.
Referenced by colprintTableNew(), matchMultitableRegexTable(), objPoolGet(), ptrArrayRemoveLast(), stringListLast(), tokenReadFull(), uugcGetFilePosition(), uugcGetLineNumber(), uugciGetC(), uugcInjectC(), and uwiClearMarker().
ptrArray * ptrArrayNew | ( | ptrArrayDeleteFunc | deleteFunc | ) |
Definition at line 37 of file ptrarray.c.
References sPtrArray::array, sPtrArray::count, sPtrArray::deleteFunc, sPtrArray::max, and xMalloc.
Referenced by addRegexTable(), allocLregexControlBlock(), attachParserFieldGeneric(), attachPromiseModifier(), colprintTableNew(), common_flag_field_long(), corkTagFile(), defineScopeSeparator(), objPoolNew(), runModifiers(), setupAnon(), stringListNew(), tokenReadFull(), tokenUnreadFull(), uugcActivate(), and uwiActivate().
void * ptrArrayRemoveLast | ( | ptrArray *const | current | ) |
Definition at line 59 of file ptrarray.c.
References Assert, sPtrArray::count, NULL, and ptrArrayLast().
Referenced by matchMultitableRegexTable(), objPoolGet(), stringListRemoveLast(), tokenReadFull(), uugciGetC(), and uwiClearMarker().
void ptrArrayReverse | ( | const ptrArray *const | current | ) |
Definition at line 143 of file ptrarray.c.
References sPtrArray::array, Assert, sPtrArray::count, and NULL.
Referenced by stringListReverse().
void ptrArraySort | ( | ptrArray *const | current, |
int(*)(const void *, const void *) | compare | ||
) |
Definition at line 179 of file ptrarray.c.
References sPtrArray::array, sPtrArray::count, ptrArraySortCompare(), and ptrArraySortCompareVar.
Referenced by colprintTableSort().