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: PEF to MachO and MSL



Johan,

> After 6 hours of trial and error I managed to move a (1.5E6 lines of
> code) PEF app to MachO (and MSL), with 1 exception (Codewarrior 8.3).
> I cannot get the methods dtox80 and x80tod defined.
> They (SANE originally) reside in CarbonCore/fp.h, but are
> conditionalized with __NOEXTENSION__
> which all CW MSL prefix files define. (And I dear not remove since this
> probably will
> mess up my math function expectations.) Anybody who have run into this
> and know a work around,
> or know of code snippets of conversions between the 68K 80bit extended
> and 64bit float.

I recently encountered this problem and if you search through the PowerPlant
sources for __NOEXTENSION__, you'll find the PP engineers did too. The
solution they used was to just copy and paste the definitions for the
conversion routines and a few related data structures from fp.h into their
own code.

I moved that snippet into my own custom prefix file after the MSL and PP
stuff, and it worked fine. It's not exactly pretty, but it does work.

Hope that helps,

James
---
James Thomson <mailto:email@hidden>
TLA Systems Ltd. <http://www.tla-systems.co.uk/>
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.