Hubbub $Id$
Classes | Macros | Typedefs | Functions
in_body.c File Reference
#include <assert.h>
#include <string.h>
#include "treebuilder/modes.h"
#include "treebuilder/internal.h"
#include "treebuilder/treebuilder.h"
#include "utils/utils.h"

Classes

struct  bookmark
 Bookmark for formatting list. More...
 

Macros

#define PROMPT   "This is a searchable index. Insert your search keywords here: "
 

Typedefs

typedef struct bookmark bookmark
 Bookmark for formatting list. More...
 

Functions

hubbub_error handle_in_body (hubbub_treebuilder *treebuilder, const hubbub_token *token)
 Handle tokens in "in body" insertion mode. More...
 
hubbub_error aa_insert_into_foster_parent (hubbub_treebuilder *treebuilder, void *node, void **inserted)
 Adoption agency: locate foster parent and insert node into it. More...
 

Macro Definition Documentation

◆ PROMPT

#define PROMPT   "This is a searchable index. Insert your search keywords here: "

Typedef Documentation

◆ bookmark

typedef struct bookmark bookmark

Bookmark for formatting list.

Used in adoption agency

Function Documentation

◆ aa_insert_into_foster_parent()

hubbub_error aa_insert_into_foster_parent ( hubbub_treebuilder treebuilder,
void *  node,
void **  inserted 
)

Adoption agency: locate foster parent and insert node into it.

Parameters
treebuilderThe treebuilder instance
nodeThe node to insert
insertedPointer to location to receive inserted node
Returns
HUBBUB_OK on success, appropriate error otherwise

◆ handle_in_body()

hubbub_error handle_in_body ( hubbub_treebuilder treebuilder,
const hubbub_token token 
)

Handle tokens in "in body" insertion mode.

Parameters
treebuilderThe treebuilder instance
tokenThe token to process
Returns
True to reprocess the token, false otherwise
Todo:
parse error
Todo:
parse error