Changeset 77 for trunk/samba/source/lib/talloc/talloc.h
- Timestamp:
- Sep 30, 2007, 3:42:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/samba/source/lib/talloc/talloc.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/lib/talloc/talloc.h
r39 r77 15 15 modify it under the terms of the GNU Lesser General Public 16 16 License as published by the Free Software Foundation; either 17 version 2of the License, or (at your option) any later version.17 version of the License, or (at your option) any later version. 18 18 19 19 This library is distributed in the hope that it will be useful, … … 23 23 24 24 You should have received a copy of the GNU Lesser General Public 25 License along with this library; if not, write to the Free Software 26 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 License along with this library; if not, see <http://www.gnu.org/licenses/>. 27 26 */ 27 28 29 30 28 31 29 32 /* this is only needed for compatibility with the old talloc */ … … 109 112 #define talloc_realloc_p(ctx, p, type, count) talloc_realloc(ctx, p, type, count) 110 113 #define talloc_destroy(ctx) talloc_free(ctx) 114 111 115 #endif 112 116 … … 150 154 void *_talloc_zero(const void *ctx, size_t size, const char *name); 151 155 void *_talloc_memdup(const void *t, const void *p, size_t size, const char *name); 152 char *talloc_strdup(const void *t, const char *p);153 char *talloc_strndup(const void *t, const char *p, size_t n);154 char *talloc_append_string(const void *t, char *orig, const char *append);155 char *talloc_vasprintf(const void *t, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0);156 char *talloc_vasprintf_append(char *s, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0);157 char *talloc_asprintf(const void *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);158 char *talloc_asprintf_append(char *s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);159 156 void *_talloc_array(const void *ctx, size_t el_size, unsigned count, const char *name); 160 157 void *_talloc_zero_array(const void *ctx, size_t el_size, unsigned count, const char *name); … … 167 164 int talloc_is_parent(const void *context, const void *ptr); 168 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 169 182 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
