mirror of
https://github.com/irssi/irssi.git
synced 2026-08-13 13:42:13 +02:00
Added syntaxes of all commands in comments, they're going to be used to
autogenerate help files. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@529 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3e9164df1b
commit
c529fe0096
27 changed files with 186 additions and 21 deletions
|
|
@ -328,6 +328,7 @@ static void window_clear(GUI_WINDOW_REC *gui)
|
|||
screen_refresh();
|
||||
}
|
||||
|
||||
/* SYNTAX: CLEAR */
|
||||
static void cmd_clear(void)
|
||||
{
|
||||
GUI_WINDOW_REC *gui;
|
||||
|
|
|
|||
|
|
@ -161,6 +161,8 @@ static GList *lastlog_find_startline(GList *list, int count, int start, int leve
|
|||
return list;
|
||||
}
|
||||
|
||||
/* SYNTAX: LASTLOG [-] [-new | -away] [-regexp | -word] [-<levels>]
|
||||
[<pattern>] [<count> [<start>]] */
|
||||
static void cmd_lastlog(const char *data)
|
||||
{
|
||||
GHashTable *optlist;
|
||||
|
|
@ -241,6 +243,7 @@ static void cmd_scrollback(gchar *data, SERVER_REC *server, WI_ITEM_REC *item)
|
|||
command_runsub("scrollback", data, server, item);
|
||||
}
|
||||
|
||||
/* SYNTAX: SCROLLBACK CLEAR */
|
||||
static void cmd_scrollback_clear(gchar *data)
|
||||
{
|
||||
gui_window_clear(active_win);
|
||||
|
|
@ -275,6 +278,7 @@ static void scrollback_goto_pos(WINDOW_REC *window, GList *pos)
|
|||
signal_emit("gui page scrolled", 1, window);
|
||||
}
|
||||
|
||||
/* SYNTAX: SCROLLBACK GOTO <+|-linecount>|<linenum>|<timestamp> */
|
||||
static void cmd_scrollback_goto(gchar *data)
|
||||
{
|
||||
GList *pos;
|
||||
|
|
@ -367,6 +371,7 @@ static void cmd_scrollback_goto(gchar *data)
|
|||
cmd_params_free(free_arg);
|
||||
}
|
||||
|
||||
/* SYNTAX: SCROLLBACK HOME */
|
||||
static void cmd_scrollback_home(const char *data)
|
||||
{
|
||||
GUI_WINDOW_REC *gui;
|
||||
|
|
@ -386,6 +391,7 @@ static void cmd_scrollback_home(const char *data)
|
|||
signal_emit("gui page scrolled", 1, active_win);
|
||||
}
|
||||
|
||||
/* SYNTAX: SCROLLBACK END */
|
||||
static void cmd_scrollback_end(const char *data)
|
||||
{
|
||||
GUI_WINDOW_REC *gui;
|
||||
|
|
|
|||
|
|
@ -411,6 +411,7 @@ static void mainwindows_resize_two(MAIN_WINDOW_REC *grow_win, MAIN_WINDOW_REC *s
|
|||
statusbar_redraw(shrink_win->statusbar);
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW GROW [<lines>] */
|
||||
static void cmd_window_grow(const char *data)
|
||||
{
|
||||
MAIN_WINDOW_REC *window, *shrink_win;
|
||||
|
|
@ -439,6 +440,7 @@ static void cmd_window_grow(const char *data)
|
|||
mainwindows_resize_two(window, shrink_win, count);
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW SHRINK [<lines>] */
|
||||
static void cmd_window_shrink(const char *data)
|
||||
{
|
||||
MAIN_WINDOW_REC *window, *grow_win;
|
||||
|
|
@ -467,6 +469,7 @@ static void cmd_window_shrink(const char *data)
|
|||
mainwindows_resize_two(grow_win, window, count);
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW SIZE <lines> */
|
||||
static void cmd_window_size(const char *data)
|
||||
{
|
||||
char sizestr[MAX_INT_STRLEN];
|
||||
|
|
@ -485,6 +488,7 @@ static void cmd_window_size(const char *data)
|
|||
cmd_window_grow(sizestr);
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW BALANCE */
|
||||
static void cmd_window_balance(void)
|
||||
{
|
||||
GSList *sorted, *tmp;
|
||||
|
|
@ -522,6 +526,7 @@ static void cmd_window_balance(void)
|
|||
statusbar_redraw(NULL);
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW HIDE [<number>|<name>] */
|
||||
static void cmd_window_hide(const char *data)
|
||||
{
|
||||
WINDOW_REC *window;
|
||||
|
|
@ -549,6 +554,7 @@ static void cmd_window_hide(const char *data)
|
|||
}
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW SHOW <number>|<name> */
|
||||
static void cmd_window_show(const char *data)
|
||||
{
|
||||
WINDOW_REC *window;
|
||||
|
|
@ -569,6 +575,7 @@ static void cmd_window_show(const char *data)
|
|||
window_set_active(window);
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW UP */
|
||||
static void cmd_window_up(void)
|
||||
{
|
||||
MAIN_WINDOW_REC *rec;
|
||||
|
|
@ -578,6 +585,7 @@ static void cmd_window_up(void)
|
|||
window_set_active(rec->active);
|
||||
}
|
||||
|
||||
/* SYNTAX: WINDOW DOWN */
|
||||
static void cmd_window_down(void)
|
||||
{
|
||||
MAIN_WINDOW_REC *rec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue