From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Arbitrary variable order ? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <7kacmsoh7ds23efa471q3ll2qdi1n2s8ni@4ax.com> References: <396433B4 DOT 4370ADC2 AT oeaw DOT ac DOT at> <396583E8 DOT C09E13E2 AT oeaw DOT ac DOT at> <200007070842 DOT LAA01023 AT mailgw1 DOT netvision DOT net DOT il> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 21 X-Trace: /KiKeTRrsBSAmqSzgMNxpkd9iZSF3emHh7vkfeXMq/XJpN/5NM7AMHit0Jx+X0IAiXhZEAxV7t5H!vVnW9qRUjQHgyghfpRt/8vtKLLkHqlPnYB6/DWNObyVNIZwuyxnzrrB1+vUfXWyHylvSbsI+Q0Gy!iqcX X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 08 Jul 2000 06:44:59 GMT Distribution: world Date: Sat, 08 Jul 2000 06:44:59 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 07 Jul 2000 11:42:36 +0200, "Eli Zaretskii" wrote: >You can define an array and use the preprocessor magic to work around >the code space limitations. For example: > > static unsigned char var_array[2000]; > > #define var1 var_array[0]; > #define var2 var_array[3]; /* assuming var1 was an int */ > #define var2 var_array[6]; /* assuming var2 was a 16-bit short */ Oops! Lose those semicolons. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/