diff options
author | Michael Clark <michael@metaparadigm.com> | 2007-03-13 08:26:23 +0000 |
---|---|---|
committer | Michael Clark <michael@metaparadigm.com> | 2007-03-13 08:26:23 +0000 |
commit | f6a6e486ffc38235edc3c1197278c8a505c523eb (patch) | |
tree | 5985509e20feabb3ae1dad95831a109a3f8cc19b /arraylist.h | |
parent | 0370baa74c76e49abffdcd90f70494b2d5298f1a (diff) |
* Make headers C++ compatible by change *this to *obj
* Add ifdef C++ extern "C" to headers
* Use simpler definition of min and max in bits.h
Larry Lansing, llansing at fuzzynerd dot com
* Remove automake 1.6 requirement
* Move autogen commands into autogen.sh. Update README
* Remove error pointer special case for Windows
* Change license from LGPL to MIT
Michael Clark <michael@metaparadigm.com>
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@10 327403b1-1117-474d-bef2-5cb71233fd97
Diffstat (limited to 'arraylist.h')
-rw-r--r-- | arraylist.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/arraylist.h b/arraylist.h index d82f14a..2948e04 100644 --- a/arraylist.h +++ b/arraylist.h @@ -1,18 +1,11 @@ /* - * $Id: arraylist.h,v 1.2 2004/07/21 01:24:33 mclark Exp $ + * $Id: arraylist.h,v 1.4 2006/01/26 02:16:28 mclark Exp $ * - * Copyright Metaparadigm Pte. Ltd. 2004. + * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. * Michael Clark <michael@metaparadigm.com> * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public (LGPL) - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details: http://www.gnu.org/ + * This library is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See COPYING for details. * */ @@ -35,18 +28,18 @@ extern struct array_list* array_list_new(array_list_free_fn *free_fn); extern void -array_list_free(struct array_list *this); +array_list_free(struct array_list *al); extern void* -array_list_get_idx(struct array_list *this, int i); +array_list_get_idx(struct array_list *al, int i); extern int -array_list_put_idx(struct array_list *this, int i, void *data); +array_list_put_idx(struct array_list *al, int i, void *data); extern int -array_list_add(struct array_list *this, void *data); +array_list_add(struct array_list *al, void *data); extern int -array_list_length(struct array_list *this); +array_list_length(struct array_list *al); #endif |