[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "internal" variables?
From: |
John Darrington |
Subject: |
Re: "internal" variables? |
Date: |
Thu, 11 Sep 2008 13:22:39 +0800 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Wed, Sep 10, 2008 at 09:13:07PM -0700, Ben Pfaff wrote:
John Darrington <address@hidden> writes:
> I wondered if allowing a special class of (struct variable) which does
> not have any associated dictionary would be a sensible idea?
Already exists. Just call var_create().
> These kind of variables would be very sparse, containing only a
> width, and a case_idx.
The case_idx isn't really there conceptually, because currently
it's thought of as part of the dictionary and just stored in the
variable for convenience. But you can put it there with
var_set_vardict(); despite the stern warning in vardict.h that
"This header file should only be included by variable.c and
dictionary.c," there is nothing actually enforcing it (if I
recall correctly).
You're right. Perhaps then we can put a convenience function in
data/variables.h to wrap the most common usage?
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature