Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2001 13:38:00 -0700
From:      Jordan Hubbard <jkh@freebsd.org>
To:        anarcat@anarcat.dyndns.org
Cc:        freebsd-libh@freebsd.org
Subject:   Re: basic label editor stub, take II
Message-ID:  <20011008133800B.jkh@freebsd.org>
In-Reply-To: <20011008142300.B53336@shall.anarcat.dyndns.org>
References:  <20011008142300.B53336@shall.anarcat.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Anyways, this interface is getting rather heavy. Isn't there a way to
> export tables such as sliceTypeNames[] from C/C++ to TCL?

Yep, several ways:

1. Instantiate a sliceTypeNames array variable using TCL's C API and populate
   it from the C version.  On assumes that it's static, so you only need to
   do it once.

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).

- Jordan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-libh" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011008133800B.jkh>