annotate gui/util/mem.h @ 35376:02006c5b3b30

Move add_to_gui_playlist() to util/list.c. It's not an interface related function, but a playlist utility one. Additionally, add doxygen comments and change debug message. As a result, the different implementation of add_to_gui_playlist() of the Win32 GUI - the GUI uses code from util/list.c - can't have the same name and thus will be renamed to import_file_into_gui() again, reverting the r35467 and r35444 changes which were premature.
author ib
date Sun, 25 Nov 2012 11:51:35 +0000
parents b2d3a97cab66
children a5f7a861a293
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33739
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
1 /*
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
2 * This file is part of MPlayer.
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
3 *
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
7 * (at your option) any later version.
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
8 *
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
12 * GNU General Public License for more details.
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
13 *
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License along
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
17 */
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
18
33976
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
19 /**
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
20 * @file
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
21 * @brief Memory management helpers
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
22 */
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
23
33739
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
24 #ifndef MPLAYER_GUI_MEM_H
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
25 #define MPLAYER_GUI_MEM_H
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
26
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
27 #include <stdlib.h>
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
28
33976
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
29 /**
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
30 * @def nfree(p)
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
31 * Free @a p and set it to NULL.
b2d3a97cab66 Add doxygen comments to mem.h.
ib
parents: 33739
diff changeset
32 */
33739
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
33 #define nfree(p) do { free(p); p = NULL; } while (0)
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
34
9f6d46d325de Remove gfree() from interface.c.
ib
parents:
diff changeset
35 #endif /* MPLAYER_GUI_MEM_H */