Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "\pPascal strings again"



On Tue, 29 Nov 2005 14:10:28, Chris Espinosa <email@hidden> wrote:

> The 'pascal' keyword actually became a no-op in the transition to
> PowerPC more than ten years ago.  It specified whether arguments
> should be pushed on the calling stack in left-to-right or right-to-
> left order.  Because PowerPC passes function arguments in registers,
> 'pascal' is meaningless in the PowerPC ABI.

Yes. "Because" is a bit out of place here, I could imagine right-to-left
order of registers as well :) Besides params are still passed on the
stack sometimes, e.g. if there are too many of them.

>> or forming a pascal string using another sort of escape code (like
>> octal and counting the length yourself).
> 
> Ick.

No, this is "ick":

UniChar unicode[] = {
    'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '!'
};

:)

Mike

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: "\pPascal strings again" (From: Chris Espinosa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.