michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "jar.h" michael@0: michael@0: /* These are old DS_* routines renamed to ZZ_* */ michael@0: ZZList * michael@0: ZZ_NewList(void) michael@0: { michael@0: ZZList *list = (ZZList *) PORT_ZAlloc (sizeof (ZZList)); michael@0: if (list) michael@0: ZZ_InitList (list); michael@0: return list; michael@0: } michael@0: michael@0: ZZLink * michael@0: ZZ_NewLink(JAR_Item *thing) michael@0: { michael@0: ZZLink *link = (ZZLink *) PORT_ZAlloc (sizeof (ZZLink)); michael@0: if (link) michael@0: link->thing = thing; michael@0: return link; michael@0: } michael@0: michael@0: void michael@0: ZZ_DestroyLink(ZZLink *link) michael@0: { michael@0: PORT_Free(link); michael@0: } michael@0: michael@0: void michael@0: ZZ_DestroyList (ZZList *list) michael@0: { michael@0: PORT_Free(list); michael@0: }