1: /*
2: * LibAxl: Another XML library
3: * Copyright (C) 2006 Advanced Software Production Line, S.L.
4: *
5: * This program is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public License
7: * as published by the Free Software Foundation; either version 2.1 of
8: * the License, or (at your option) any later version.
9: *
10: * This program is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this program; if not, write to the Free
17: * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18: * 02111-1307 USA
19: *
20: * You may find a copy of the license under this software is released
21: * at COPYING file. This is LGPL software: you are welcome to
22: * develop proprietary applications using this library without any
23: * royalty or fee but returning back any change, improvement or
24: * addition in the form of source code, project image, documentation
25: * patches, etc.
26: *
27: * For commercial support on build XML enabled solutions contact us:
28: *
29: * Postal address:
30: * Advanced Software Production Line, S.L.
31: * Edificio Alius A, Oficina 102,
32: * C/ Antonio Suarez Nº 10,
33: * Alcalá de Henares 28802 Madrid
34: * Spain
35: *
36: * Email address:
37: * info@aspl.es - http://www.aspl.es/xml
38: */
39: #include <axl_decl.h>
40: #define LOG_DOMAIN "axl-decl"
41:
42: /**
43: * \addtogroup axl_decl_module
44: * @{
45: */
46:
47: /**
48: * @brief Calloc helper for axl library.
49: *
50: * @param count How many items to allocate.
51: * @param size Size of one item.
52: *
53: * @return A newly allocated pointer.
54: * @see axl_free
55: */
56: axlPointer axl_calloc(size_t count, size_t size)
57: {
58: return calloc (count, size);
59: }
60:
61: /**
62: * @brief Realloc helper for axl library.
63: *
64: * @param ref the reference to reallocate.
65: * @param size Size of the new reference.
66: *
67: * @return A newly allocated pointer.
68: * @see axl_free
69: */
70: axlPointer axl_realloc(axlPointer ref, size_t size)
71: {
72: return realloc (ref, size);
73: }
74:
75: /**
76: * @brief Allows to deallocate memory referenced by <i>ref</i> but
77: * checking before that the reference is different from null.
78: *
79: * @param ref The reference to clear.
80: */
81: void axl_free (axlPointer ref)
82: {
83: free (ref);
84: return;
85: }
86:
87:
88: /**
89: * @}
90: */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>