webengine/wmlengine/src/script/include/scr_ptrstack.h
changeset 74 91031d3aab7d
parent 68 92a765b5b3e7
child 85 e358f2276d3f
equal deleted inserted replaced
68:92a765b5b3e7 74:91031d3aab7d
     1 /*
       
     2 * Copyright (c) 1999 - 2001 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19  /*
       
    20     $Workfile: scr_ptrstack.h $
       
    21 
       
    22     Purpose:
       
    23 
       
    24        This file is used by the scr_ptrstack.c.  It defines the structure and
       
    25        the prototypes for all the functions used by the ptrstack.
       
    26  */
       
    27  
       
    28 #ifndef SCR_PTRSTACK_H
       
    29 #define SCR_PTRSTACK_H
       
    30 
       
    31 #include "scr_defs.h"
       
    32 
       
    33 typedef struct {
       
    34   void      **s;
       
    35   NW_Int32  size;
       
    36   NW_Int32  capacity;
       
    37 } pstack_t;
       
    38 
       
    39 
       
    40 NW_Bool is_pstack_empty(pstack_t *st);
       
    41 NW_Bool is_pstack_full(pstack_t *st);
       
    42 pstack_t *new_pstack(NW_Int32  cap);
       
    43 void *pop_pstack(pstack_t *st);
       
    44 void *peek_pstack(pstack_t *st);
       
    45 void push_pstack(pstack_t *st, void *v);
       
    46 void destroy_pstack(pstack_t *st);
       
    47 
       
    48 void *el_at_pstack(pstack_t *st, NW_Int32  index);
       
    49 
       
    50 #endif  /*SCR_PTRSTACK_H*/
       
    51 
       
    52 
       
    53 
       
    54