• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [somewhat OT] portable C under OjbC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [somewhat OT] portable C under OjbC


  • Subject: Re: [somewhat OT] portable C under OjbC
  • From: Sam Goldman <email@hidden>
  • Date: Wed, 06 Feb 2002 17:47:21 -0800

Well, since Obj-C and straight C work so well together (as they should), it
would make sense to write a C API and then use it in a Cocoa/Obj-C project.
The C API would have to be in straight C only, though. Example: the MySQL C
API can be used from Cocoa/Obj-C very easily and can also be used in other
languages on other platforms.

I don't know of a compatibility checker, but as long as you only use
straight C, it *will* be portable. I guess you can check to see if your C
code is C by compiling it with gcc and C-only options. (i.e. Don't use
-lstdc++)

Hope this helps,
Sam

On 2/6/02 3:46 PM, "Boz Jennings" <email@hidden> wrote:

> This is somewhat off topic but I am interested in writing C that is
> wrapped in ObjC so that the C code is portable. The details of portable
> C code gets foggy in my head so I'm wondering if there is a tool that
> can check portability automagically. If you know of one (or a better
> place to ask this question) please let me know.
>
> ... back to lurking and learning.
>
> ,boz
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.

--
Windows is a 32-bit patch to a 16-bit shell for an 8-bit operating system
written for a 4-bit processor by a 2-bit company without 1 bit of sense.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >[somewhat OT] portable C under OjbC (From: Boz Jennings <email@hidden>)

  • Prev by Date: Re: [somewhat OT] portable C under OjbC
  • Next by Date: Re: determining availability of a given glyph via NSFont
  • Previous by thread: Re: [somewhat OT] portable C under OjbC
  • Next by thread: Re: [somewhat OT] portable C under OjbC
  • Index(es):
    • Date
    • Thread