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_defs.h $ |
|
21 |
|
22 Purpose: |
|
23 |
|
24 This file contains generic definition needed by the ScriptServer core files. |
|
25 */ |
|
26 |
|
27 #ifndef SCR_DEFS_H |
|
28 #define SCR_DEFS_H |
|
29 |
|
30 #include "nwx_defs.h" |
|
31 |
|
32 /* constant pool types */ |
|
33 #define CP_TYPE_8_BIT_SIGNED_INT 0 |
|
34 #define CP_TYPE_16_BIT_SIGNED_INT 1 |
|
35 #define CP_TYPE_32_BIT_SIGNED_INT 2 |
|
36 #define CP_TYPE_32_BIT_FLOAT 3 |
|
37 #define CP_TYPE_UTF8_STRING 4 |
|
38 #define CP_TYPE_EMPTY_STRING 5 |
|
39 #define CP_TYPE_EXT_STRING 6 |
|
40 |
|
41 |
|
42 #define SCR_MIN_INT NW_INT32_MIN |
|
43 #define SCR_MAX_INT NW_INT32_MAX |
|
44 |
|
45 #define SCR_MIN_FLOAT NW_FLOAT32_MIN |
|
46 #define SCR_MAX_FLOAT NW_FLOAT32_MAX |
|
47 |
|
48 #define MAX_CHAR_GROUP_LEN 16 |
|
49 #define MAX_STR_LEN 128 |
|
50 |
|
51 #define MAX_FRAME_SIZE 30 |
|
52 #define MAX_EXPR_DEPTH 20 |
|
53 |
|
54 |
|
55 /* Status Codes */ |
|
56 |
|
57 #define SCR_ERROR_NO_ERROR 0x00 |
|
58 #define SCR_ERROR_VERIFICATION_FAILED 0x01 |
|
59 #define SCR_ERROR_FATAL_LIBRARY_FUNCTION_ERROR 0x02 |
|
60 #define SCR_ERROR_INVALID_FUNCTION_ARGUMENTS 0x03 |
|
61 #define SCR_ERROR_EXTERNAL_FUNCTION_NOT_FOUND 0x04 |
|
62 #define SCR_ERROR_UNABLE_TO_LOAD_COMPILATION_UNIT 0x05 |
|
63 #define SCR_ERROR_ACCESS_VIOLATION 0x06 |
|
64 #define SCR_ERROR_STACK_UNDERFLOW 0x07 |
|
65 #define SCR_ERROR_STACK_OVERFLOW 0x08 |
|
66 #define SCR_ERROR_OUT_OF_MEMORY 0x09 |
|
67 |
|
68 #define SCR_ERROR_USER_EXIT 0x0a |
|
69 #define SCR_ERROR_USER_ABORT 0x0b |
|
70 |
|
71 #endif /*SCR_DEFS_H*/ |
|