Updated Spanish translation
[anjuta-git-plugin.git] / plugins / valgrind / vgstrpool.h
blobe5ae94b90bbaa7ad1cef9c9d4acc2827628acf2c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Authors: Jeffrey Stedfast <fejj@ximian.com>
5 * Copyright 2003 Ximian, Inc. (www.ximian.com)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #ifndef __VG_STRPOOL_H__
25 #define __VG_STRPOOL_H__
27 #include <glib.h>
28 #include <sys/types.h>
30 #ifdef __cplusplus
31 extern "C" {
32 #pragma }
33 #endif /* __cplusplus */
35 #ifdef ENABLE_STRPOOL
36 void vg_strpool_init (void);
37 void vg_strpool_shutdown (void);
39 char *vg_strpool_add (char *string, int own);
41 char *vg_strdup (const char *string);
42 char *vg_strndup (const char *string, size_t n);
43 void vg_strfree (char *string);
44 #else
45 #define vg_strpool_init()
46 #define vg_strpool_shutdown()
47 #define vg_strpool_add(str,own) (own ? str : g_strdup (str))
48 #define vg_strdup(str) g_strdup (str)
49 #define vg_strndup(str, n) g_strndup (str, n)
50 #define vg_strfree(str) g_free (str)
51 #endif /* ENABLE_STRPOOL */
53 #ifdef __cplusplus
55 #endif /* __cplusplus */
57 #endif /* __VG_STRPOOL_H__ */