aboutsummaryrefslogtreecommitdiff
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-09-14 11:04:24 +1000
commit28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d (patch)
tree2033ec9c8f3a4e77d2e0f3ed20b04de61b6a38bd
parent10a40a90e360807cee1c1a4452013091f22f68e9 (diff)
downloadbusybox-w32-28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d.tar.gz
busybox-w32-28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d.tar.bz2
busybox-w32-28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d.zip
win32: ash: struct localvar
-rw-r--r--shell/ash.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index fa4410749..e028d0fcd 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13335,6 +13335,22 @@ SLIST_COPY_BEGIN(var_copy,struct var)
13335(*vpp)->func = NULL; 13335(*vpp)->func = NULL;
13336SAVE_PTR((*vpp)->text); 13336SAVE_PTR((*vpp)->text);
13337SLIST_COPY_END() 13337SLIST_COPY_END()
13338
13339/*
13340 * struct localvar
13341 */
13342SLIST_SIZE_BEGIN(localvar_size,struct localvar)
13343var_size(p->vp);
13344funcstringsize += strlen(p->text) + 1;
13345nodeptrsize += 2; /* p->vp, p->text */
13346SLIST_SIZE_END()
13347
13348SLIST_COPY_BEGIN(localvar_copy,struct localvar)
13349(*vpp)->text = nodeckstrdup(vp->text);
13350(*vpp)->flags = vp->flags;
13351(*vpp)->vp = var_copy(vp->vp);
13352SAVE_PTR2((*vpp)->vp, (*vpp)->text);
13353SLIST_COPY_END()
13338/*- 13354/*-
13339 * Copyright (c) 1989, 1991, 1993, 1994 13355 * Copyright (c) 1989, 1991, 1993, 1994
13340 * The Regents of the University of California. All rights reserved. 13356 * The Regents of the University of California. All rights reserved.