Path: news.daimi.aau.dk!news.uni-c.dk!sunic!sunic.sunet.se!news.luth.se!eru.mt.luth.se!news.kth.se!nac.no!Norway.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!pulm1.accessone.com!usenet From: Baiss E. Magnusson Newsgroups: comp.lang.beta Subject: Re: Using C Libraries in Beta Date: 1 May 1995 16:19:36 GMT Organization: PDI Lines: 31 Distribution: world Message-ID: <3o31mo$9nl@pulm1.accessone.com> References: <3nkc8h$39l@pulm1.accessone.com> NNTP-Posting-Host: 204.118.152.121 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Nuntius 2.0_68K X-XXDate: Mon, 1 May 1995 17:18:32 GMT In article <3o2t4s$94o@belfort.daimi.aau.dk> Ole Villumsen, olevi@daimi.aau.dk writes: >Baiss E. Magnusson writes: > >>Where in the for Beta/Macintosh does it show the format of the >> >>line for including a C library into a Beta program and how to make the >>calls from Beta to functions in the C Library? > >>I have a large library of C functions which control hardware that I need >>to call. > >It's in the Basic Libraries Reference Manual, the chapter on "The external >Library". (In the August 1994 edition, it's chapter 13, page 121 and on.) >You have to translate the .h file to Beta by hand. Detailed instructions >are given. If you've got big .h file(s), you may want to have a copy >of a small paper I wrote on how to do the translation semi-automatically >using search and replace in MPW. (I produced 75 pages of BETA code >in one and a half days that way.) Let me know, and I'll send you a copy. >It's a Microsoft Word document. > Thanks for the reponse, I found the above mentioned reference manual after a fashion and sure enough went ahead and generated a couple of pages of hand coded Beta files. I do have some outstanding questions which I have already posted. Notably the calling sequence for C variables passed by reference, but not declared externally. Is an attribute of the CStruct pattern? (I would like that approach ). >(I produced 75 pages of BETA code >in one and a half days that way.) Wow.