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
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

trashbox.h File Reference
#include "general.h"
Include dependency graph for trashbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_TRASH_BOX(PTR, PROC)   trashBoxPut(NULL,PTR,(TrashBoxDestroyItemProc)PROC)
 
#define DEFAULT_TRASH_BOX_TAKE_BACK(PTR)   trashBoxTakeBack(NULL,PTR)
 
#define PARSER_TRASH_BOX(PTR, PROC)   parserTrashBoxPut(PTR,(TrashBoxDestroyItemProc)PROC)
 
#define PARSER_TRASH_BOX_TAKE_BACK(PTR)   parserTrashBoxTakeBack(PTR)
 

Typedefs

typedef void(* TrashBoxDestroyItemProc) (void *)
 
typedef struct sTrashBox TrashBox
 

Functions

TrashBoxtrashBoxNew (void)
 
TrashBoxtrashBoxStack (TrashBox *trash_box)
 
void trashBoxDelete (TrashBox *trash_box)
 
void * trashBoxPut (TrashBox *trash_box, void *item, TrashBoxDestroyItemProc destroy)
 
TrashBoxDestroyItemProc trashBoxTakeBack (TrashBox *trash_box, void *item)
 
void trashBoxFree (TrashBox *trash_box, void *item)
 
void trashBoxMakeEmpty (TrashBox *trash_box)
 
void * parserTrashBoxPut (void *item, TrashBoxDestroyItemProc destroy)
 
TrashBoxDestroyItemProc parserTrashBoxTakeBack (void *item)
 

Macro Definition Documentation

◆ DEFAULT_TRASH_BOX

#define DEFAULT_TRASH_BOX (   PTR,
  PROC 
)    trashBoxPut(NULL,PTR,(TrashBoxDestroyItemProc)PROC)

Definition at line 34 of file trashbox.h.

◆ DEFAULT_TRASH_BOX_TAKE_BACK

#define DEFAULT_TRASH_BOX_TAKE_BACK (   PTR)    trashBoxTakeBack(NULL,PTR)

Definition at line 35 of file trashbox.h.

◆ PARSER_TRASH_BOX

#define PARSER_TRASH_BOX (   PTR,
  PROC 
)    parserTrashBoxPut(PTR,(TrashBoxDestroyItemProc)PROC)

Definition at line 37 of file trashbox.h.

◆ PARSER_TRASH_BOX_TAKE_BACK

#define PARSER_TRASH_BOX_TAKE_BACK (   PTR)    parserTrashBoxTakeBack(PTR)

Definition at line 38 of file trashbox.h.

Typedef Documentation

◆ TrashBox

typedef struct sTrashBox TrashBox

Definition at line 28 of file trashbox.h.

◆ TrashBoxDestroyItemProc

typedef void(* TrashBoxDestroyItemProc) (void *)

Definition at line 27 of file trashbox.h.

Function Documentation

◆ parserTrashBoxPut()

void * parserTrashBoxPut ( void *  item,
TrashBoxDestroyItemProc  destroy 
)

Definition at line 191 of file trashbox.c.

References parserTrashBox, and trashBoxPut().

◆ parserTrashBoxTakeBack()

TrashBoxDestroyItemProc parserTrashBoxTakeBack ( void *  item)

Definition at line 196 of file trashbox.c.

References parserTrashBox, and trashBoxTakeBack().

◆ trashBoxDelete()

void trashBoxDelete ( TrashBox trash_box)

◆ trashBoxFree()

void trashBoxFree ( TrashBox trash_box,
void *  item 
)

Definition at line 94 of file trashbox.c.

References defaultTrashBox, and trashBoxTakeBack().

◆ trashBoxMakeEmpty()

void trashBoxMakeEmpty ( TrashBox trash_box)

Definition at line 85 of file trashbox.c.

References defaultTrashBox, sTrashBox::trash, and trashMakeEmpty().

Referenced by matchTagPattern(), and trashBoxDelete().

◆ trashBoxNew()

TrashBox * trashBoxNew ( void  )

Definition at line 36 of file trashbox.c.

References NULL, sTrashBox::trash, and xMalloc.

Referenced by initDefaultTrashBox(), initParserTrashBox(), matchTagPattern(), and trashBoxStack().

◆ trashBoxPut()

void * trashBoxPut ( TrashBox trash_box,
void *  item,
TrashBoxDestroyItemProc  destroy 
)

Definition at line 65 of file trashbox.c.

References defaultTrashBox, sTrashBox::trash, and trashPut().

Referenced by matchTagPattern(), parserTrashBoxPut(), and trashBoxStack().

◆ trashBoxStack()

TrashBox * trashBoxStack ( TrashBox trash_box)

Definition at line 43 of file trashbox.c.

References defaultTrashBox, trashBoxDelete(), trashBoxNew(), and trashBoxPut().

◆ trashBoxTakeBack()

TrashBoxDestroyItemProc trashBoxTakeBack ( TrashBox trash_box,
void *  item 
)

Definition at line 74 of file trashbox.c.

References defaultTrashBox, sTrashBox::trash, and trashTakeBack().

Referenced by parserTrashBoxTakeBack(), and trashBoxFree().