mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 07:02:12 +02:00
Remove popt and use glib GOption commandline option parser
(glib-2.6 is now the minimum required version). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4700 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c403b70de4
commit
ab8da71d29
20 changed files with 44 additions and 1464 deletions
|
|
@ -329,14 +329,13 @@ static void sig_init_finished(void)
|
|||
config_close(session);
|
||||
|
||||
unlink(session_file);
|
||||
session_file = NULL;
|
||||
}
|
||||
|
||||
void session_register_options(void)
|
||||
{
|
||||
static struct poptOption options[] = {
|
||||
{ "session", 0, POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN, &session_file, 0, "Used by /UPGRADE command", "PATH" },
|
||||
{ NULL, '\0', 0, NULL }
|
||||
static GOptionEntry options[] = {
|
||||
{ "session", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &session_file, "Used by /UPGRADE command", "PATH" },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
session_file = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue