From 83ded9e175ba62c5ac75f41f720ba34ed667a002 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 00:52:34 +0200 Subject: win32: ash: struct var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nguyễn Thái Ngọc Duy --- shell/ash.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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) \ return start; \ } +/* + * struct var + */ +SLIST_SIZE_BEGIN(var_size,struct var) +funcstringsize += strlen(p->text) + 1; +nodeptrsize++; /* p->text */ +SLIST_SIZE_END() + +SLIST_COPY_BEGIN(var_copy,struct var) +(*vpp)->text = nodeckstrdup(vp->text); +(*vpp)->flags = vp->flags; +/* + * The only place that can set struct var#func is varinit[], + * which will be fixed by forkshell_init() + */ +(*vpp)->func = NULL; +SAVE_PTR((*vpp)->text); +SLIST_COPY_END() /*- * Copyright (c) 1989, 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. -- cgit v1.2.3-55-g6feb