aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index afe443518..03f81af17 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13316,6 +13316,24 @@ name(type *vp) \
13316 return start; \ 13316 return start; \
13317} 13317}
13318 13318
13319/*
13320 * struct var
13321 */
13322SLIST_SIZE_BEGIN(var_size,struct var)
13323funcstringsize += strlen(p->text) + 1;
13324nodeptrsize++; /* p->text */
13325SLIST_SIZE_END()
13326
13327SLIST_COPY_BEGIN(var_copy,struct var)
13328(*vpp)->text = nodeckstrdup(vp->text);
13329(*vpp)->flags = vp->flags;
13330/*
13331 * The only place that can set struct var#func is varinit[],
13332 * which will be fixed by forkshell_init()
13333 */
13334(*vpp)->func = NULL;
13335SAVE_PTR((*vpp)->text);
13336SLIST_COPY_END()
13319/*- 13337/*-
13320 * Copyright (c) 1989, 1991, 1993, 1994 13338 * Copyright (c) 1989, 1991, 1993, 1994
13321 * The Regents of the University of California. All rights reserved. 13339 * The Regents of the University of California. All rights reserved.