/**/ /***************************************************************************/ /** **/ /** © Copyright 2010, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:26:02 by OpenVMS SDL EV3-3 */ /* Source: 14-JAN-2004 07:50:02 $1$DGA7274:[LIB_H.SRC]TTYDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE ASSYMDEF ***/ #ifndef __ASSYMDEF_LOADED #define __ASSYMDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif #define AS$M_MD_ODLPARSE 0x1 #define AS$M_MD_EDIT 0x2 #define AS$M_MD_NOUPCASE 0x4 #define AS$M_MD_INPUT 0x8 #define AS$M_MD_1978 0x10 #define AS$M_MD_PRELOAD 0x20 #define AS$M_MD_4BYTE 0x40 #define AS$S_MODEDEF 1 /* Old size name, synonym for AS$S_AS_MODE */ typedef struct _as_mode { unsigned as$v_md_odlparse : 1; /* Parse ODL request sequence */ unsigned as$v_md_edit : 1; /* MOC line editing */ unsigned as$v_md_noupcase : 1; /* Disable MOC upcasing */ unsigned as$v_md_input : 1; /* Input (Kana or Kanji) */ unsigned as$v_md_1978 : 1; /* JIS 1978 code conversion */ unsigned as$v_md_preload : 1; /* Dynamic glyph preloading */ unsigned as$v_md_4byte : 1; /* 4-byte capability */ unsigned as$v_fill_5_ : 1; } AS_MODE; #define AS$M_ST_XPORT 0x1 #define AS$M_ST_NOTTYGET 0x2 #define AS$M_ST_GLOAD 0x4 #define AS$M_ST_GLOAD2 0x8 #define AS$M_ST_NOJOBC 0x10 #define AS$M_ST_NOECHO 0x20 #define AS$M_ST_TIM 0x40 #define AS$S_ODLLOADDEF 1 /* Old size name; synonym for AS$S_AS_ODLLOAD */ typedef struct _as_odlload { unsigned as$v_st_xport : 1; /* Extended Port */ unsigned as$v_st_nottyget : 1; /* No TTYGET */ unsigned as$v_st_gload : 1; /* Glyph Load */ unsigned as$v_st_gload2 : 1; /* Glyph Load 2 */ unsigned as$v_st_nojobc : 1; /* No JOBCONT */ unsigned as$v_st_noecho : 1; /* No Echo */ unsigned as$v_st_tim : 1; /* Timer Active */ unsigned as$v_fill_6_ : 1; } AS_ODLLOAD; #define AS$M_PR_REQUEST 0xF #define AS$M_PR_XAREA 0x10 #define AS$M_PR_XSEQ 0x20 #define AS$M_PR_SKIP 0x40 #define AS$S_ODLPARSEDEF 1 /* Old size name; synonym for AS$S_AS_ODLPARSE */ typedef struct _as_odlparse { unsigned as$v_pr_request : 4; /* Req. seq. stat */ unsigned as$v_pr_xarea : 1; /* Extend Area */ unsigned as$v_pr_xseq : 1; /* Extended request sequence */ unsigned as$v_pr_skip : 1; /* Skip parsing in downloading */ unsigned as$v_fill_7_ : 1; } AS_ODLPARSE; #define AS$M_TR_ESCSEEN 0x1 #define AS$M_TR_1STOF2B 0x2 #define AS$M_TR_WAS_XA8 0x4 #define AS$M_TR_KANAMODE 0x8 #define AS$M_TR_UPCASE 0x10 #define AS$M_TR_SS2 0x20 #define AS$M_TR_SS3 0x40 #define AS$S_JISTRANSDEF 1 /* Old size name; synonym for AS$S_AS_JISTRANS */ typedef struct _as_jistrans { unsigned as$v_tr_escseen : 1; /* ESC seen */ unsigned as$v_tr_1stof2b : 1; /* 1st of 2Byte */ unsigned as$v_tr_was_xa8 : 1; /* it was x'A8' */ unsigned as$v_tr_kanamode : 1; /* Kana mode */ unsigned as$v_tr_upcase : 1; /* Upper-case ASCII code */ unsigned as$v_tr_ss2 : 1; /* SS2 seen */ unsigned as$v_tr_ss3 : 1; /* SS3 seen */ unsigned as$v_fill_8_ : 1; } AS_JISTRANS; #define AS$M_ED_EDIT 0x1 #define AS$M_ED_NOUPCASE 0x2 #define AS$M_ED_RETBYTE 0x4 #define AS$M_ED_GOTMOC 0x8 #define AS$M_ED_GOTMULTI 0x10 #define AS$M_ED_EXPNEXT 0x20 #define AS$M_ED_ECHOMOC 0x40 #define AS$M_ED_EDITMOC 0x80 #define AS$S_ASEDITDEF 1 /* Old size name; synonym for AS$S_AS_EDIT */ typedef struct _as_edit { unsigned as$v_ed_edit : 1; /* MOC editing required */ unsigned as$v_ed_noupcase : 1; /* Disable MOC upcasing */ unsigned as$v_ed_retbyte : 1; /* Can return incomplete MOC */ unsigned as$v_ed_gotmoc : 1; /* Got a MOC */ unsigned as$v_ed_gotmulti : 1; /* Remove whole MOC from TA buffer */ unsigned as$v_ed_expnext : 1; /* Expecting next byte of MOC */ unsigned as$v_ed_echomoc : 1; /* MOC echo in pregress */ unsigned as$v_ed_editmoc : 1; /* MOC edit (e.g. del) */ } AS_EDIT; #define AS$M_XE_EXP2ND 0x1 #define AS$M_XE_EXP3RD 0x2 #define AS$M_XE_EXP4TH 0x4 #define AS$S_ASXEDDEF 1 /* Old size name; synonym for AS$S_AS_XED */ typedef struct _as_xed { unsigned as$v_xe_exp2nd : 1; /* Expecting MOC 2nd byte */ unsigned as$v_xe_exp3rd : 1; /* Expecting MOC 3rd byte */ unsigned as$v_xe_exp4th : 1; /* Expecting MOC 4th byte */ unsigned as$v_fill_9_ : 5; } AS_XED; /*++ */ /* VMS/Japanaese Multi Code Set Support bit */ /*-- */ #define AS$M_MCE_SS2 0x1 #define AS$M_MCE_SS3 0x2 #define AS$M_MCE_EXP2ND 0x4 #define AS$M_MCE_EXP3RD 0x8 #define AS$M_MCE_EXPSS2NXT 0x10 struct mcedef { unsigned as$v_mce_ss2 : 1; /* Handling SS2 bit */ unsigned as$v_mce_ss3 : 1; /* Handling SS3 bit */ unsigned as$v_mce_exp2nd : 1; /* Expect 2nd byte of SS3 */ unsigned as$v_mce_exp3rd : 1; /* Expect 3rd byte of SS3 */ unsigned as$v_mce_expss2nxt : 1; /* Expect 2nd byte of SS2 */ unsigned as$v_fill_10_ : 3; } ; /*++ */ /* VMS/Japanaese Output Character State bit */ /*-- */ #define AS$M_OCS_MBCHAR 0x8000 struct ocsdef { unsigned as$v_ocs_fill : 15; /* (reserved) */ unsigned as$v_ocs_mbchar : 1; /* Expect a next byte of MB Char */ } ; /*++ */ /* ODL parse State */ /*-- */ #define AS$C_PR_DONE 0 /* Whole sequence is parsed */ #define AS$C_PR_DCS 1 /* Parsed DCS, expect 1st P1 */ #define AS$C_PR_PAR11 2 /* Parsed 1st P1 parameter, expect 2nd */ #define AS$C_PR_PARA 3 /* Parsed all P1 parameters, expect 'x' */ #define AS$C_PR_TERM 4 /* Parsed 'x', expect 1st byte of code */ #define AS$C_PR_1STB 5 /* Parsed 1st byte of code, expect 2nd */ #define AS$C_PR_2NDB 6 /* Parsed 2nd byte of code, expect ST */ /*++ */ /* VMS/Japanaese Multi Code Set Support SS handling state */ /*-- */ #define AS$C_SS2 142 #define AS$C_SS3 143 /*++ */ /* Dispatch code returned by AS$MOVEREADATA */ /*-- */ #define AS$C_GD_DISMISS 0 /* 0 - DISMISS */ #define AS$C_GD_GETNXT 1 /* 1 - TTY$GETNEXTCHAR */ #define AS$C_GD_FORMAT_CHAR 2 /* 2 - FORMAT_CHAR */ #define AS$C_GD_FORMAT_LOCAL 3 /* 3 - FORMAT_LOCAL */ #define AS$C_GD_STRTMULTI 4 /* 4 - STRTMULTI */ #define AS$C_GD_STRTMULTI_1 5 /* 5 - STRTMULTI_1 */ #define AS$C_GD_EOLSEEN 6 /* 6 - EOLSEEN */ #define AS$C_GD_XON 7 /* 7 - XON */ #define AS$C_GD_MOVE_BOL 8 /* 8 - MOVE_BOL */ #define AS$C_GD_MOVE_EOL 9 /* 9 - MOVE_EOL */ #define AS$C_GD_BACKSPACING 10 /* 10 - BACKSPACING */ #define AS$C_GD_EDITREAD 11 /* 11 - EDITREAD */ #define AS$C_GD_UPDATE_CURSOR 12 /* 12 - UPDATE_CURSOR */ #define AS$C_GD_OUTPUTANDWAIT 13 /* 13 - OUTPUTANDWAIT */ /*++ */ /* Miscellaneous symbols */ /*-- */ #define AS$C_MOC_MIN 161 #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __ASSYMDEF_LOADED */