|
Ken wrote: >If I am understanding properly what you are trying to do: there is no way to >force your externally described data structures to be aligned on a 16-byte >boundary. Therefore your character fields that you are using for storing >pointers may not be aligned on a 16-byte boundary; which means that any >pointer that you store in one of those non-aligned fields is immediately >invalidated and no longer usable as a pointer. If you really have a need to 16-byte align an externally described data structure, you could always add a program-described subfield to the end of it. Adding a pointer subfield to the data structure in your program will 16-byte align the DS. Adding program described subfields to externally described DS's is a carryover from RPG III, but is useful in other ways. For example, you could define a program-described subfield overlaying an externally described field. Cheers! Hans Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.