1 /* This file is part of SDL_him - SDL Hildon Input Method addon
2 * Copyright (C) 2010 Javier S. Pedro
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA or see <http://www.gnu.org/licenses/>.
23 /* A very simple dynamic string library, used internally for holding the
27 #pragma GCC visibility push(hidden)
29 typedef struct dstring
32 unsigned long capacity;
36 void ds_clear(dstring_t *ds);
37 void ds_set(dstring_t *ds, const char *str);
38 void ds_append(dstring_t *ds, const char *str);
40 #pragma GCC visibility pop