File: common.h

package info (click to toggle)
potool 0.10-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 184 kB
  • ctags: 93
  • sloc: ansic: 595; yacc: 350; sh: 233; makefile: 82; perl: 50
file content (20 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * potool is a program aiding editing of po files
 * Copyright (C) 1999-2002 Zbigniew Chyla
 *
 * see LICENSE for licensing info
 */
#ifndef COMMON_H
#define COMMON_H

#include <glib.h>

#define g_slist_free_custom(list,free_func) \
G_STMT_START { \
	GSList *potool_list = (list), *potool_l; \
	for (potool_l = potool_list; potool_l != NULL; potool_l = potool_l->next) \
		free_func (potool_l->data); \
	g_slist_free (potool_list); \
} G_STMT_END

#endif /* COMMON_H */