From ec56c78fb5f2751f8b4561150b98ca684e2e44b5 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 00:53:03 +0200 Subject: win32: ash: struct localvar 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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 03f81af17..44984e41c 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -13334,6 +13334,22 @@ SLIST_COPY_BEGIN(var_copy,struct var) (*vpp)->func = NULL; SAVE_PTR((*vpp)->text); SLIST_COPY_END() + +/* + * struct localvar + */ +SLIST_SIZE_BEGIN(localvar_size,struct localvar) +var_size(p->vp); +funcstringsize += strlen(p->text) + 1; +nodeptrsize += 2; /* p->vp, p->text */ +SLIST_SIZE_END() + +SLIST_COPY_BEGIN(localvar_copy,struct localvar) +(*vpp)->text = nodeckstrdup(vp->text); +(*vpp)->flags = vp->flags; +(*vpp)->vp = var_copy(vp->vp); +SAVE_PTR2((*vpp)->vp, (*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