ELinks 0.18.0
cmdline.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "elinks.h"
#include "config/cmdline.h"
#include "config/conf.h"
#include "config/options.h"
#include "config/opttypes.h"
#include "intl/libintl.h"
#include "network/dns.h"
#include "protocol/uri.h"
#include "session/session.h"
#include "util/error.h"
#include "util/file.h"
#include "util/lists.h"
#include "util/memory.h"
#include "util/string.h"
Include dependency graph for cmdline.c:

Data Structures

struct  remote_method
 

Macros

#define skipback_whitespace(start, S)    while ((start) < (S) && isspace((unsigned char)(S)[-1])) (S)--;
 
#define gettext_nonempty(x)   (*(x) ? gettext(x) : (x))
 
#define ALIGN_WIDTH   20
 

Enumerations

enum  remote_method_enum {
  REMOTE_METHOD_OPENURL , REMOTE_METHOD_PING , REMOTE_METHOD_XFEDOCOMMAND , REMOTE_METHOD_ADDBOOKMARK ,
  REMOTE_METHOD_INFOBOX , REMOTE_METHOD_RELOAD , REMOTE_METHOD_SEARCH , REMOTE_METHOD_NOT_SUPPORTED
}
 

Functions

static enum retval parse_options_ (int argc, char *argv[], struct option *opt, struct string_list_item list *url_list)
 
enum retval parse_options (int argc, char *argv[], struct string_list_item list *url_list)
 
static const char * eval_cmd (struct option *o, char ***argv, int *argc)
 
static const char * forcehtml_cmd (struct option *o, char ***argv, int *argc)
 
static const char * lookup_cmd (struct option *o, char ***argv, int *argc)
 
static const char * remote_cmd (struct option *o, char ***argv, int *argc)
 
static const char * version_cmd (struct option *o, char ***argv, int *argc)
 
static void print_option_desc (const char *desc)
 
static void print_full_help_outer (struct option *tree, const char *path)
 
static void print_full_help_inner (struct option *tree, const char *path, int trees)
 
static void print_short_help (void)
 
static const char * printhelp_cmd (struct option *option, char ***argv, int *argc)
 
static const char * redir_cmd (struct option *option, char ***argv, int *argc)
 
static const char * printconfigdump_cmd (struct option *option, char ***argv, int *argc)
 

Variables

static char * remote_url
 
union option_info cmdline_options_info []
 

Macro Definition Documentation

◆ ALIGN_WIDTH

#define ALIGN_WIDTH   20

◆ gettext_nonempty

#define gettext_nonempty ( x)    (*(x) ? gettext(x) : (x))

◆ skipback_whitespace

#define skipback_whitespace ( start,
S )    while ((start) < (S) && isspace((unsigned char)(S)[-1])) (S)--;

Enumeration Type Documentation

◆ remote_method_enum

Enumerator
REMOTE_METHOD_OPENURL 
REMOTE_METHOD_PING 
REMOTE_METHOD_XFEDOCOMMAND 
REMOTE_METHOD_ADDBOOKMARK 
REMOTE_METHOD_INFOBOX 
REMOTE_METHOD_RELOAD 
REMOTE_METHOD_SEARCH 
REMOTE_METHOD_NOT_SUPPORTED 

Function Documentation

◆ eval_cmd()

static const char * eval_cmd ( struct option * o,
char *** argv,
int * argc )
static

◆ forcehtml_cmd()

static const char * forcehtml_cmd ( struct option * o,
char *** argv,
int * argc )
static

◆ lookup_cmd()

static const char * lookup_cmd ( struct option * o,
char *** argv,
int * argc )
static

◆ parse_options()

enum retval parse_options ( int argc,
char * argv[],
struct string_list_item list * url_list )

◆ parse_options_()

static enum retval parse_options_ ( int argc,
char * argv[],
struct option * opt,
struct string_list_item list * url_list )
static

◆ print_full_help_inner()

static void print_full_help_inner ( struct option * tree,
const char * path,
int trees )
static

◆ print_full_help_outer()

static void print_full_help_outer ( struct option * tree,
const char * path )
static

◆ print_option_desc()

static void print_option_desc ( const char * desc)
static

◆ print_short_help()

static void print_short_help ( void )
static

◆ printconfigdump_cmd()

static const char * printconfigdump_cmd ( struct option * option,
char *** argv,
int * argc )
static

◆ printhelp_cmd()

static const char * printhelp_cmd ( struct option * option,
char *** argv,
int * argc )
static

◆ redir_cmd()

static const char * redir_cmd ( struct option * option,
char *** argv,
int * argc )
static

◆ remote_cmd()

static const char * remote_cmd ( struct option * o,
char *** argv,
int * argc )
static

◆ version_cmd()

static const char * version_cmd ( struct option * o,
char *** argv,
int * argc )
static

Variable Documentation

◆ cmdline_options_info

union option_info cmdline_options_info[]

◆ remote_url

char* remote_url
static