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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e31421e8ee09dfa0 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!j20g2000hsi.googlegroups.com!not-for-mail From: petter_fryklund@hotmail.com Newsgroups: comp.lang.ada Subject: Re: Where is TASH? Date: Wed, 23 Jan 2008 04:30:04 -0800 (PST) Organization: http://groups.google.com Message-ID: <00967b84-56a1-48df-b5be-7d1f01a742a2@j20g2000hsi.googlegroups.com> References: <7f327701-8cac-4525-81e3-41796d8ffc03@t1g2000pra.googlegroups.com> <85747d85-ac85-4771-8720-7f7e7e58f13d@f47g2000hsd.googlegroups.com> <478f4b5f$1@news.post.ch> <5084ea7f-0a27-44cc-8aca-ed10b50a2ed7@1g2000hsl.googlegroups.com> <5af53545-c761-4f72-a05d-4ed1d345a040@c23g2000hsa.googlegroups.com> <479504B5.1000704@obry.net> <4795965A.8040107@obry.net> <479620EE.7010200@obry.net> <2196dd2d-bf25-4787-bfae-45b94f9e2471@s13g2000prd.googlegroups.com> <47115098-0ffc-4cbc-8725-7e3d1d621022@v4g2000hsf.googlegroups.com> NNTP-Posting-Host: 148.2.192.140 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1201091405 16754 127.0.0.1 (23 Jan 2008 12:30:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 23 Jan 2008 12:30:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j20g2000hsi.googlegroups.com; posting-host=148.2.192.140; posting-account=ACEctQoAAAD3d42JSpp6_fpg88BhdFDo User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19555 Date: 2008-01-23T04:30:04-08:00 List-Id: On 22 Jan, 23:15, sjw wrote: > On Jan 22, 7:20=A0pm, petter_frykl...@hotmail.com wrote: > > > I tried the nm tool. I had not noticed carefully enought, but was only > > missing a few routines: Tcl_GetRefCount, Tcl_CallDecrRefCount, > > Tcl_CallIncrRefCount, Tcl_GetObjTypeName and Tcl_PrintObj, neither of > > which are present in tcl84.lib so it seems like TASH needs another > > Tcl? > > Light has dawned. > > If you look in src/ of the tcladashell code you'll find two C files, > tclmacro.c and tkmacro.c. Compile these with gcc (the one build in to > GNAT would be best), > =A0 =A0gcc -c -g -O2 -IC:/Tcl/include tclmacro.c > =A0 =A0gcc -c -g -O2 -IC:/Tcl/include =A0tkmacro.c > and include the resulting objects in your link. > > The top of tclmacro.c says > /* > =A0* tclmacro.c -- > =A0* > =A0* =A0 =A0This file encapsulates calls to all tcl.h macro functions into= C > =A0* =A0 =A0function calls. =A0These can then be called from Ada. =A0This = avoids > =A0* =A0 =A0having to translate the macro. > > --S > > (by the way, ActiveState only seem to have the threaded version: the > one I have is ActiveTcl8.4.17.0.283511-win32-ix86-threaded.exe) I tried this quickly while having lunch at home, but first found that stdio.h was missing. I wouldn't dream of putting one there ;-), so I investigated if someone else had. There is only one, the one that came with Tcl. But when I use that one, I get tons of other errors. I am thinking of writing my own macro elimination using Ada. Is it wise? Regards, Petter