mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
core: rename functions to allocate/free lines
This commit is contained in:
@@ -717,7 +717,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin,
|
||||
new_buffer->title = NULL;
|
||||
|
||||
/* chat content */
|
||||
new_buffer->own_lines = gui_lines_alloc ();
|
||||
new_buffer->own_lines = gui_line_lines_alloc ();
|
||||
new_buffer->mixed_lines = NULL;
|
||||
new_buffer->lines = new_buffer->own_lines;
|
||||
new_buffer->time_for_each_line = 1;
|
||||
@@ -3659,7 +3659,7 @@ gui_buffer_unmerge (struct t_gui_buffer *buffer, int number)
|
||||
{
|
||||
/* only one buffer will remain, so it will not be merged any more */
|
||||
gui_line_mixed_free_all (buffer);
|
||||
gui_lines_free (buffer->mixed_lines);
|
||||
gui_line_lines_free (buffer->mixed_lines);
|
||||
for (ptr_buffer = gui_buffers; ptr_buffer;
|
||||
ptr_buffer = ptr_buffer->next_buffer)
|
||||
{
|
||||
|
||||
+3
-3
@@ -54,7 +54,7 @@
|
||||
*/
|
||||
|
||||
struct t_gui_lines *
|
||||
gui_lines_alloc ()
|
||||
gui_line_lines_alloc ()
|
||||
{
|
||||
struct t_gui_lines *new_lines;
|
||||
|
||||
@@ -81,7 +81,7 @@ gui_lines_alloc ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_lines_free (struct t_gui_lines *lines)
|
||||
gui_line_lines_free (struct t_gui_lines *lines)
|
||||
{
|
||||
if (!lines)
|
||||
return;
|
||||
@@ -1787,7 +1787,7 @@ gui_line_mix_buffers (struct t_gui_buffer *buffer)
|
||||
return;
|
||||
|
||||
/* mix all lines (sorting by date) to a new structure "new_lines" */
|
||||
new_lines = gui_lines_alloc ();
|
||||
new_lines = gui_line_lines_alloc ();
|
||||
if (!new_lines)
|
||||
return;
|
||||
ptr_line1 = ptr_buffer_found->lines->first_line;
|
||||
|
||||
+2
-2
@@ -69,8 +69,8 @@ struct t_gui_lines
|
||||
|
||||
/* line functions */
|
||||
|
||||
extern struct t_gui_lines *gui_lines_alloc ();
|
||||
extern void gui_lines_free (struct t_gui_lines *lines);
|
||||
extern struct t_gui_lines *gui_line_lines_alloc ();
|
||||
extern void gui_line_lines_free (struct t_gui_lines *lines);
|
||||
extern void gui_line_tags_alloc (struct t_gui_line_data *line_data,
|
||||
const char *tags);
|
||||
extern void gui_line_tags_free (struct t_gui_line_data *line_data);
|
||||
|
||||
Reference in New Issue
Block a user