aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 00:53:26 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:45 +0200
commit14ec436a10e901ab42c850e5fedc14860d3d8864 (patch)
tree42c200f3b2cf0a3335cc76f52478110a94b5134e /shell
parentec56c78fb5f2751f8b4561150b98ca684e2e44b5 (diff)
downloadbusybox-w32-14ec436a10e901ab42c850e5fedc14860d3d8864.tar.gz
busybox-w32-14ec436a10e901ab42c850e5fedc14860d3d8864.tar.bz2
busybox-w32-14ec436a10e901ab42c850e5fedc14860d3d8864.zip
win32: ash: struct strlist
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c13
1 files changed, 13 insertions, 0 deletions
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)
13350(*vpp)->vp = var_copy(vp->vp); 13350(*vpp)->vp = var_copy(vp->vp);
13351SAVE_PTR2((*vpp)->vp, (*vpp)->text); 13351SAVE_PTR2((*vpp)->vp, (*vpp)->text);
13352SLIST_COPY_END() 13352SLIST_COPY_END()
13353
13354/*
13355 * struct strlist
13356 */
13357SLIST_SIZE_BEGIN(strlist_size,struct strlist)
13358funcstringsize += strlen(p->text) + 1;
13359nodeptrsize++; /* p->text */
13360SLIST_SIZE_END()
13361
13362SLIST_COPY_BEGIN(strlist_copy,struct strlist)
13363(*vpp)->text = nodeckstrdup(vp->text);
13364SAVE_PTR((*vpp)->text);
13365SLIST_COPY_END()
13353/*- 13366/*-
13354 * Copyright (c) 1989, 1991, 1993, 1994 13367 * Copyright (c) 1989, 1991, 1993, 1994
13355 * The Regents of the University of California. All rights reserved. 13368 * The Regents of the University of California. All rights reserved.