![]() |
MHEG5
22.3.0
|
syntax item block manager Contains functions to create a mini memory manager for allocating syntax list items More...
#include "fpa1_syn.h"
Go to the source code of this file.
Functions | |
fpa1_syntaxList * | fpa1_getTagItem (void) |
int | fpa1_freeUnusedData (void) |
fpa1_syntaxList * | fpa1_delFirstItem (fpa1_syntaxList *firstComp) |
int | fpa1_delList (fpa1_syntaxList *firstComp) |
syntax item block manager Contains functions to create a mini memory manager for allocating syntax list items
fpa1_syntaxList* fpa1_delFirstItem | ( | fpa1_syntaxList * | firstComp | ) |
cleans up a tree of fpa1_syntaxList items. Doesn't actually delete the memory used by the structures since they are freed as a block on parser exit (using fpa1_deleteEntireList() ).
firstComp | list item to be deleted |
int fpa1_delList | ( | fpa1_syntaxList * | firstComp | ) |
Recursively clean up a tree of fpa1_syntaxItems We don't need to actually delete the structures as that is done by the final call to fpa1_deleteEntireList() on return of the parser.
firstComp | list item to be deleted |
int fpa1_freeUnusedData | ( | void | ) |
Note: This function deletes all remaining strings within the list (as only unused strings will get this far).
fpa1_syntaxList* fpa1_getTagItem | ( | void | ) |
Gets the next syntaxItem from the current syntaxBlock. Creates a new syntaxblock if necessary. fpa1_syntaxBlockInit() MUST be have been called before calling this function.