[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] non static libs on windows (dll)

From: <mbk_at_boredom.org>
Date: 2003-03-23 00:32:45 CET

On Sat, Mar 22, 2003 at 06:14:46PM -0500, Garrett Rooney wrote:
> On Saturday, March 22, 2003, at 06:10 PM, Russell Yanofsky wrote:
>
> >>4) Exported data structures should never contain an enum type. An
> >>int or similar type is far superior.
> >
> >Yes. I don't know whether subversion does this.
>
> not being a windows person, i have no idea why using enumerated types
> would be a problem. what exactly is the issue with this? i've always
> been told to prefer enums for reasons of type safety.
>
> -garrett
>

Some compilers generate smaller-than-int storage allocations for enums
with less than MAXINT values. They then proceed to, for example, char
align them. This can cause headaches.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 23 00:33:38 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.