mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[term] enum term_env_type -> term_env_type_T
This commit is contained in:
parent
44f0adb1cb
commit
5ef839cf18
@ -630,7 +630,7 @@ add_cmdline_bool_option(struct string *string, char *name)
|
|||||||
|
|
||||||
void
|
void
|
||||||
open_uri_in_new_window(struct session *ses, struct uri *uri, struct uri *referrer,
|
open_uri_in_new_window(struct session *ses, struct uri *uri, struct uri *referrer,
|
||||||
enum term_env_type env, cache_mode_T cache_mode,
|
term_env_type_T env, cache_mode_T cache_mode,
|
||||||
enum task_type task)
|
enum task_type task)
|
||||||
{
|
{
|
||||||
int ring = get_cmd_opt_int("session-ring");
|
int ring = get_cmd_opt_int("session-ring");
|
||||||
|
@ -35,7 +35,7 @@ void save_url_as(struct session *ses);
|
|||||||
|
|
||||||
void
|
void
|
||||||
open_uri_in_new_window(struct session *ses, struct uri *uri, struct uri *referrer,
|
open_uri_in_new_window(struct session *ses, struct uri *uri, struct uri *referrer,
|
||||||
enum term_env_type env, cache_mode_T cache_mode,
|
term_env_type_T env, cache_mode_T cache_mode,
|
||||||
enum task_type task);
|
enum task_type task);
|
||||||
|
|
||||||
void send_open_new_window(struct terminal *term, const struct open_in_new *open, struct session *ses);
|
void send_open_new_window(struct terminal *term, const struct open_in_new *open, struct session *ses);
|
||||||
|
@ -61,7 +61,7 @@ can_open_in_new(struct terminal *term)
|
|||||||
|
|
||||||
void
|
void
|
||||||
open_new_window(struct terminal *term, char *exe_name,
|
open_new_window(struct terminal *term, char *exe_name,
|
||||||
enum term_env_type environment, char *param)
|
term_env_type_T environment, char *param)
|
||||||
{
|
{
|
||||||
char *command = NULL;
|
char *command = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
@ -10,7 +10,7 @@ extern "C" {
|
|||||||
/* {struct open_in_new} and @open_in_new is used for setting up menues
|
/* {struct open_in_new} and @open_in_new is used for setting up menues
|
||||||
* of how new windows can be opened. */
|
* of how new windows can be opened. */
|
||||||
struct open_in_new {
|
struct open_in_new {
|
||||||
enum term_env_type env; /* The term->environment the entry covers */
|
term_env_type_T env; /* The term->environment the entry covers */
|
||||||
char *command; /* The default command for openning a window */
|
char *command; /* The default command for openning a window */
|
||||||
char *text; /* The menu text */
|
char *text; /* The menu text */
|
||||||
};
|
};
|
||||||
@ -33,7 +33,7 @@ int can_open_in_new(struct terminal *term);
|
|||||||
* For the ENV_XWIN environment, @exe_name being 'elinks' and @param empty the
|
* For the ENV_XWIN environment, @exe_name being 'elinks' and @param empty the
|
||||||
* window will be opened using: 'xterm -e elinks' */
|
* window will be opened using: 'xterm -e elinks' */
|
||||||
void open_new_window(struct terminal *term, char *exe_name,
|
void open_new_window(struct terminal *term, char *exe_name,
|
||||||
enum term_env_type environment, char *param);
|
term_env_type_T environment, char *param);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -615,7 +615,7 @@ do_follow_url(struct session *ses, struct uri *uri, char *target,
|
|||||||
&& can_open_in_new(ses->tab->term)
|
&& can_open_in_new(ses->tab->term)
|
||||||
&& !get_cmd_opt_bool("no-connect")
|
&& !get_cmd_opt_bool("no-connect")
|
||||||
&& !get_cmd_opt_bool("no-home")) {
|
&& !get_cmd_opt_bool("no-home")) {
|
||||||
enum term_env_type env = ses->tab->term->environment;
|
term_env_type_T env = ses->tab->term->environment;
|
||||||
|
|
||||||
open_uri_in_new_window(ses, uri, referrer, env,
|
open_uri_in_new_window(ses, uri, referrer, env,
|
||||||
cache_mode, task);
|
cache_mode, task);
|
||||||
|
@ -48,6 +48,8 @@ enum term_env_type {
|
|||||||
ENV_ANY = ~0,
|
ENV_ANY = ~0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef int term_env_type_T;
|
||||||
|
|
||||||
enum term_redrawing_state {
|
enum term_redrawing_state {
|
||||||
TREDRAW_READY = 0, /**< Can redraw */
|
TREDRAW_READY = 0, /**< Can redraw */
|
||||||
TREDRAW_BUSY = 1, /**< Redrawing already in progress */
|
TREDRAW_BUSY = 1, /**< Redrawing already in progress */
|
||||||
@ -157,7 +159,7 @@ struct terminal {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** The type of environment this terminal lives in. */
|
/** The type of environment this terminal lives in. */
|
||||||
enum term_env_type environment;
|
term_env_type_T environment;
|
||||||
|
|
||||||
/** The current working directory for this terminal / ELinks instance. */
|
/** The current working directory for this terminal / ELinks instance. */
|
||||||
char cwd[MAX_CWD_LEN];
|
char cwd[MAX_CWD_LEN];
|
||||||
|
Loading…
Reference in New Issue
Block a user