summaryrefslogtreecommitdiffstats
path: root/bin/sh/var.h
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-05-08 16:15:50 +0000
committerjilles <jilles@FreeBSD.org>2011-05-08 16:15:50 +0000
commitbf0e27838c7f0e2558fb05339e6f8b74848281c9 (patch)
tree29dcfd157d5ba88cc4918050d4e7403d7502b9d8 /bin/sh/var.h
parenta2816e3bed5782537b0c8e30da147b0d61e3fb25 (diff)
downloadFreeBSD-src-bf0e27838c7f0e2558fb05339e6f8b74848281c9.zip
FreeBSD-src-bf0e27838c7f0e2558fb05339e6f8b74848281c9.tar.gz
sh: Optimize variable code by storing the length of the name.
Obtained from: NetBSD
Diffstat (limited to 'bin/sh/var.h')
-rw-r--r--bin/sh/var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/var.h b/bin/sh/var.h
index 4336562..323ddc2 100644
--- a/bin/sh/var.h
+++ b/bin/sh/var.h
@@ -51,6 +51,7 @@
struct var {
struct var *next; /* next entry in hash list */
int flags; /* flags are defined above */
+ int name_len; /* length of name */
char *text; /* name=value */
void (*func)(const char *);
/* function to be called when */
OpenPOWER on IntegriCloud