1 #ifndef __ERROR 2 #define __ERROR 3 4 #include <default.h> 5 6 /* Begin Auto-Generated Part */ 7 #ifndef __HAVE_Bool 8 #define __HAVE_Bool 9 enum Bool{FALSE,TRUE}; 10 #endif 11 typedef struct ErrorFrameStruct{unsigned long A2,A3,A4,A5,A6,A7;unsigned long D3,D4,D5,D6,D7;unsigned long NG_control;char*RetIndex;unsigned long PC;struct ErrorFrameStruct*Link;}ERROR_FRAME[1]; 12 #define ER_OK 0 13 #define ER_OKAY 0 14 #define ER_EXIT 1 15 #define ER_STOP 2 16 #define ER_OFF 3 17 #define ER_PRGM_STOP 4 18 #define ER_NO_MSG 9 19 #define ER_FUNC_DID_NOT_RETURN_VALUE 10 20 #define ER_TEST_NOT_TRUE_OR_FALSE 20 21 #define ER_ARG_CANNOT_BE_FOLDER 30 22 #define ER_ARGUMENT 40 23 #define ER_ARG_MISMATCH 50 24 #define ER_EXPECTED_BOOL_OR_AGG 60 25 #define ER_ARG_MUST_BE_DECIMAL 70 26 #define ER_ARG_MUST_BE_LABEL 80 27 #define ER_ARGUMENT_MUST_BE_LIST 90 28 #define ER_ARG_MUST_BE_MATRIX 100 29 #define ER_ARG_MUST_BE_PIC 110 30 #define ER_ARG_MUST_BE_PIC_OR_STR 120 31 #define ER_ARG_MUST_BE_STRING 130 32 #define ER_EXPECTED_VAR 140 33 #define ER_ARG_MUST_BE_EMPTY_FOLDER 150 34 #define ER_EXPECTED_ALGEBRAIC 160 35 #define ER_ASAP_TOO_LONG 161 36 #define ER_ATTRIBUTE_NOT_FOUND 163 37 #define ER_BATT_LOW 165 38 #define ER_BOUND 170 39 #define ER_BREAK 180 40 #define ER_CHECKSUM 185 41 #define ER_CIRCULAR_DEFINITION 190 42 #define ER_INVALID_SUCH_THAT 200 43 #define ER_DATATYPE 210 44 #define ER_DEPENDENT_LIMIT 220 45 #define ER_DIFF_EQ_SETUP 225 46 #define ER_DIMENSION 230 47 #define ER_NOT_ENOUGH_ELEMENTS 230 48 #define ER_NON_CONFORMING_LISTS 240 49 #define ER_DIVBY0 250 50 #define ER_DOMAIN 260 51 #define ER_DUPLICATE_VAR_NAME 270 52 #define ER_ELSEIF_WITHOUT_IF 280 53 #define ER_ELSE_WITHOUT_IF 280 54 #define ER_ENDTRY_WITHOUT_ELSE 290 55 #define ER_EXCESSIVE_ITERATION 295 56 #define ER_EXPECTED_2OR3_ELEMENTS 300 57 #define ER_EXPIRED 305 58 #define ER_APP_EXT_NOT_FOUND 307 59 #define ER_APP_NOT_FOUND 308 60 #define ER_INVALID_NSOLVE_ARG1 310 61 #define ER_INVALID_SOLVE_ARG1 320 62 #define ER_FOLDER 330 63 #define ER_FUNCS_IN_DIFF_EQ 335 64 #define ER_INCONSISTENT_UNITS 345 65 #define ER_INVALID_SUBSCRIPT 350 66 #define ER_INVALID_INDIR_STRING 360 67 #define ER_INDIR_STRING_NOT_VARNAME 360 68 #define ER_INDIR_STRING_NOT_FUNNAME 360 69 #define ER_INVALID_ANS 380 70 #define ER_ILLEGAL_ASSIGNMENT 390 71 #define ER_ILLEGAL_ASSIGNMENT_VALUE 400 72 #define ER_INVALID_AXES 405 73 #define ER_ILLEGAL_COMMAND 410 74 #define ER_INVALID_FOLDER_NAME 420 75 #define ER_GRAPH_MODE 430 76 #define ER_INVALID_GUESS 435 77 #define ER_INVALID_IMPLIED_MULT 440 78 #define ER_ILLEGAL_IN_FUNC 450 79 #define ER_ILLEGAL_IN_CUSTOM 460 80 #define ER_ILLEGAL_IN_DIALOG 470 81 #define ER_ILLEGAL_IN_TOOLBAR 480 82 #define ER_CANNOT_EXIT_FROM_TRY 490 83 #define ER_CANNOT_CYCLE_FROM_TRY 490 84 #define ER_CANNOT_GOTO_FROM_TRY 490 85 #define ER_CANNOT_GOTO_INTO_TRY 490 86 #define ER_INVALID_LABEL 500 87 #define ER_INVALID_LIST_OR_MATRIX 510 88 #define ER_INVAL_OUTSIDE_TB_CM 520 89 #define ER_INVAL_OUTSIDE_DG_TB_CM 530 90 #define ER_INVALID_OUTSIDE_DIALOG 540 91 #define ER_MUST_BE_IN_PRGM_OR_FUNC 550 92 #define ER_CYCLE_NOT_IN_LOOP 560 93 #define ER_EXIT_NOT_IN_LOOP 560 94 #define ER_INVALID_PATHNAME 570 95 #define ER_INVALID_POLAR_COMPLEX 575 96 #define ER_ILLEGAL_PRGM_REF 580 97 #define ER_INVALID_SYNTAX_BLOCK 590 98 #define ER_INVALID_TABLE 600 99 #define ER_INVALID_USE_OF_UNITS 605 100 #define ER_INVALID_LOCAL_DECLARATION 610 101 #define ER_EXPECTED_VAR_OR_FUNC 620 102 #define ER_INVALID_VAR_REF 630 103 #define ER_INVALID_VECTOR_SYNTAX 640 104 #define ER_LINK_IO 650 105 #define ER_MAT_NOT_DIAGONALIZABLE 665 106 #define ER_MEMORY 670 107 #define ER_MEMORY_EXHAUSTION 670 108 #define ER_ESTACK_OVERFLOW 670 109 #define ER_STACK_VIO 673 110 #define ER_EXPECTED_LPAR 680 111 #define ER_EXPECTED_RPAR 690 112 #define ER_EXPECTED_DOUBLE_QUOTE 700 113 #define ER_EXPECTED_RIGHT_BRACKET 710 114 #define ER_EXPECTED_RIGHT_BRACE 720 115 #define ER_INVALID_BLOCK_STRUCTURE 730 116 #define ER_MISSING_THEN 740 117 #define ER_NOT_FUNC_OR_PRGM 750 118 #define ER_NO_FUNCS_SEL 765 119 #define ER_NO_SOLUTION 780 120 #define ER_NON_ALGEBRAIC_VARIABLE 790 121 #define ER_UNREAL_RESULT 800 122 #define ER_EXPECTED_REAL 800 123 #define ER_MEMORY_DML 810 124 #define ER_RATIONAL_NUMERIC_OVERFLOW 830 125 #define ER_OVERFLOW 830 126 #define ER_STAT_PLOT 840 127 #define ER_PRGM_NOT_FOUND 850 128 #define ER_RECURSION_TOO_DEEP 860 129 #define ER_RESERVED 870 130 #define ER_SYS_FUNC 870 131 #define ER_ROM_ROUTINE_NOT_AVAILABLE 875 132 #define ER_SEQUENCE_SETUP 880 133 #define ER_SIGNATURE_ERR 885 134 #define ER_SINGULARMAT 890 135 #define ER_SLOPE_FIELD_FUNCS 895 136 #define ER_WEIGHTS_SUM_NOT_POS 900 137 #define ER_LISTS_CONTAIN_NEG 900 138 #define ER_LISTS_NOT2DISCREET 900 139 #define ER_EMPTY_GROUP_NOT_VALID 900 140 #define ER_SYNTAX 910 141 #define ER_UNEXPECTED_CHARACTER 910 142 #define ER_EXPECTED_EQUAL 910 143 #define ER_EXPECTED_FACTOR 910 144 #define ER_TOO_FEW_ARGS 930 145 #define ER_TOO_MANY_ARGS 940 146 #define ER_TOO_MANY_SUBSCRIPTS 950 147 #define ER_TOO_MANY_UNDEFINED 955 148 #define ER_UNDEFINED_VAR 960 149 #define ER_UNLICENSED 965 150 #define ER_GRAPH_FUNC_IN_USE 970 151 #define ER_PROG_OR_FUNC_IN_USE 970 152 #define ER_VAR_IN_USE 970 153 #define ER_LOCKED 980 154 #define ER_PROTECTED 980 155 #define ER_NAME_TOO_LONG 990 156 #define ER_RANGE 1000 157 #define ER_ZOOM 1010 158 #define ER_ILLEGAL_TAG 1020 159 #define ER_UNKNOWN_TAG 1020 160 #define ER_DIVISION_BUG 1020 161 #define ER_MEM_VIO 1030 162 #define ER_FP_TEST_FAIL 4094 163 #define EXPECTED_BOOL_OR_AGG_ERROR 60 164 #define EXPECTED_VAR_ERROR 140 165 #define EXPECTED_ALGEBRAIC_ERROR 160 166 #define INVALID_SUCH_THAT_ERROR 200 167 #define NON_CONFORMING_LISTS_ERROR 240 168 #define EXPECTED_2OR3_ELEMENTS_ERROR 300 169 #define INVALID_NSOLVE_ARG1_ERROR 310 170 #define INVALID_SOLVE_ARG1_ERROR 320 171 #define INVALID_PATHNAME_ERROR 570 172 #define EXPECTED_VAR_OR_FUNC_ERROR 620 173 #define MEMORY_EXHAUSTION_ERROR 670 174 #define ESTACK_OVERFLOW_ERROR 670 175 #define EXPECTED_LPAR_ERROR 680 176 #define EXPECTED_RPAR_ERROR 690 177 #define EXPECTED_DOUBLE_QUOTE_ERROR 700 178 #define EXPECTED_RIGHT_BRACKET_ERROR 710 179 #define EXPECTED_RIGHT_BRACE_ERROR 720 180 #define UNREAL_RESULT_ERROR 800 181 #define EXPECTED_REAL_ERROR 800 182 #define RATIONAL_NUMERIC_OVERFLOW_ERROR 830 183 #define RECURSION_TOO_DEEP_ERROR 860 184 #define SYNTAX_ERROR 910 185 #define UNEXPECTED_CHARACTER_ERROR 910 186 #define EXPECTED_EQUAL_ERROR 910 187 #define EXPECTED_FACTOR_ERROR 910 188 #define TOO_FEW_ARGS_ERROR 930 189 #define TOO_MANY_ARGS_ERROR 940 190 #define TOO_MANY_SUBSCRIPTS_ERROR 950 191 #define TOO_MANY_UNDEFINED_ERROR 955 192 #define GRAPH_FUNC_IN_USE_ERROR 970 193 #define NAME_TOO_LONG_ERROR 990 194 #define ILLEGAL_TAG_ERROR 1020 195 #define UNKNOWN_TAG_ERROR 1020 196 #define DIVISION_BUG_ERROR 1020 197 #define ER_catch _rom_call(short,(void*),154) 198 #define ER_success _rom_call(void,(void),155) 199 #define ER_throw(err_no) __builtin_ER_throw(err_no) 200 #define ER_throwVar _rom_call_attr(void,(short),__attribute__((__noreturn__)),153) 201 #define ERD_dialog ({__need_in_use_bit;_rom_call(short,(short,short),151);}) 202 #define ERD_process ({__need_in_use_bit;_rom_call(void,(short),152);}) 203 #define ENDFINAL }if(errCode)PASS;} 204 #define ENDTRY ;_ONERR_=0;}} 205 #define FINALLY ER_success();}{ 206 #define ONERR ER_success();}else{register short _ONERR_=1; 207 #define PASS (ER_throwVar(errCode)) 208 #define TRY {ERROR_FRAME __errFrame;unsigned short errCode;errCode=ER_catch(__errFrame);if(!errCode){ 209 #if MIN_AMS>=101 210 #define find_error_message _rom_call(const char*,(short),2C1) 211 #endif 212 /* End Auto-Generated Part */ 213 214 #define ER_THROW(n) ER_throw(n) 215 216 #endif 217