From 10a40a90e360807cee1c1a4452013091f22f68e9 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 --- shell/ash.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 518615316..fa4410749 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -13317,6 +13317,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