Changeset 21609


Ignore:
Timestamp:
Apr 5, 2011, 2:21:42 AM (14 years ago)
Author:
dmik
Message:

os2wrap2.h: Added CREATE_, EXLST_ and XCPT_ defines.

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/include/os2wrap2.h

    r21586 r21609  
    10221022#define os2_RT_MAX 22
    10231023#define os2_RT_RESNAMES 255
     1024#define os2_CREATE_READY 0
     1025#define os2_CREATE_SUSPENDED 1
     1026#define os2_EXLST_ADD 1
     1027#define os2_EXLST_REMOVE 2
     1028#define os2_EXLST_EXIT 3
    10241029#define _RESULTCODES os2__RESULTCODES
    10251030#define RESULTCODES os2_RESULTCODES
     
    11051110#define os2_EH_STACK_INVALID 0x0008
    11061111#define os2_EH_NESTED_CALL 0x0010
     1112#define os2_XCPT_CONTINUE_SEARCH 0x00000000
     1113#define os2_XCPT_CONTINUE_EXECUTION 0xffffffff
     1114#define os2_XCPT_CONTINUE_STOP 0x00716668
     1115#define os2_XCPT_SIGNAL_INTR 1
     1116#define os2_XCPT_SIGNAL_KILLPROC 3
     1117#define os2_XCPT_SIGNAL_BREAK 4
     1118#define os2_XCPT_SIGNAL_APTERM 8
     1119#define os2_XCPT_FATAL_EXCEPTION 0xc0000000
     1120#define os2_XCPT_SEVERITY_CODE 0xc0000000
     1121#define os2_XCPT_CUSTOMER_CODE 0x20000000
     1122#define os2_XCPT_FACILITY_CODE 0x1fff0000
     1123#define os2_XCPT_EXCEPTION_CODE 0x0000ffff
     1124#define os2_XCPT_UNKNOWN_ACCESS 0x00000000
     1125#define os2_XCPT_READ_ACCESS 0x00000001
     1126#define os2_XCPT_WRITE_ACCESS 0x00000002
     1127#define os2_XCPT_EXECUTE_ACCESS 0x00000004
     1128#define os2_XCPT_SPACE_ACCESS 0x00000008
     1129#define os2_XCPT_LIMIT_ACCESS 0x00000010
     1130#define os2_XCPT_DATA_UNKNOWN 0xffffffff
     1131#define os2_XCPT_GUARD_PAGE_VIOLATION 0x80000001
     1132#define os2_XCPT_UNABLE_TO_GROW_STACK 0x80010001
     1133#define os2_XCPT_ACCESS_VIOLATION 0xc0000005
     1134#define os2_XCPT_IN_PAGE_ERROR 0xc0000006
     1135#define os2_XCPT_ILLEGAL_INSTRUCTION 0xc000001c
     1136#define os2_XCPT_INVALID_LOCK_SEQUENCE 0xc000001d
     1137#define os2_XCPT_NONCONTINUABLE_EXCEPTION 0xc0000024
     1138#define os2_XCPT_INVALID_DISPOSITION 0xc0000025
     1139#define os2_XCPT_UNWIND 0xc0000026
     1140#define os2_XCPT_BAD_STACK 0xc0000027
     1141#define os2_XCPT_INVALID_UNWIND_TARGET 0xc0000028
     1142#define os2_XCPT_ARRAY_BOUNDS_EXCEEDED 0xc0000093
     1143#define os2_XCPT_FLOAT_DENORMAL_OPERAND 0xc0000094
     1144#define os2_XCPT_FLOAT_DIVIDE_BY_ZERO 0xc0000095
     1145#define os2_XCPT_FLOAT_INEXACT_RESULT 0xc0000096
     1146#define os2_XCPT_FLOAT_INVALID_OPERATION 0xc0000097
     1147#define os2_XCPT_FLOAT_OVERFLOW 0xc0000098
     1148#define os2_XCPT_FLOAT_STACK_CHECK 0xc0000099
     1149#define os2_XCPT_FLOAT_UNDERFLOW 0xc000009a
     1150#define os2_XCPT_INTEGER_DIVIDE_BY_ZERO 0xc000009b
     1151#define os2_XCPT_INTEGER_OVERFLOW 0xc000009c
     1152#define os2_XCPT_PRIVILEGED_INSTRUCTION 0xc000009d
     1153#define os2_XCPT_DATATYPE_MISALIGNMENT 0xc000009e
     1154#define os2_XCPT_BREAKPOINT 0xc000009f
     1155#define os2_XCPT_SINGLE_STEP 0xc00000a0
     1156#define os2_XCPT_PROCESS_TERMINATE 0xc0010001
     1157#define os2_XCPT_ASYNC_PROCESS_TERMINATE 0xc0010002
     1158#define os2_XCPT_SIGNAL 0xc0010003
     1159#define os2_XCPT_B1NPX_ERRATA_02 0xC0010004
    11071160#define _fpreg os2__fpreg
    11081161#define FPREG os2_FPREG
     
    35333586#undef RT_MAX
    35343587#undef RT_RESNAMES
     3588#undef CREATE_READY
     3589#undef CREATE_SUSPENDED
     3590#undef EXLST_ADD
     3591#undef EXLST_REMOVE
     3592#undef EXLST_EXIT
    35353593#undef _RESULTCODES
    35363594#undef RESULTCODES
     
    36153673#undef EH_STACK_INVALID
    36163674#undef EH_NESTED_CALL
     3675#undef XCPT_CONTINUE_SEARCH
     3676#undef XCPT_CONTINUE_EXECUTION
     3677#undef XCPT_CONTINUE_STOP
     3678#undef XCPT_SIGNAL_INTR
     3679#undef XCPT_SIGNAL_KILLPROC
     3680#undef XCPT_SIGNAL_BREAK
     3681#undef XCPT_SIGNAL_APTERM
     3682#undef XCPT_FATAL_EXCEPTION
     3683#undef XCPT_SEVERITY_CODE
     3684#undef XCPT_CUSTOMER_CODE
     3685#undef XCPT_FACILITY_CODE
     3686#undef XCPT_EXCEPTION_CODE
     3687#undef XCPT_UNKNOWN_ACCESS
     3688#undef XCPT_READ_ACCESS
     3689#undef XCPT_WRITE_ACCESS
     3690#undef XCPT_EXECUTE_ACCESS
     3691#undef XCPT_SPACE_ACCESS
     3692#undef XCPT_LIMIT_ACCESS
     3693#undef XCPT_DATA_UNKNOWN
     3694#undef XCPT_GUARD_PAGE_VIOLATION
     3695#undef XCPT_UNABLE_TO_GROW_STACK
     3696#undef XCPT_ACCESS_VIOLATION
     3697#undef XCPT_IN_PAGE_ERROR
     3698#undef XCPT_ILLEGAL_INSTRUCTION
     3699#undef XCPT_INVALID_LOCK_SEQUENCE
     3700#undef XCPT_NONCONTINUABLE_EXCEPTION
     3701#undef XCPT_INVALID_DISPOSITION
     3702#undef XCPT_UNWIND
     3703#undef XCPT_BAD_STACK
     3704#undef XCPT_INVALID_UNWIND_TARGET
     3705#undef XCPT_ARRAY_BOUNDS_EXCEEDED
     3706#undef XCPT_FLOAT_DENORMAL_OPERAND
     3707#undef XCPT_FLOAT_DIVIDE_BY_ZERO
     3708#undef XCPT_FLOAT_INEXACT_RESULT
     3709#undef XCPT_FLOAT_INVALID_OPERATION
     3710#undef XCPT_FLOAT_OVERFLOW
     3711#undef XCPT_FLOAT_STACK_CHECK
     3712#undef XCPT_FLOAT_UNDERFLOW
     3713#undef XCPT_INTEGER_DIVIDE_BY_ZERO
     3714#undef XCPT_INTEGER_OVERFLOW
     3715#undef XCPT_PRIVILEGED_INSTRUCTION
     3716#undef XCPT_DATATYPE_MISALIGNMENT
     3717#undef XCPT_BREAKPOINT
     3718#undef XCPT_SINGLE_STEP
     3719#undef XCPT_PROCESS_TERMINATE
     3720#undef XCPT_ASYNC_PROCESS_TERMINATE
     3721#undef XCPT_SIGNAL
     3722#undef XCPT_B1NPX_ERRATA_02
    36173723#undef _fpreg
    36183724#undef FPREG
  • TabularUnified trunk/include/os2wrap2_gen.sh

    r21586 r21609  
    5252  :a;/\\$/{N;ba}
    5353  s/([^A-Za-z0-9_])(MAKE[A-Z0-9]+)([^A-Za-z0-9_])/\1 \2 \3/g
    54   s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CS|DM|DT|EH|ERROR|EXCEPTION|FDM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|MPFROM[A-Z0-9]+|MAKE[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g
     54  s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CREATE|CS|DM|DT|EH|ERROR|EXCEPTION|EXLST|FDM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|XCPT|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|MPFROM[A-Z0-9]+|MAKE[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g
    5555  tb;bd
    5656  :b
     
    9595  :a;/\\$/{N;ba}
    9696  s/([^A-Za-z0-9_])(MAKE[A-Z0-9]+)([^A-Za-z0-9_])/\1 \2 \3/g
    97   s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CS|DM|DT|EH|ERROR|EXCEPTION|FDM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|MPFROM[A-Z0-9]+|MAKE[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g
     97  s/([^A-Za-z0-9_])(((BM|CLR|CONTEXT|CREATE|CS|DM|DT|EH|ERROR|EXCEPTION|EXLST|FDM|FNTM|HWND|LM|MB|MIA|MM|NP|OBJ|PAG|QS|QSV|RGN|RT|SEM|SEVERITY|SIS|SV|SWP|TA|WC|WM|WS|XCPT|(WIN|GPI|DEV|SPL)ERR)_([A-Z0-9_]+))|((P?VOID|(API|EXP)ENTRY|P(CMD|CHR|MSE)MSG|ERRORID|NO_ERROR|PCMDMSG|SEL|HWND|MPARAM|MRESULT|LHANDLE|SHANDLE|BOOL|(LO|HI|P)?U?(LONG|SHORT|CHAR|BYTE)|MPFROM[A-Z0-9]+|MAKE[A-Z0-9]+)([^A-Za-z0-9_])))/\1os2_\2/g
    9898  tb;bd
    9999  :b
Note: See TracChangeset for help on using the changeset viewer.