equal
deleted
inserted
replaced
|
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_constpool.h $ |
|
21 |
|
22 Purpose: |
|
23 |
|
24 This file is used by the scr_constpool.c. It defines the prototypes |
|
25 for all the functions used by the constant pool. |
|
26 */ |
|
27 |
|
28 #ifndef SCR_CONSTPOOL_H |
|
29 #define SCR_CONSTPOOL_H |
|
30 |
|
31 #include "scr_val.h" |
|
32 |
|
33 typedef struct { |
|
34 val_t *vals; |
|
35 NW_Uint16 size; |
|
36 NW_Uint16 charset; |
|
37 } constpool_t; |
|
38 |
|
39 constpool_t *create_cp(NW_Int32 size, NW_Int32 charset); |
|
40 |
|
41 void append_cp_int(NW_Int32 index, NW_Int32 v); |
|
42 void append_cp_float(NW_Int32 index, NW_Float32 f); |
|
43 void append_cp_string(NW_Int32 index, str_t s); |
|
44 |
|
45 val_t get_const(NW_Int32 index); |
|
46 NW_Bool valid_const_index(NW_Int32 index); |
|
47 NW_Bool is_const_string(NW_Int32 index); |
|
48 |
|
49 void free_cp(constpool_t *cp); |
|
50 |
|
51 #endif /* SCR_CONSTPOOL_H */ |