3 * A table of numbers, generated by a script, is supposedly not copyrightable.
6 #ifndef AJLA_PCODE_OP_H
7 #define AJLA_PCODE_OP_H
12 #define P_Copy_Type_Cast 4
17 #define P_Load_Local_Type 9
21 #define P_Call_Indirect 13
22 #define P_Load_Const 14
23 #define P_Structured_Write 15
24 #define P_Record_Type 16
25 #define P_Option_Type 17
26 #define P_Record_Create 18
27 #define P_Record_Load_Slot 19
28 #define P_Record_Load 20
29 #define P_Option_Create 21
30 #define P_Option_Load 22
31 #define P_Option_Test 23
32 #define P_Option_Ord 24
33 #define P_Array_Flexible 25
34 #define P_Array_Fixed 26
35 #define P_Array_Create 27
36 #define P_Array_Fill 28
37 #define P_Array_String 29
38 #define P_Array_Unicode 30
39 #define P_Array_Load 31
40 #define P_Array_Len 32
41 #define P_Array_Len_Greater_Than 33
42 #define P_Array_Sub 34
43 #define P_Array_Skip 35
44 #define P_Array_Append 36
45 #define P_Array_Append_One 37
46 #define P_Array_Flatten 38
48 #define P_Jmp_False 40
52 #define P_Return_Vars 44
54 #define P_Checkpoint 46
55 #define P_Line_Info 47
71 #define T_Integer8 -13
72 #define T_Integer16 -14
73 #define T_Integer32 -15
74 #define T_Integer64 -16
75 #define T_Integer128 -17
81 #define T_EmptyOption -23
82 #define T_FlatOption -24
83 #define T_Undetermined -25
84 #define T_TypeOfType -26
86 #define T_UnknownType -28
87 #define T_InvalidType -29
88 #define T_InferredType -30
90 #define Structured_Record 1
91 #define Structured_Option 2
92 #define Structured_Array 3
94 #define VarFlag_Must_Be_Flat 1
96 #define Flag_Free_Argument 1
97 #define Flag_Evaluate 2
99 #define Flag_Array_Fill_Sparse 8
100 #define Flag_Op_Strict 16
101 #define Flag_Return_Elided 32
102 #define Flag_Index_In_Range 64
103 #define Flag_Fused_Bin_Jmp 128
106 #define Bin_Subtract 1
107 #define Bin_Multiply 2
108 #define Bin_Divide_Int 3
109 #define Bin_Divide_Real 4
124 #define Bin_NotEqual 19
126 #define Bin_LessEqual 21
162 #define Un_Mantissa 57
163 #define Un_Exponent 58
164 #define Un_NextNumber 59
165 #define Un_PrevNumber 60
166 #define Un_ConvertToInt 61
167 #define Un_ConvertFromInt 62
168 #define Un_IsException 63
169 #define Un_ExceptionClass 64
170 #define Un_ExceptionType 65
171 #define Un_ExceptionAux 66
172 #define Un_SystemProperty 67
175 #define Fn_Function 1
180 #define Local_Type_Record 0
181 #define Local_Type_Flat_Record 1
182 #define Local_Type_Flat_Array 2
184 #define Call_Mode_Unspecified 0
185 #define Call_Mode_Normal 1
186 #define Call_Mode_Strict 2
187 #define Call_Mode_Spark 3
188 #define Call_Mode_Lazy 4
189 #define Call_Mode_Inline 5
190 #define Call_Mode_Cache 6
191 #define Call_Mode_Save 7
192 #define Call_Mode_Type 8
193 #define Call_Mode_Flat 9
195 #define SystemProperty_OS 1
196 #define SystemProperty_Charset 2
197 #define SystemProperty_Charset_Console 3
198 #define SystemProperty_Fixed 4
199 #define SystemProperty_Real 5
200 #define SystemProperty_Privileged 6
201 #define SystemProperty_Compile 7
203 #define SystemProperty_OS_Posix 1
204 #define SystemProperty_OS_DOS 2
205 #define SystemProperty_OS_OS2 3
206 #define SystemProperty_OS_Cygwin 4
207 #define SystemProperty_OS_Windows 5
209 #define IO_Exception_Make 0
210 #define IO_Exception_String 1
211 #define IO_Exception_Payload 2
212 #define IO_Exception_Stack 3
213 #define IO_N_Std_Handles 4
214 #define IO_Get_Std_Handle 5
215 #define IO_Get_Args 6
216 #define IO_Get_Environment 7
217 #define IO_Stream_Open_Read 8
218 #define IO_Stream_Read_Partial 9
219 #define IO_Stream_Open_Write 10
220 #define IO_Stream_Write 11
221 #define IO_Read_Console_Packet 12
222 #define IO_Write_Console_Packet 13
224 #define IO_Block_Open 15
225 #define IO_Block_Read 16
226 #define IO_Block_Write 17
228 #define IO_FTruncate 19
229 #define IO_FAllocate 20
230 #define IO_CloneRange 21
233 #define IO_Root_Dir 24
234 #define IO_Lib_Path 25
235 #define IO_Open_Dir 26
236 #define IO_Read_Dir 27
237 #define IO_Dir_Path 28
238 #define IO_DMonitor_Prepare 29
239 #define IO_DMonitor_Wait 30
242 #define IO_FStatFS 33
243 #define IO_DStatFS 34
244 #define IO_ReadLink 35
245 #define IO_Dir_Action 36
246 #define IO_Dir2_Action 37
249 #define IO_Tty_Size 40
250 #define IO_Tty_Background 41
251 #define IO_Tty_Foreground 42
253 #define IO_GetHostName 44
256 #define IO_GetTime 47
257 #define IO_TimeToCalendar 48
258 #define IO_CalendarToTime 49
263 #define IO_Atomic_Enter 54
264 #define IO_Atomic_Exit 55
265 #define IO_Wait_For_Dereferenced 56
266 #define IO_Int_To_Native 57
267 #define IO_Native_To_Int 58
269 #define IO_Connect 60
270 #define IO_Connect_Wait 61
274 #define IO_Get_Sock_Name 65
275 #define IO_Get_Peer_Name 66
276 #define IO_Recv_From 67
277 #define IO_Send_To 68
278 #define IO_Get_Sock_Opt 69
279 #define IO_Set_Sock_Opt 70
280 #define IO_Get_Addr_Info 71
281 #define IO_Get_Name_Info 72
282 #define IO_MsgQueue_New 73
283 #define IO_MsgQueue_Send 74
284 #define IO_MsgQueue_Receive 75
285 #define IO_MsgQueue_Wait 76
286 #define IO_MsgQueue_Is_Nonempty 77
287 #define IO_Signal_Handle 78
288 #define IO_Signal_Prepare 79
289 #define IO_Signal_Wait 80
290 #define IO_Consume_Parameters 81
291 #define IO_Load_Program 82
292 #define IO_Get_Function_Ptr 83
293 #define IO_Get_SubFunctions 84
294 #define IO_Load_Optimized_Pcode 85
295 #define IO_Register_Dependence 86
296 #define IO_Deep_Eval 87
297 #define IO_Evaluate 88
299 #define IO_StackTrace 90
300 #define IO_TraceCtl 91
301 #define IO_FFI_Get_Size_Alignment 92
302 #define IO_FFI_Create_Structure 93
303 #define IO_FFI_Structure_Offset 94
304 #define IO_FFI_Poke 95
305 #define IO_FFI_Peek 96
306 #define IO_FFI_Poke_Array 97
307 #define IO_FFI_Peek_Array 98
308 #define IO_FFI_Handle_To_Number 99
309 #define IO_FFI_Number_To_Handle 100
310 #define IO_FFI_Create_Function 101
311 #define IO_FFI_Call_Function 102
312 #define IO_FFI_Encode_Real 103
313 #define IO_FFI_Decode_Real 104
314 #define IO_FFI_Destructor_New 105
315 #define IO_FFI_Destructor_Allocate 106
316 #define IO_FFI_Destructor_Free 107
317 #define IO_FFI_Destructor_Call 108
320 #define IO_Open_Flag_Read 1
321 #define IO_Open_Flag_Write 2
322 #define IO_Open_Flag_Append 4
323 #define IO_Open_Flag_Create 8
324 #define IO_Open_Flag_Must_Create 16
325 #define IO_Open_Flag_No_Follow 32
326 #define IO_Open_Flag_N 64
328 #define IO_Stat_Flag_DevMajor 1
329 #define IO_Stat_Flag_DevMinor 2
330 #define IO_Stat_Flag_Inode 4
331 #define IO_Stat_Flag_Type 8
332 #define IO_Stat_Flag_Mode 16
333 #define IO_Stat_Flag_NLink 32
334 #define IO_Stat_Flag_UID 64
335 #define IO_Stat_Flag_GID 128
336 #define IO_Stat_Flag_RDevMajor 256
337 #define IO_Stat_Flag_RDevMinor 512
338 #define IO_Stat_Flag_Size 1024
339 #define IO_Stat_Flag_OptimalIOSize 2048
340 #define IO_Stat_Flag_Allocated 4096
341 #define IO_Stat_Flag_ATime 8192
342 #define IO_Stat_Flag_MTime 16384
343 #define IO_Stat_Flag_CTime 32768
345 #define IO_Stat_Type_File 1
346 #define IO_Stat_Type_Directory 2
347 #define IO_Stat_Type_Link 3
348 #define IO_Stat_Type_Pipe 4
349 #define IO_Stat_Type_CharDev 5
350 #define IO_Stat_Type_BlockDev 6
351 #define IO_Stat_Type_Socket 7
353 #define IO_StatFS_Flag_BSize 1
354 #define IO_StatFS_Flag_FrSize 2
355 #define IO_StatFS_Flag_FrTotal 4
356 #define IO_StatFS_Flag_FrFree 8
357 #define IO_StatFS_Flag_FrAvail 16
358 #define IO_StatFS_Flag_InTotal 32
359 #define IO_StatFS_Flag_InFree 64
360 #define IO_StatFS_Flag_InAvail 128
361 #define IO_StatFS_Flag_FSId 256
362 #define IO_StatFS_Flag_Flags 512
363 #define IO_StatFS_Flag_NameLen 1024
365 #define IO_StatFS_ST_ReadOnly 1
366 #define IO_StatFS_ST_NoSuid 2
367 #define IO_StatFS_ST_NoDev 4
368 #define IO_StatFS_ST_NoExec 8
369 #define IO_StatFS_ST_Synchronous 16
370 #define IO_StatFS_ST_MandLock 32
371 #define IO_StatFS_ST_NoAtime 64
372 #define IO_StatFS_ST_NoDirAtime 128
373 #define IO_StatFS_ST_RelAtime 256
375 #define IO_UName_Flag_Ajla_Version 1
376 #define IO_UName_Flag_Flavor 2
377 #define IO_UName_Flag_System 4
378 #define IO_UName_Flag_Release 8
379 #define IO_UName_Flag_Version 16
380 #define IO_UName_Flag_Machine 32
382 #define IO_Action_Rm 1
383 #define IO_Action_Rm_Dir 2
384 #define IO_Action_Mk_Dir 3
385 #define IO_Action_Mk_Pipe 4
386 #define IO_Action_Mk_Socket 5
387 #define IO_Action_Mk_CharDev 6
388 #define IO_Action_Mk_BlockDev 7
389 #define IO_Action_Mk_SymLink 8
390 #define IO_Action_Mk_Link 9
391 #define IO_Action_Rename 10
392 #define IO_Action_ChMod 11
393 #define IO_Action_ChOwn 12
394 #define IO_Action_LChOwn 13
395 #define IO_Action_UTime 14
396 #define IO_Action_LUTime 15
398 #define IO_Stty_Flag_Raw 1
399 #define IO_Stty_Flag_Noecho 2
400 #define IO_Stty_Flag_Nosignal 4
401 #define IO_Stty_Flag_NoCRLF 8
410 #define AJLA_ERROR_BASE 1
411 #define AJLA_ERROR_UNKNOWN_ERROR 1
412 #define AJLA_ERROR_OUT_OF_MEMORY 2
413 #define AJLA_ERROR_SIZE_OVERFLOW 3
414 #define AJLA_ERROR_INT_TOO_LARGE 4
415 #define AJLA_ERROR_DOESNT_FIT 5
416 #define AJLA_ERROR_INVALID_OPERATION 6
417 #define AJLA_ERROR_NOT_SUPPORTED 7
418 #define AJLA_ERROR_NEGATIVE_INDEX 8
419 #define AJLA_ERROR_INDEX_OUT_OF_RANGE 9
420 #define AJLA_ERROR_OPTION_DOESNT_MATCH 10
421 #define AJLA_ERROR_RECORD_FIELD_NOT_INITIALIZED 11
422 #define AJLA_ERROR_ARRAY_ENTRY_NOT_INITIALIZED 12
423 #define AJLA_ERROR_NOT_FOUND 13
424 #define AJLA_ERROR_NON_ABSOLUTE_PATH 14
425 #define AJLA_ERROR_ABORT 15
426 #define AJLA_ERROR_NAN 16
427 #define AJLA_ERROR_INFINITY 17
428 #define AJLA_ERROR_SYSTEM_RETURNED_INVALID_DATA 18
429 #define AJLA_ERROR_COMPILER_ERROR 19
430 #define AJLA_ERROR_OPTIMIZER_ERROR 20
431 #define AJLA_ERROR_SYSTEM 21
432 #define AJLA_ERROR_ERRNO 22
433 #define AJLA_ERROR_OS2 23
434 #define AJLA_ERROR_OS2_SOCKET 24
435 #define AJLA_ERROR_WIN32 25
436 #define AJLA_ERROR_H_ERRNO 26
437 #define AJLA_ERROR_GAI 27
438 #define AJLA_ERROR_SUBPROCESS 28
439 #define AJLA_ERROR_LIBRARY_NOT_FOUND 29
440 #define AJLA_ERROR_SYMBOL_NOT_FOUND 30
441 #define AJLA_ERROR_EXIT 31
442 #define AJLA_ERROR_USER 32
443 #define AJLA_ERROR_USER2 33
444 #define AJLA_ERROR_USER3 34
445 #define AJLA_ERROR_N 35
447 #define SYSTEM_ERROR_BASE 1
448 #define SYSTEM_ERROR_EPERM 1
449 #define SYSTEM_ERROR_ENOENT 2
450 #define SYSTEM_ERROR_ESRCH 3
451 #define SYSTEM_ERROR_EINTR 4
452 #define SYSTEM_ERROR_EIO 5
453 #define SYSTEM_ERROR_ENXIO 6
454 #define SYSTEM_ERROR_E2BIG 7
455 #define SYSTEM_ERROR_ENOEXEC 8
456 #define SYSTEM_ERROR_EBADF 9
457 #define SYSTEM_ERROR_ECHILD 10
458 #define SYSTEM_ERROR_EAGAIN 11
459 #define SYSTEM_ERROR_ENOMEM 12
460 #define SYSTEM_ERROR_EACCES 13
461 #define SYSTEM_ERROR_EFAULT 14
462 #define SYSTEM_ERROR_ENOTBLK 15
463 #define SYSTEM_ERROR_EBUSY 16
464 #define SYSTEM_ERROR_EEXIST 17
465 #define SYSTEM_ERROR_EXDEV 18
466 #define SYSTEM_ERROR_ENODEV 19
467 #define SYSTEM_ERROR_ENOTDIR 20
468 #define SYSTEM_ERROR_EISDIR 21
469 #define SYSTEM_ERROR_EINVAL 22
470 #define SYSTEM_ERROR_ENFILE 23
471 #define SYSTEM_ERROR_EMFILE 24
472 #define SYSTEM_ERROR_ENOTTY 25
473 #define SYSTEM_ERROR_ETXTBSY 26
474 #define SYSTEM_ERROR_EFBIG 27
475 #define SYSTEM_ERROR_ENOSPC 28
476 #define SYSTEM_ERROR_ESPIPE 29
477 #define SYSTEM_ERROR_EROFS 30
478 #define SYSTEM_ERROR_EMLINK 31
479 #define SYSTEM_ERROR_EPIPE 32
480 #define SYSTEM_ERROR_EDOM 33
481 #define SYSTEM_ERROR_ERANGE 34
482 #define SYSTEM_ERROR_EDEADLK 35
483 #define SYSTEM_ERROR_ENAMETOOLONG 36
484 #define SYSTEM_ERROR_ENOLCK 37
485 #define SYSTEM_ERROR_ENOSYS 38
486 #define SYSTEM_ERROR_ENOTEMPTY 39
487 #define SYSTEM_ERROR_ELOOP 40
488 #define SYSTEM_ERROR_ENOMSG 41
489 #define SYSTEM_ERROR_EIDRM 42
490 #define SYSTEM_ERROR_ECHRNG 43
491 #define SYSTEM_ERROR_EL2NSYNC 44
492 #define SYSTEM_ERROR_EL3HLT 45
493 #define SYSTEM_ERROR_EL3RST 46
494 #define SYSTEM_ERROR_ELNRNG 47
495 #define SYSTEM_ERROR_EUNATCH 48
496 #define SYSTEM_ERROR_ENOCSI 49
497 #define SYSTEM_ERROR_EL2HLT 50
498 #define SYSTEM_ERROR_EBADE 51
499 #define SYSTEM_ERROR_EBADR 52
500 #define SYSTEM_ERROR_EXFULL 53
501 #define SYSTEM_ERROR_ENOANO 54
502 #define SYSTEM_ERROR_EBADRQC 55
503 #define SYSTEM_ERROR_EBADSLT 56
504 #define SYSTEM_ERROR_EBFONT 57
505 #define SYSTEM_ERROR_ENOSTR 58
506 #define SYSTEM_ERROR_ENODATA 59
507 #define SYSTEM_ERROR_ETIME 60
508 #define SYSTEM_ERROR_ENOSR 61
509 #define SYSTEM_ERROR_ENONET 62
510 #define SYSTEM_ERROR_ENOPKG 63
511 #define SYSTEM_ERROR_EREMOTE 64
512 #define SYSTEM_ERROR_ENOLINK 65
513 #define SYSTEM_ERROR_EADV 66
514 #define SYSTEM_ERROR_ESRMNT 67
515 #define SYSTEM_ERROR_ECOMM 68
516 #define SYSTEM_ERROR_EPROTO 69
517 #define SYSTEM_ERROR_EMULTIHOP 70
518 #define SYSTEM_ERROR_EDOTDOT 71
519 #define SYSTEM_ERROR_EBADMSG 72
520 #define SYSTEM_ERROR_EOVERFLOW 73
521 #define SYSTEM_ERROR_ENOTUNIQ 74
522 #define SYSTEM_ERROR_EBADFD 75
523 #define SYSTEM_ERROR_EREMCHG 76
524 #define SYSTEM_ERROR_ELIBACC 77
525 #define SYSTEM_ERROR_ELIBBAD 78
526 #define SYSTEM_ERROR_ELIBSCN 79
527 #define SYSTEM_ERROR_ELIBMAX 80
528 #define SYSTEM_ERROR_ELIBEXEC 81
529 #define SYSTEM_ERROR_EILSEQ 82
530 #define SYSTEM_ERROR_ERESTART 83
531 #define SYSTEM_ERROR_ESTRPIPE 84
532 #define SYSTEM_ERROR_EUSERS 85
533 #define SYSTEM_ERROR_ENOTSOCK 86
534 #define SYSTEM_ERROR_EDESTADDRREQ 87
535 #define SYSTEM_ERROR_EMSGSIZE 88
536 #define SYSTEM_ERROR_EPROTOTYPE 89
537 #define SYSTEM_ERROR_ENOPROTOOPT 90
538 #define SYSTEM_ERROR_EPROTONOSUPPORT 91
539 #define SYSTEM_ERROR_ESOCKTNOSUPPORT 92
540 #define SYSTEM_ERROR_EOPNOTSUPP 93
541 #define SYSTEM_ERROR_EPFNOSUPPORT 94
542 #define SYSTEM_ERROR_EAFNOSUPPORT 95
543 #define SYSTEM_ERROR_EADDRINUSE 96
544 #define SYSTEM_ERROR_EADDRNOTAVAIL 97
545 #define SYSTEM_ERROR_ENETDOWN 98
546 #define SYSTEM_ERROR_ENETUNREACH 99
547 #define SYSTEM_ERROR_ENETRESET 100
548 #define SYSTEM_ERROR_ECONNABORTED 101
549 #define SYSTEM_ERROR_ECONNRESET 102
550 #define SYSTEM_ERROR_ENOBUFS 103
551 #define SYSTEM_ERROR_EISCONN 104
552 #define SYSTEM_ERROR_ENOTCONN 105
553 #define SYSTEM_ERROR_ESHUTDOWN 106
554 #define SYSTEM_ERROR_ETOOMANYREFS 107
555 #define SYSTEM_ERROR_ETIMEDOUT 108
556 #define SYSTEM_ERROR_ECONNREFUSED 109
557 #define SYSTEM_ERROR_EHOSTDOWN 110
558 #define SYSTEM_ERROR_EHOSTUNREACH 111
559 #define SYSTEM_ERROR_EALREADY 112
560 #define SYSTEM_ERROR_EINPROGRESS 113
561 #define SYSTEM_ERROR_ESTALE 114
562 #define SYSTEM_ERROR_EUCLEAN 115
563 #define SYSTEM_ERROR_ENOTNAM 116
564 #define SYSTEM_ERROR_ENAVAIL 117
565 #define SYSTEM_ERROR_EISNAM 118
566 #define SYSTEM_ERROR_EREMOTEIO 119
567 #define SYSTEM_ERROR_EDQUOT 120
568 #define SYSTEM_ERROR_ENOMEDIUM 121
569 #define SYSTEM_ERROR_EMEDIUMTYPE 122
570 #define SYSTEM_ERROR_ECANCELED 123
571 #define SYSTEM_ERROR_ENOKEY 124
572 #define SYSTEM_ERROR_EKEYEXPIRED 125
573 #define SYSTEM_ERROR_EKEYREVOKED 126
574 #define SYSTEM_ERROR_EKEYREJECTED 127
575 #define SYSTEM_ERROR_EOWNERDEAD 128
576 #define SYSTEM_ERROR_ENOTRECOVERABLE 129
577 #define SYSTEM_ERROR_ERFKILL 130
578 #define SYSTEM_ERROR_EHWPOISON 131
579 #define SYSTEM_ERROR_N 132