diff -r 79859ed3eea9 -r 919f36ff910f webengine/wmlengine/src/script/include/scr_ptrstack.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webengine/wmlengine/src/script/include/scr_ptrstack.h Wed Sep 01 12:28:30 2010 +0100 @@ -0,0 +1,54 @@ +/* +* Copyright (c) 1999 - 2001 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + /* + $Workfile: scr_ptrstack.h $ + + Purpose: + + This file is used by the scr_ptrstack.c. It defines the structure and + the prototypes for all the functions used by the ptrstack. + */ + +#ifndef SCR_PTRSTACK_H +#define SCR_PTRSTACK_H + +#include "scr_defs.h" + +typedef struct { + void **s; + NW_Int32 size; + NW_Int32 capacity; +} pstack_t; + + +NW_Bool is_pstack_empty(pstack_t *st); +NW_Bool is_pstack_full(pstack_t *st); +pstack_t *new_pstack(NW_Int32 cap); +void *pop_pstack(pstack_t *st); +void *peek_pstack(pstack_t *st); +void push_pstack(pstack_t *st, void *v); +void destroy_pstack(pstack_t *st); + +void *el_at_pstack(pstack_t *st, NW_Int32 index); + +#endif /*SCR_PTRSTACK_H*/ + + + +