ELinks 0.18.0
link.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "bfu/listmenu.h"
#include "bfu/menu.h"
#include "bookmarks/bookmarks.h"
#include "config/options.h"
#include "config/kbdbind.h"
#include "document/html/frames.h"
#include "document/html/parser/link.h"
#include "document/html/parser/parse.h"
#include "document/html/parser/stack.h"
#include "document/html/parser.h"
#include "document/html/renderer.h"
#include "globhist/globhist.h"
#include "mime/mime.h"
#include "protocol/uri.h"
#include "util/conv.h"
#include "util/error.h"
#include "util/memdebug.h"
#include "util/memory.h"
#include "util/string.h"
#include "document/html/internal.h"
Include dependency graph for link.c:

Data Structures

struct  lt_default_name

Macros

#define _GNU_SOURCE   /* strcasestr() */
#define APPEND(what)

Enumerations

enum  hlink_type {
  LT_UNKNOWN = 0 , LT_START , LT_PARENT , LT_NEXT ,
  LT_PREV , LT_CONTENTS , LT_INDEX , LT_GLOSSARY ,
  LT_CHAPTER , LT_SECTION , LT_SUBSECTION , LT_APPENDIX ,
  LT_HELP , LT_SEARCH , LT_BOOKMARK , LT_COPYRIGHT ,
  LT_AUTHOR , LT_ICON , LT_ALTERNATE , LT_ALTERNATE_LANG ,
  LT_ALTERNATE_MEDIA , LT_ALTERNATE_STYLESHEET , LT_STYLESHEET
}
enum  hlink_direction { LD_UNKNOWN = 0 , LD_REV , LD_REL }

Functions

void html_a (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
static char * truncate_label (char *label, int max_len)
static char * get_image_filename_from_src (int max_len, char *src)
static char * get_image_label (int max_len, char *label)
static void put_image_label (char *a, char *label, struct html_context *html_context)
static void html_img_do (char *a, char *object_src, struct html_context *html_context)
void html_img (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
void html_source (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
void put_link_line (const char *prefix, const char *linkname, char *link, const char *target, struct html_context *html_context)
void html_applet (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
void html_audio (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
static void html_iframe_do (char *a, char *object_src, struct html_context *html_context)
void html_iframe (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
void html_object (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
void html_embed (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
void html_video (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)
static const char * get_lt_default_name (struct hlink *link)
static void html_link_clear (struct hlink *link)
static int html_link_parse (struct html_context *html_context, char *a, struct hlink *link)
void html_link (struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5)

Variables

static struct lt_default_name lt_names []

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE   /* strcasestr() */

◆ APPEND

#define APPEND ( what)
Value:
do { \
add_to_string(&text, first ? " (" : ", "); \
add_to_string(&text, (what)); \
first = 0; \
} while (0)
static int first
Definition charsets.c:963

Enumeration Type Documentation

◆ hlink_direction

Enumerator
LD_UNKNOWN 
LD_REV 
LD_REL 

◆ hlink_type

enum hlink_type
Enumerator
LT_UNKNOWN 
LT_START 
LT_PARENT 
LT_NEXT 
LT_PREV 
LT_CONTENTS 
LT_INDEX 
LT_GLOSSARY 
LT_CHAPTER 
LT_SECTION 
LT_SUBSECTION 
LT_APPENDIX 
LT_HELP 
LT_SEARCH 
LT_BOOKMARK 
LT_COPYRIGHT 
LT_AUTHOR 
LT_ICON 
LT_ALTERNATE 
LT_ALTERNATE_LANG 
LT_ALTERNATE_MEDIA 
LT_ALTERNATE_STYLESHEET 
LT_STYLESHEET 

Function Documentation

◆ get_image_filename_from_src()

char * get_image_filename_from_src ( int max_len,
char * src )
static

◆ get_image_label()

char * get_image_label ( int max_len,
char * label )
static

◆ get_lt_default_name()

const char * get_lt_default_name ( struct hlink * link)
static

◆ html_a()

void html_a ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_applet()

void html_applet ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_audio()

void html_audio ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_embed()

void html_embed ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_iframe()

void html_iframe ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_iframe_do()

void html_iframe_do ( char * a,
char * object_src,
struct html_context * html_context )
static

◆ html_img()

void html_img ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_img_do()

void html_img_do ( char * a,
char * object_src,
struct html_context * html_context )
static

◆ html_link()

void html_link ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_link_clear()

void html_link_clear ( struct hlink * link)
static

◆ html_link_parse()

int html_link_parse ( struct html_context * html_context,
char * a,
struct hlink * link )
static

◆ html_object()

void html_object ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_source()

void html_source ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ html_video()

void html_video ( struct html_context * html_context,
char * a,
char * xxx3,
char * xxx4,
char ** xxx5 )

◆ put_image_label()

void put_image_label ( char * a,
char * label,
struct html_context * html_context )
static

◆ put_link_line()

void put_link_line ( const char * prefix,
const char * linkname,
char * link,
const char * target,
struct html_context * html_context )

◆ truncate_label()

char * truncate_label ( char * label,
int max_len )
static

Variable Documentation

◆ lt_names

struct lt_default_name lt_names[]
static