From owner-freebsd-libh Mon Oct 8 16: 2:35 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts16-srv.bellnexxia.net (tomts16.bellnexxia.net [209.226.175.4]) by hub.freebsd.org (Postfix) with ESMTP id 6264737B405; Mon, 8 Oct 2001 16:02:32 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.94.128.156]) by tomts16-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011008230231.IQGF8090.tomts16-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Mon, 8 Oct 2001 19:02:31 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id D15321B04; Mon, 8 Oct 2001 19:02:26 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id DBE2520B36; Mon, 8 Oct 2001 19:03:08 -0400 (EDT) Date: Mon, 8 Oct 2001 19:03:08 -0400 From: The Anarcat To: Jordan Hubbard Cc: freebsd-libh@freebsd.org Subject: Re: basic label editor stub, take II Message-ID: <20011008190308.H83944@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Jordan Hubbard , freebsd-libh@freebsd.org References: <20011008142300.B53336@shall.anarcat.dyndns.org> <20011008133800B.jkh@freebsd.org> <20011008185737.G83944@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gm5TwAJMO0F2iVRz" Content-Disposition: inline In-Reply-To: <20011008185737.G83944@shall.anarcat.dyndns.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --gm5TwAJMO0F2iVRz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Oct 08, 2001 at 06:57:38PM -0400, The Anarcat wrote: > On Mon Oct 08, 2001 at 01:38:00PM -0700, Jordan Hubbard wrote: > > > Anyways, this interface is getting rather heavy. Isn't there a way to > > > export tables such as sliceTypeNames[] from C/C++ to TCL? > >=20 > > 2. Register a sliceTypeNames procedure instead (also from C) which > > takes an index as an argument and returns the relevent data. This > > allows the sliceTypeNames variable to have more dynamic contents, > > and it's comparatively easy to use [sliceTypeNames 1] from TCL > > in lieu of sliceTypeNames(1). Additional note, it's much more space-efficient. To store the sliceTypesNames array and index it directly, one would need at least 184 indexes, most of which would be empty. :) A. --gm5TwAJMO0F2iVRz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjvCMKsACgkQttcWHAnWiGc+yACfQG4/IDU8oJhQrWkw5oA1d5qp M8IAniwsKqWOYzxJ6WOhfeSPWj7tSCaI =OIx0 -----END PGP SIGNATURE----- --gm5TwAJMO0F2iVRz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message