From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d757e5d5363fa8d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-09 11:32:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!feed2.news.rcn.net!rcn!wn1feed!worldnet.att.net!216.166.61.6!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin2.nnrp.aus1.giganews.com.POSTED!news.clear.net.nz From: Craig Carey Newsgroups: comp.lang.ada Subject: Re: c2ada for Win Message-ID: <11fldug3evgbbs208m816tssipcd3o98oh@4ax.com> References: <3CD244DC.E8260633@yahoo.com> <3CD6AFEA.96F51BB4@avercom.net> X-Newsreader: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Customer of Mercury Telecommunications Ltd Cache-Post-Path: drone4.qsi.net.nz!unknown@dial1-acc-skyt-119.quicksilver.net.nz X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) X-Original-NNTP-Posting-Host: drone4-svc-skyt.qsi.net.nz X-Original-Trace: 10 May 2002 06:31:43 +1200, drone4-svc-skyt.qsi.net.nz NNTP-Posting-Date: Thu, 09 May 2002 13:31:51 CDT X-Trace: sv3-1bjpioiIJPAePiX2C2Pfx2yRgyLA0Z8CndTPKX2svaVLGh+sN6SWfmuO9GrLi9Bt/jWZXc8rMgApPzb!cogm7GKrnQwqsp7i+SclxB6uBssBnF6ICepl9BxAz+tMCNDOSXLCcoHehecL5akxMkunpyCvtRGx!+PWZiA== X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Thu, 09 May 2002 18:31:51 GMT Xref: archiver1.google.com comp.lang.ada:23795 Date: 2002-05-09T18:31:51+00:00 List-Id: On Mon, 06 May 2002 12:31:38 -0400, Tucker Taft wrote: >Preben Randhol wrote: >> >> On Fri, 03 May 2002 03:05:48 -0500, Anatoly Chernyshev wrote: >> > Hello, everybody, >> > >> > I need to convert C header into ads-file to get access to a dll. I tried >> > to search c2ada >> > for Windows in the Web, but the only link led me to the Intermetrics >> > site which seems to be nonexistent any longer. If someone could point me >> > to the right URL or send me either compilable source or the ready >> > binary, I would greatly appreciate that. >> There is a C to Ada bindings program that is in *.EXE format, at this location: http://members.tripod.com/vagul/ http://members.tripod.com/vagul/cbind4win32.zip (Site of D. Anisimkov. Cbfe.exe is 334,941 bytes in size.) A command like this can be used, when creating Ada 95 bindings from C headers: CBFE -cs -erc -rrc -ap -C -gnat -95 input.h C headers can be obtained from http://www.mingw.org/ but cbfe gets further when references to C headers are commented out. Also the precompiled cbfe program will print the offsets, in bytes, of GCC fields of structs (Ada 95 "records"). If the translation is from Borland Pascal to Ada 95, then the body of the PASCAL source be translated to Ada in addition to headers (using NewP2Ada, P2Ada). If C++ needs to be converted into Ada, then what can translate C++ into Pascal ?. NewP2Ada (Pascal2Ada): http://www.mysunrise.ch/users/gdm/gsoft.htm ---- Ps. How can C++ be translated and converted automatically into Ada ?. >> http://www.averstar.com/~stt/bindings/c2ada/c2ada.html ... >> http://www.averstar.com/~stt/bindings/c2ada/c2ada.tar.gz Craig Carey Ada 95 Mailing lists: http://www.ijs.co.nz/ada_95.htm