/**/ /***************************************************************************/ /** **/ /** © 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:27:05 by OpenVMS SDL EV3-3 */ /* Source: 17-NOV-1999 13:28:56 $1$DGA7274:[LIB_H.SRC]PTRDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $PTRDEF ***/ #ifndef __PTRDEF_LOADED #define __PTRDEF_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 /*+ */ /* POINTER CONTROL BLOCK */ /* THIS IS A STRUCTURE OF POINTERS TO OTHER DYNAMIC STRUCTURES */ /* OF LIKE KIND. TYPICALLY THE STRUCTURES POINTED TO ARE KNOWN */ /* BY THEIR LONG WORD INDEX INTO THE TABLE AND TO FACILITATE FETCHING */ /* THESE, IT IS CONVENTIONAL TO KEEP A POINTER TO THE BASE OF THE */ /* STRUCTURE POINTERS RATHER THAN (OR IN ADDITION TO) THE POINTER */ /* TO THE FRONT OF THE POINTER CONTROL BLOCK. THE NUMBER OF POINTERS */ /* IN THE ARRAY PRECEEDS THE FIRST POINTER IN THE ARRAY. */ /*- */ #define PTR$K_LENGTH 16 /*LENGTH OF FIXED PORTION */ #define PTR$C_LENGTH 16 /*LENGTH OF FIXED PORTION */ #define PTR$S_PTRDEF 20 #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _ptr { #pragma __nomember_alignment __union { /* Generic header info */ unsigned __int64 ptr$q_info_quad; __struct { unsigned int ptr$l_info_long0; unsigned int ptr$l_info_long1; } ptr$r_info_long_struct; } ptr$r_info_overlay; unsigned short int ptr$w_size; /*SIZE OF DYNAMIC CONTROL BLOCK */ unsigned char ptr$b_type; /*TYPE OF DYNAMIC CONTROL BLOCK */ unsigned char ptr$b_ptrtype; /*TYPE OF CONTROL BLOCK POINTED TO */ unsigned int ptr$l_ptrcnt; /*COUNT OF ENTRIES */ void *ptr$l_ptr0; /*PTR NUMBER 0 */ char ptr$b_fill_0_ [4]; } PTR; #if !defined(__VAXC) #define ptr$q_info_quad ptr$r_info_overlay.ptr$q_info_quad #define ptr$l_info_long0 ptr$r_info_overlay.ptr$r_info_long_struct.ptr$l_info_long0 #define ptr$l_info_long1 ptr$r_info_overlay.ptr$r_info_long_struct.ptr$l_info_long1 #endif /* #if !defined(__VAXC) */ #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 /* __PTRDEF_LOADED */