ELinks 0.18.0
docdata.h File Reference
#include "document/document.h"
#include "util/memory.h"
Include dependency graph for docdata.h:
This graph shows which files directly or indirectly include this file:

Macros

#define LINES_GRANULARITY   0x7F
 
#define LINE_GRANULARITY   0x0F
 
#define LINK_GRANULARITY   0x7F
 
#define ALIGN_LINES(x, o, n)   mem_align_alloc(x, o, n, LINES_GRANULARITY)
 
#define ALIGN_LINE(x, o, n)   mem_align_alloc(x, o, n, LINE_GRANULARITY)
 
#define ALIGN_LINK(x, o, n)   mem_align_alloc(x, o, n, LINK_GRANULARITY)
 
#define realloc_points(link, size)    mem_align_alloc(&(link)->points, (link)->npoints, size, 0)
 

Functions

struct linerealloc_lines (struct document *document, int y)
 

Macro Definition Documentation

◆ ALIGN_LINE

#define ALIGN_LINE ( x,
o,
n )   mem_align_alloc(x, o, n, LINE_GRANULARITY)

◆ ALIGN_LINES

#define ALIGN_LINES ( x,
o,
n )   mem_align_alloc(x, o, n, LINES_GRANULARITY)

◆ ALIGN_LINK

#define ALIGN_LINK ( x,
o,
n )   mem_align_alloc(x, o, n, LINK_GRANULARITY)

◆ LINE_GRANULARITY

#define LINE_GRANULARITY   0x0F

◆ LINES_GRANULARITY

#define LINES_GRANULARITY   0x7F

◆ LINK_GRANULARITY

#define LINK_GRANULARITY   0x7F

◆ realloc_points

#define realloc_points ( link,
size )    mem_align_alloc(&(link)->points, (link)->npoints, size, 0)

Function Documentation

◆ realloc_lines()

struct line * realloc_lines ( struct document * document,
int y )