X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fq.h;h=76bdd302c02c26d1a99733e23aa9038f59f7ddf8;hp=b53044736d5bb5719dd9ea7771ff1252d8e03e9d;hb=ede90e3f60487332bcaede6d8f62ad0f3e0fb715;hpb=7729deb8d1fe947c8d0af89cb5368c7e0f8e7990 diff --git a/lib/q.h b/lib/q.h index b530447..76bdd30 100644 --- a/lib/q.h +++ b/lib/q.h @@ -3,14 +3,31 @@ Part of the swftools package. - Copyright (c) 2001 Matthias Kramm - - This file is distributed under the GPL, see file COPYING for details */ + Copyright (c) 2001,2002,2003 Matthias Kramm + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef __q_h__ #define __q_h__ #include +#include "../config.h" + +#ifdef __cplusplus +extern "C" { +#endif /* dynamically growing mem section */ typedef struct _mem_t { @@ -88,7 +105,7 @@ void dictionary_del(dictionary_t*dict, const char* name); void dictionary_clear(dictionary_t*dict); void dictionary_destroy(dictionary_t*dict); -char* strndup(const char*str, int size); +char* strdup_n(const char*str, int size); void* qmalloc_internal(int len); void* qrealloc_internal(void*old, int len); @@ -98,4 +115,8 @@ void qfree_internal(void*old); #define qrealloc(old, len) qmalloc_internal(old, len) #define qfree(old) qmalloc_internal(old) +#ifdef __cplusplus +} +#endif + #endif //__q_h__