Path: utzoo!attcan!uunet!ogicse!caesar.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!mcnc!rti!sas!walker From: walker@sas.UUCP (Doug Walker) Newsgroups: comp.sys.amiga.tech Subject: Re: The Long Align Struct Macro D_S Keywords: Long word align, diskInfo struct BCPL Message-ID: <1582@sas.UUCP> Date: 22 Feb 90 15:51:22 GMT References: <1990Feb19.151157.21042@csmil.umich.edu> Reply-To: walker@sas.UUCP (Doug Walker) Organization: SAS Institute Inc, Cary NC Lines: 19 In article <1990Feb19.151157.21042@csmil.umich.edu> root@csmil.umich.edu (Zurich Operator) writes: >------------- >A few weeks ago somone posted a little macro that could be used in place of >the AllocMem() function to long align structures for use with Amigados commands >like Examine. I lost my copy of this macro when I upgraded to Manx 5.0 >If you have a copy or remember it, I would be most greatful. Yup, it was me - here it is: #define D_S(name, type) char c_##name[sizeof(type)+3];\ type *name = (type *)((long)(c_##name+3) & ~3); ***** =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)471-6436 = *|. o.| || | o |// Got mole problems? Call Avogadro - 602-1023! ====== usenet: ...mcnc!rti!sas!walker plink: dwalker bix: djwalker