X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..4667db33a753d88cbcd186f191fb1e65f49f4bd6:/include/xbt/strbuff.h diff --git a/include/xbt/strbuff.h b/include/xbt/strbuff.h index 1230c03a0b..7b9e44aa33 100644 --- a/include/xbt/strbuff.h +++ b/include/xbt/strbuff.h @@ -1,9 +1,7 @@ -/* $Id: buff.h 3483 2007-05-07 11:18:56Z mquinson $ */ - /* strbuff -- string buffers */ -/* Copyright (c) 2007 Martin Quinson. */ -/* All rights reserved. */ +/* Copyright (c) 2007-2011, 2013-2014. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -17,18 +15,17 @@ #include "xbt/str.h" #include "xbt/dict.h" -/** - ** Buffer code - **/ +SG_BEGIN_DECL() + +/** Buffer code **/ typedef struct { char *data; int used, size; } s_xbt_strbuff_t, *xbt_strbuff_t; - XBT_PUBLIC(void) xbt_strbuff_empty(xbt_strbuff_t b); XBT_PUBLIC(xbt_strbuff_t) xbt_strbuff_new(void); -XBT_PUBLIC(xbt_strbuff_t) xbt_strbuff_new_from(char *s); +XBT_PUBLIC(xbt_strbuff_t) xbt_strbuff_new_from(const char *s); XBT_PUBLIC(void) xbt_strbuff_free(xbt_strbuff_t b); XBT_PUBLIC(void) xbt_strbuff_free_container(xbt_strbuff_t b); XBT_PUBLIC(void) xbt_strbuff_append(xbt_strbuff_t b, const char *toadd); @@ -36,4 +33,5 @@ XBT_PUBLIC(void) xbt_strbuff_chomp(xbt_strbuff_t b); XBT_PUBLIC(void) xbt_strbuff_trim(xbt_strbuff_t b); XBT_PUBLIC(void) xbt_strbuff_varsubst(xbt_strbuff_t b, xbt_dict_t patterns); +SG_END_DECL() #endif