Hubbub $Id$
Macros | Functions | Variables
initial.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"

Macros

#define S(s)   { s, sizeof s - 1 }
 
#define S(s)   (uint8_t *) s, sizeof s - 1
 
#define S(s)   (uint8_t *) s, sizeof s - 1
 

Functions

hubbub_error handle_initial (hubbub_treebuilder *treebuilder, const hubbub_token *token)
 Handle token in initial insertion mode. More...
 

Variables

struct {
   const char *   name
 
   size_t   len
 
public_doctypes []
 

Macro Definition Documentation

◆ S [1/3]

#define S (   s)    { s, sizeof s - 1 }

◆ S [2/3]

#define S (   s)    (uint8_t *) s, sizeof s - 1

◆ S [3/3]

#define S (   s)    (uint8_t *) s, sizeof s - 1

Function Documentation

◆ handle_initial()

hubbub_error handle_initial ( hubbub_treebuilder treebuilder,
const hubbub_token token 
)

Handle token in initial insertion mode.

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

Variable Documentation

◆ len

size_t len

◆ name

const char* name

◆ 

struct { ... } public_doctypes[]