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_valexpr.h $ |
|
21 |
|
22 Purpose: |
|
23 |
|
24 This file is used by the scr_valexpr.h. It defines the val_expr structure |
|
25 and all the prototypes needed for the scr_val_expr.c |
|
26 */ |
|
27 |
|
28 #ifndef SCR_VALEXPR_H |
|
29 #define SCR_VALEXPR_H |
|
30 |
|
31 #include "scr_defs.h" |
|
32 #include "scr_val.h" |
|
33 |
|
34 val_t add_string_vals(val_t v1, val_t v2); |
|
35 val_t add_vals(val_t v1, val_t v2); |
|
36 val_t sub_vals(val_t v1, val_t v2); |
|
37 val_t mul_vals(val_t v1, val_t v2); |
|
38 val_t div_vals(val_t v1, val_t v2); |
|
39 val_t idiv_vals(val_t v1, val_t v2); |
|
40 val_t rem_vals(val_t v1, val_t v2); |
|
41 |
|
42 val_t incr_val(val_t v); |
|
43 val_t decr_val(val_t v); |
|
44 |
|
45 val_t l_not_val(val_t v); |
|
46 val_t b_not_val(val_t v); |
|
47 val_t uminus_val(val_t v); |
|
48 |
|
49 val_t comp_vals(val_t v1, val_t v2, NW_Byte op); |
|
50 NW_Bool comp_string_vals(str_t s1, str_t s2, NW_Byte op); |
|
51 NW_Bool comp_int_vals(NW_Int32 i1, NW_Int32 i2, NW_Byte op); |
|
52 NW_Bool comp_float_vals(NW_Float32 f1, NW_Float32 f2, NW_Byte op); |
|
53 |
|
54 val_t lshift_vals(val_t v1, val_t v2); |
|
55 val_t rsshift_vals(val_t v1, val_t v2); |
|
56 val_t rszshift_vals(val_t v1, val_t v2); |
|
57 |
|
58 val_t bit_and_vals(val_t v1, val_t v2); |
|
59 val_t bit_or_vals(val_t v1, val_t v2); |
|
60 val_t bit_xor_vals(val_t v1, val_t v2); |
|
61 |
|
62 #endif /*SCR_VALEXPR_H*/ |
|
63 |
|