webengine/wmlengine/src/script/include/scr_estack.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     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_estack.h $
       
    21 
       
    22     Purpose:
       
    23         This file is used by the scr_estack.c.  It defines the prototypes 
       
    24         for all the functions used by the execution stack.
       
    25 
       
    26  */
       
    27 
       
    28 #ifndef SCR_estack_H
       
    29 #define SCR_estack_H
       
    30 
       
    31 #include "scr_val.h"
       
    32 
       
    33 typedef struct {
       
    34   val_t     *ops;
       
    35   NW_Int32  capacity;
       
    36   NW_Int32  size;
       
    37 } estack_t;
       
    38 
       
    39 NW_Bool create_estack(void);
       
    40 
       
    41 val_t pop_estack(void);
       
    42 
       
    43 void pop_estack_and_free(void);
       
    44 
       
    45 void push_estack(val_t v);
       
    46 
       
    47 void push_estack_and_free(val_t *vptr);
       
    48 
       
    49 NW_Bool is_estack_empty(void);
       
    50 
       
    51 void free_estack(estack_t *st);
       
    52 
       
    53 #endif  /*SCR_COMMON_INFO_H*/