From 14ec436a10e901ab42c850e5fedc14860d3d8864 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 00:53:26 +0200 Subject: win32: ash: struct strlist 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 44984e41c..5431f3b17 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -13350,6 +13350,19 @@ SLIST_COPY_BEGIN(localvar_copy,struct localvar) (*vpp)->vp = var_copy(vp->vp); SAVE_PTR2((*vpp)->vp, (*vpp)->text); SLIST_COPY_END() + +/* + * struct strlist + */ +SLIST_SIZE_BEGIN(strlist_size,struct strlist) +funcstringsize += strlen(p->text) + 1; +nodeptrsize++; /* p->text */ +SLIST_SIZE_END() + +SLIST_COPY_BEGIN(strlist_copy,struct strlist) +(*vpp)->text = nodeckstrdup(vp->text); +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