Skip to: Abstract | Comments | Solution | Related Segments | Migration | Download
APAR NUMBER: PJ29575 PRODUCT: TPF4 FUNCTIONAL AREA: ISO-C SUPPORT SHIPPED IN PUT: 18 ABSTRACT: Add a data type that will explicitly represent 32-bit pointers. APAR CONTENTS: FEATURE TYPE STATUS NAME Base CHeader Changed include/types.h PREREQUISITE APARS: To be applied in order listed. Base CHeader Changed include/types.h PJ26188(10) PJ26174(10) PJ26575(11) PJ21337(12) PJ27784(14) PJ28021(15) COMMENTS: Data types that represent data (not function) pointers that point to 32-bit addresses are required to help make C and C++ code more portable. SOLUTION: This APAR adds three new data types (__ptr32_t, __chptr32_t, and __uiptr32_t) to explicitly represent 32-bit void, char, and unsigned int pointers respectively. The APAR also adds a macro definition (PTR32ATT) to assist in the declaration of these data types by helping to identify these data types at declaration. Use the PTR32ATT macro to declare all such explicit 32-bit pointers for any other pointer type. DEPENDENCIES SEGMENTS TO BE ASSEMBLED OR COMPILED: None. SEGMENTS TO BE LINK EDITED: None. COREQS: None. MIGRATION CONSIDERATIONS: It may be useful to declare other data types in a similar way to those declared in this APAR; for example, to represent structure pointers in a way that explicitly states that the addresses are 32-bit addresses. If such other data types are declared, it is necessary to declare them using the PTR32ATT macro as done in the code in this APAR for portability reasons. Function pointers should never be declared this way. DOWNLOAD INSTRUCTIONS: http://www.ibm.com/software/htp/tpf/pages/maint -- END APAR PJ29575
Download file(s): Login once to access server, leave window open, then click on link(s) below.Source
