aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 00:53:03 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:45 +0200
commitec56c78fb5f2751f8b4561150b98ca684e2e44b5 (patch)
tree4560083770986cffb0a4f6691d7d8ec117c6d4f3 /shell
parent83ded9e175ba62c5ac75f41f720ba34ed667a002 (diff)
downloadbusybox-w32-ec56c78fb5f2751f8b4561150b98ca684e2e44b5.tar.gz
busybox-w32-ec56c78fb5f2751f8b4561150b98ca684e2e44b5.tar.bz2
busybox-w32-ec56c78fb5f2751f8b4561150b98ca684e2e44b5.zip
win32: ash: struct localvar
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c16
1 files changed, 16 insertions, 0 deletions
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)
13334(*vpp)->func = NULL; 13334(*vpp)->func = NULL;
13335SAVE_PTR((*vpp)->text); 13335SAVE_PTR((*vpp)->text);
13336SLIST_COPY_END() 13336SLIST_COPY_END()
13337
13338/*
13339 * struct localvar
13340 */
13341SLIST_SIZE_BEGIN(localvar_size,struct localvar)
13342var_size(p->vp);
13343funcstringsize += strlen(p->text) + 1;
13344nodeptrsize += 2; /* p->vp, p->text */
13345SLIST_SIZE_END()
13346
13347SLIST_COPY_BEGIN(localvar_copy,struct localvar)
13348(*vpp)->text = nodeckstrdup(vp->text);
13349(*vpp)->flags = vp->flags;
13350(*vpp)->vp = var_copy(vp->vp);
13351SAVE_PTR2((*vpp)->vp, (*vpp)->text);
13352SLIST_COPY_END()
13337/*- 13353/*-
13338 * Copyright (c) 1989, 1991, 1993, 1994 13354 * Copyright (c) 1989, 1991, 1993, 1994
13339 * The Regents of the University of California. All rights reserved. 13355 * The Regents of the University of California. All rights reserved.