[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [d-i] libdebian-installer2



On Tue, Nov 19, 2002 at 11:51:35PM +0100, Petter Reinholdtsen wrote:
> [Junichi Uekawa]
> > You can add members at the end of struct if and only if any other
> > application does not try to malloc it.
> 
> Both malloc and static variables will be a problem.  Examples of bad
> interface:
> 

Isn't it true that you can only safely add onto the end of a struct on
i386? Since the stack is allocated backwards on ppc, wouldn't adding
to the end of the struct still break old clients?

Also, if you don't have it now, you should reserve a little bit of
struct for future changes, usually a few longs will do for a long
time.  

-- 
michael cardenas       | lead software engineer, lindows.com
hyperpoem.net          | GNU/Linux software developer
people.debian.org/~mbc | encrypted email preferred

"There is a morality of reason, a morality proper to man, and Man's Life is its standard of value."
- Ayn Rand, Atlas Shrugged

Attachment: pgpuQB2Z7ZVgH.pgp
Description: PGP signature


Reply to: