core: allow multiple options "-r" ("--run-command") in command line arguments (closes #1248)

v2.8-utf8proc
Sébastien Helleu 2018-09-06 21:52:02 +02:00
parent 8945e70f81
commit fcf7469d76
25 changed files with 110 additions and 64 deletions

View File

@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
New features::
* core: allow multiple options "-r" ("--run-command") in command line arguments (issue #1248)
* core: add option "-P" (or "--plugins") to customize the plugins to load at startup
* core: allow partial buffer name in command /buffer close (issue #1226)
* api: add function hook_line

View File

@ -31,8 +31,10 @@
Load only these plugins at startup (see /help weechat.plugin.autoload).
If this option is given, the option weechat.plugin.autoload is not used.
// TRANSLATION MISSING
*-r*, *--run-command* _<command>_::
Spustí příkaz(y) po startu (více přůkazů může být odděleno středníky).
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
Vypni automatické nahrání scriptů.

View File

@ -28,9 +28,10 @@
lädt nur die angegebenen Erweiterungen, beim Start (siehe /help weechat.plugin.autoload).
Wenn diese Option genutzt wird, dann wird die Option weechat.plugin.autoload ignoriert.
// TRANSLATION MISSING
*-r*, *--run-command* _<command>_::
führt einen oder mehrere Befehle aus, nachdem WeeChat gestartet wurde
(mehrere Befehle müssen durch Kommata voneinander getrennt werden).
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
Skripten werden beim Programmstart nicht geladen.

View File

@ -29,7 +29,8 @@
If this option is given, the option weechat.plugin.autoload is not used.
*-r*, *--run-command* _<command>_::
Run command(s) after startup (many commands can be separated by semicolons).
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
Disable scripts auto-load.

View File

@ -30,8 +30,9 @@
Si cette option est donnée, l'option weechat.plugin.autoload n'est pas utilisée.
*-r*, *--run-command* _<commande>_::
Lancer la/les commande(s) après le démarrage (plusieurs commandes peuvent
être séparées par des points-virgules).
Lancer la/les commande(s) après le démarrage ; plusieurs commandes peuvent
être séparées par des points-virgules, cette option peut être donnée
plusieurs fois.
*-s*, *--no-script*::
Supprimer le chargement automatique des scripts au démarrage.

View File

@ -33,8 +33,8 @@
// TRANSLATION MISSING
*-r*, *--run-command* _<command>_::
Esegue un comando(i) dopo l'avvio (più comandi possono essere separati da
punto e virgola).
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
Disabilita il caricamento automatico dei script.

View File

@ -28,8 +28,10 @@
起動時にロードするプラグインを指定 (/help weechat.plugin.autoload を参照してください)。
このオプションを使う場合、weechat.plugin.autoload オプションは無視されます。
// TRANSLATION MISSING
*-r*, *--run-command* _<command>_::
起動後にコマンドを実行 (複数のコマンドを指定するにはセミコロンで各コマンドを区切る)
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
スクリプトの自動ロードを止める

View File

@ -28,8 +28,10 @@
Load only these plugins at startup (see /help weechat.plugin.autoload).
If this option is given, the option weechat.plugin.autoload is not used.
// TRANSLATION MISSING
*-r*, *--run-command* _<komenda>_::
Wykonuje komendę(-y) po uruchomieniu (komendy należy oddzielać średnikiem).
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
Wyłącza automatyczne ładowanie skryptów.

View File

@ -31,9 +31,10 @@
Load only these plugins at startup (see /help weechat.plugin.autoload).
If this option is given, the option weechat.plugin.autoload is not used.
// TRANSLATION MISSING
*-r*, *--run-command* _<команда>_::
Запустить команду (или команды) после загрузки WeeChat (несколько команд
можно записать через точку с запятой).
Run command(s) after startup; many commands can be separated by semicolons,
this option can be given multiple times.
*-s*, *--no-script*::
Отключить автозагрузку скриптов.

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-03-31 15:36+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -168,8 +168,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -24,7 +24,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-08-20 20:39+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@ -163,6 +163,7 @@ msgstr ""
msgid "Usage: %s [option...] [plugin:option...]\n"
msgstr "Aufruf: %s [Option...] [Erweiterung:Option...]\n"
#, fuzzy
msgid ""
" -a, --no-connect disable auto-connect to servers at startup\n"
" -c, --colors display default colors in terminal\n"
@ -174,8 +175,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-03-31 15:36+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -175,8 +175,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"PO-Revision-Date: 2018-08-17 19:40+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-09-06 21:26+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -167,8 +167,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"
@ -187,9 +188,10 @@ msgstr ""
" -p, --no-plugin ne charger aucune extension au démarrage\n"
" -P, --plugins <exts> charger uniquement ces extensions au démarrage\n"
" (voir /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> lancer la/les commande(s) après le démarrage\n"
" (plusieurs commandes peuvent être séparées par "
"des points-virgules)\n"
" -r, --run-command <cmd> lancer la/les commande(s) après le démarrage ;\n"
" plusieurs commandes peuvent être séparées par des "
"points-virgules,\n"
" cette option peut être donnée plusieurs fois\n"
" -s, --no-script ne charger aucun script au démarrage\n"
" --upgrade mettre à jour WeeChat en utilisant les fichiers "
"de session (voir /help upgrade dans WeeChat)\n"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-03-31 15:36+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -174,8 +174,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-03-31 15:36+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -173,8 +173,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-08-19 09:00+0900\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@ -155,6 +155,7 @@ msgstr ""
msgid "Usage: %s [option...] [plugin:option...]\n"
msgstr "使い方: %s [オプション...] [プラグイン:オプション...]\n"
#, fuzzy
msgid ""
" -a, --no-connect disable auto-connect to servers at startup\n"
" -c, --colors display default colors in terminal\n"
@ -166,8 +167,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-07-09 00:51+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: Polish <soltys1@gmail.com>\n"
@ -169,8 +169,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-03-31 15:36+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@ -168,8 +168,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-03-31 15:37+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -201,8 +201,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2018-03-31 15:37+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -182,8 +182,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2017-06-26 23:33+0200\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -157,8 +157,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2018-08-17 19:39+0200\n"
"POT-Creation-Date: 2018-09-06 13:44+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -155,8 +155,9 @@ msgid ""
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by semicolons,\n"
" this option can be given multiple times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files (see /help "
"upgrade in WeeChat)\n"

View File

@ -8352,10 +8352,20 @@ command_exec_list (const char *command_list)
void
command_startup (int plugins_loaded)
{
int i;
if (plugins_loaded)
{
command_exec_list (CONFIG_STRING(config_startup_command_after_plugins));
command_exec_list (weechat_startup_commands);
if (weechat_startup_commands)
{
for (i = 0; i < weelist_size (weechat_startup_commands); i++)
{
command_exec_list (
weelist_string (
weelist_get (weechat_startup_commands, i)));
}
}
}
else
command_exec_list (CONFIG_STRING(config_startup_command_before_plugins));

View File

@ -60,6 +60,7 @@
#include "wee-eval.h"
#include "wee-hdata.h"
#include "wee-hook.h"
#include "wee-list.h"
#include "wee-log.h"
#include "wee-network.h"
#include "wee-proxy.h"
@ -102,7 +103,8 @@ int weechat_no_gnutls = 0; /* remove init/deinit of gnutls */
/* (useful with valgrind/electric-f.)*/
int weechat_no_gcrypt = 0; /* remove init/deinit of gcrypt */
/* (useful with valgrind) */
char *weechat_startup_commands = NULL; /* startup commands (-r flag) */
struct t_weelist *weechat_startup_commands = NULL; /* startup commands */
/* (option -r) */
/*
@ -154,9 +156,11 @@ weechat_display_usage ()
" -p, --no-plugin don't load any plugin at startup\n"
" -P, --plugins <plugins> load only these plugins at startup\n"
" (see /help weechat.plugin.autoload)\n"
" -r, --run-command <cmd> run command(s) after startup\n"
" (many commands can be separated by "
"semicolons)\n"
" -r, --run-command <cmd> run command(s) after startup;\n"
" many commands can be separated by "
"semicolons,\n"
" this option can be given multiple "
"times\n"
" -s, --no-script don't load any script at startup\n"
" --upgrade upgrade WeeChat using session files "
"(see /help upgrade in WeeChat)\n"
@ -297,9 +301,10 @@ weechat_parse_args (int argc, char *argv[])
{
if (i + 1 < argc)
{
if (weechat_startup_commands)
free (weechat_startup_commands);
weechat_startup_commands = strdup (argv[++i]);
if (!weechat_startup_commands)
weechat_startup_commands = weelist_new ();
weelist_add (weechat_startup_commands, argv[++i],
WEECHAT_LIST_POS_END, NULL);
}
else
{
@ -639,6 +644,8 @@ weechat_shutdown (int return_code, int crash)
free (weechat_local_charset);
if (weechat_force_plugin_autoload)
free (weechat_force_plugin_autoload);
if (weechat_startup_commands)
weelist_free (weechat_startup_commands);
if (crash)
abort ();

View File

@ -96,6 +96,8 @@
/* name of environment variable with an extra lib dir */
#define WEECHAT_EXTRA_LIBDIR "WEECHAT_EXTRA_LIBDIR"
struct t_weelist;
/* global variables and functions */
extern int weechat_headless;
extern int weechat_debug_core;
@ -112,7 +114,7 @@ extern char *weechat_local_charset;
extern int weechat_plugin_no_dlclose;
extern int weechat_no_gnutls;
extern int weechat_no_gcrypt;
extern char *weechat_startup_commands;
extern struct t_weelist *weechat_startup_commands;
extern void weechat_term_check ();
extern void weechat_shutdown (int return_code, int crash);