/usr/include/scilab/api_error.h is in scilab-include 5.3.3-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | /*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2009 - DIGITEO - Antoine ELIAS
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*/
#ifndef __ERROR_API__
#define __ERROR_API__
#ifdef __cplusplus
extern "C" {
#endif
/*api list error*/
/*common error 1 - 99*/
#define API_ERROR_INVALID_POINTER 1
#define API_ERROR_INVALID_TYPE 2
#define API_ERROR_NOT_MATRIX_TYPE 3
#define API_ERROR_GET_PROCESSMODE 6
#define API_ERROR_INVALID_POSITION 7
#define API_ERROR_INVALID_COMPLEXITY 8
#define API_ERROR_GET_DIMFROMVAR 9
#define API_ERROR_INVALID_NAME 50
#define API_ERROR_NAMED_TYPE 51
#define API_ERROR_NAMED_UNDEFINED_VAR 52
#define API_ERROR_NAMED_VARDIM 55
#define API_ERROR_GET_NAMED_DIMFROMVAR 59
#define API_ERROR_IS_ROW_VECTOR 60
#define API_ERROR_IS_COLUMN_VECTOR 61
#define API_ERROR_IS_VECTOR 62
#define API_ERROR_IS_SCALAR 63
#define API_ERROR_IS_SQUARE 64
#define API_ERROR_CHECK_VAR_DIMENSION 65
#define API_ERROR_CREATE_EMPTY_MATRIX 66
#define API_ERROR_CREATE_NAMED_EMPTY_MATRIX 67
#define API_ERROR_IS_NAMED_ROW_VECTOR 68
#define API_ERROR_IS_NAMED_COLUMN_VECTOR 69
#define API_ERROR_IS_NAMED_SCALAR 70
#define API_ERROR_IS_NAMED_SQUARE 71
#define API_ERROR_CHECK_NAMED_VAR_DIMENSION 72
/*double errors 101 - 199*/
#define API_ERROR_GET_DOUBLE 101
#define API_ERROR_GET_ZDOUBLE 102
#define API_ERROR_ALLOC_DOUBLE 103
#define API_ERROR_ALLOC_COMPLEX_DOUBLE 104
#define API_ERROR_CREATE_DOUBLE 105
#define API_ERROR_CREATE_COMPLEX_DOUBLE 106
#define API_ERROR_CREATE_ZDOUBLE 107
#define API_ERROR_READ_NAMED_DOUBLE 108
#define API_ERROR_GET_SCALAR_DOUBLE 109
#define API_ERROR_CREATE_SCALAR_DOUBLE 110
#define API_ERROR_CREATE_NAMED_SCALAR 111
#define API_ERROR_GET_NAMED_SCALAR_DOUBLE 112
/*poly errors 201 - 299*/
#define API_ERROR_GET_POLY_VARNAME 201
#define API_ERROR_GET_POLY 202
#define API_ERROR_CREATE_POLY 203
#define API_ERROR_TOO_LONG_VAR 204
#define API_ERROR_CREATE_NAMED_POLY 207
#define API_ERROR_READ_NAMED_POLY 208
#define API_ERROR_GET_ALLOC_SINGLE_POLY 209
#define API_ERROR_GET_ALLOC_NAMED_SINGLE_POLY 210
#define API_ERROR_GET_ALLOC_MATRIX_POLY 211
#define API_ERROR_GET_ALLOC_NAMED_MATRIX_POLY 212
/*boolean errors 401 - 499*/
#define API_ERROR_GET_BOOLEAN 401
#define API_ERROR_CREATE_BOOLEAN 402
#define API_ERROR_CREATE_NAMED_BOOLEAN 403
#define API_ERROR_READ_BOOLEAN 404
#define API_ERROR_CREATE_SCALAR_BOOLEAN 405
#define API_ERROR_CREATE_NAMED_SCALAR_BOOLEAN 406
/*sparse errors 501 - 599*/
#define API_ERROR_GET_SPARSE 501
#define API_ERROR_ALLOC_SPARSE 502
#define API_ERROR_CREATE_SPARSE 504
#define API_ERROR_CREATE_NAMED_SPARSE 505
#define API_ERROR_READ_NAMED_SPARSE 506
#define API_ERROR_GET_ALLOC_SPARSE 507
#define API_ERROR_GET_NAMED_ALLOC_SPARSE 508
/*boolean sparse errors 601 - 699*/
#define API_ERROR_GET_BOOLEAN_SPARSE 601
#define API_ERROR_ALLOC_BOOLEAN_SPARSE 602
#define API_ERROR_FILL_BOOLEAN_SPARSE 603
#define API_ERROR_CREATE_BOOLEAN_SPARSE 604
#define API_ERROR_CREATE_NAMED_BOOLEAN_SPARSE 605
#define API_ERROR_READ_NAMED_BOOLEAN_SPARSE 606
#define API_ERROR_GET_SCALAR_BOOLEAN 607
#define API_ERROR_GET_NAMED_SCALAR_BOOLEAN 608
#define API_ERROR_GET_ALLOC_BOOLEAN_SPARSE 611
#define API_ERROR_GET_NAMED_ALLOC_BOOLEAN_SPARSE 612
/*matlab sparse errors 701 - 799*/
/*ints errors 801 - 899*/
#define API_ERROR_GET_INT 802
#define API_ERROR_CREATE_INT 803
#define API_ERROR_ALLOC_INT 804
#define API_ERROR_GET_NAMED_INT_PRECISION 805
#define API_ERROR_READ_NAMED_INT 806
#define API_ERROR_GET_SCALAR_INTEGER 807
#define API_ERROR_GET_NAMED_SCALAR_INTEGER 808
#define API_ERROR_CREATE_SCALAR_INT 809
#define API_ERROR_CREATE_NAMED_SCALAR_INT 810
/*strings errors 1001 - 1099*/
#define API_ERROR_GET_STRING 1001
#define API_ERROR_INVALID_SUBSTRING_POINTER 1002
#define API_ERROR_CREATE_STRING 1003
#define API_ERROR_CREATE_NAMED_STRING 1005
#define API_ERROR_READ_NAMED_STRING 1006
#define API_ERROR_GET_WIDE_STRING 1007
#define API_ERROR_CREATE_WIDE_STRING 1008
#define API_ERROR_CREATE_NAMED_WIDE_STRING 1009
#define API_ERROR_READ_NAMED_WIDE_STRING 1010
#define API_ERROR_GET_ALLOC_SINGLE_STRING 1011
#define API_ERROR_GET_ALLOC_SINGLE_WIDE_STRING 1012
#define API_ERROR_GET_ALLOC_STRING_MATRIX 1013
#define API_ERROR_GET_ALLOC_WIDE_STRING_MATRIX 1014
#define API_ERROR_GET_ALLOC_NAMED_SINGLE_STRING 1015
#define API_ERROR_GET_ALLOC_NAMED_SINGLE_WIDE_STRING 1016
#define API_ERROR_GET_ALLOC_NAMED_STRING_MATRIX 1017
#define API_ERROR_GET_ALLOC_NAMED_WIDE_STRING_MATRIX 1018
#define API_ERROR_CREATE_SINGLE_STRING 1019
#define API_ERROR_CREATE_SINGLE_WIDE_STRING 1020
#define API_ERROR_CREATE_NAMED_SINGLE_STRING 1021
#define API_ERROR_CREATE_NAMED_SINGLE_WIDE_STRING 1022
/*list errors 1501 - 1599*/
#define API_ERROR_LIST_ITEM_NUMBER 1501
#define API_ERROR_INVALID_LIST_TYPE 1502
#define API_ERROR_GET_ITEM_ADDRESS 1503
#define API_ERROR_CREATE_NAMED_LIST 1504
#define API_ERROR_CREATE_LIST 1505
#define API_ERROR_READ_NAMED_LIST 1506
#define API_ERROR_GET_LIST_IN_LIST 1507
#define API_ERROR_GET_LIST_IN_NAMED_LIST 1508
#define API_ERROR_CREATE_LIST_IN_LIST 1509
#define API_ERROR_CREATE_LIST_IN_NAMED_LIST 1510
#define API_ERROR_ITEM_LIST_NUMBER 1511
#define API_ERROR_NON_ORDERED_INSERTION 1512
#define API_ERROR_ALLOC_IN_LIST 1513
#define API_ERROR_CREATE_VOID_IN_LIST 1514
/*double in list*/
#define API_ERROR_GET_DOUBLE_IN_LIST 1520
#define API_ERROR_ALLOC_DOUBLE_IN_LIST 1521
#define API_ERROR_CREATE_ZDOUBLE_IN_LIST 1523
#define API_ERROR_CREATE_DOUBLE_IN_LIST 1524
#define API_ERROR_CREATE_ZDOUBLE_IN_NAMED_LIST 1525
#define API_ERROR_CREATE_DOUBLE_IN_NAMED_LIST 1526
#define API_ERROR_READ_DOUBLE_IN_NAMED_LIST 1527
/*string in list*/
#define API_ERROR_GET_STRING_IN_LIST 1530
#define API_ERROR_FILL_STRING_IN_LIST 1531
#define API_ERROR_CREATE_STRING_IN_LIST 1532
#define API_ERROR_CREATE_STRING_IN_NAMED_LIST 1534
#define API_ERROR_READ_STRING_IN_NAMED_LIST 1535
/*boolean in list*/
#define API_ERROR_GET_BOOLEAN_IN_LIST 1540
#define API_ERROR_CREATE_BOOLEAN_IN_LIST 1541
#define API_ERROR_ALLOC_BOOLEAN_IN_LIST 1542
#define API_ERROR_FILL_BOOLEAN_IN_LIST 1543
#define API_ERROR_CREATE_BOOLEAN_IN_NAMED_LIST 1544
#define API_ERROR_READ_BOOLEAN_IN_NAMED_LIST 1545
/*poly in list*/
#define API_ERROR_GET_POLY_IN_LIST 1550
#define API_ERROR_CREATE_POLY_IN_LIST 1551
#define API_ERROR_FILL_POLY_IN_LIST 1552
#define API_ERROR_CREATE_POLY_IN_NAMED_LIST 1553
#define API_ERROR_READ_POLY_IN_NAMED_LIST 1554
/*int in list*/
#define API_ERROR_FILL_INT_IN_LIST 1560
#define API_ERROR_ALLOC_INT_IN_LIST 1561
#define API_ERROR_CREATE_INT_IN_LIST 1562
#define API_ERROR_GET_INT_IN_LIST 1563
#define API_ERROR_CREATE_INT_IN_NAMED_LIST 1564
#define API_ERROR_READ_INT_IN_NAMED_LIST 1565
/*sparse in list*/
#define API_ERROR_FILL_SPARSE_IN_LIST 1570
#define API_ERROR_CREATE_SPARSE_IN_LIST 1571
#define API_ERROR_CREATE_SPARSE_IN_NAMED_LIST 1572
#define API_ERROR_GET_SPARSE_IN_LIST 1573
#define API_ERROR_READ_SPARSE_IN_NAMED_LIST 1574
/*boolean sparse in list*/
#define API_ERROR_FILL_BOOLEAN_SPARSE_IN_LIST 1580
#define API_ERROR_CREATE_BOOLEAN_SPARSE_IN_LIST 1581
#define API_ERROR_CREATE_BOOLEAN_SPARSE_IN_NAMED_LIST 1582
#define API_ERROR_GET_BOOLEAN_SPARSE_IN_LIST 1583
#define API_ERROR_READ_BOOLEAN_SPARSE_IN_NAMED_LIST 1584
/*pointer in list*/
#define API_ERROR_GET_POINTER_IN_LIST 1590
#define API_ERROR_CREATE_POINTER_IN_NAMED_LIST 1591
#define API_ERROR_READ_POINTER_IN_NAMED_LIST 1592
#define API_ERROR_CREATE_POINTER_IN_LIST 1593
/*pointer errors 12801 - 12899*/
#define API_ERROR_GET_POINTER 12801
#define API_ERROR_ALLOC_POINTER 12803
#define API_ERROR_CREATE_POINTER 12804
#define API_ERROR_CREATE_NAMED_POINTER 12805
#define API_ERROR_READ_POINTER 12806
/* error functions*/
int addStackSizeError(SciErr* _psciErr, char* _pstCaller, int iNeeded);
int addErrorMessage(SciErr* _psciErr, int _iErr, const char* _pstMsg, ...);
int printError(SciErr* _psciErr, int _iLastMsg);
char* getErrorMessage(SciErr _sciErr);
#ifdef __cplusplus
}
#endif
#endif /* __ERROR_API__ */
|