diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 00:53:26 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-20 19:14:45 +0200 |
commit | 14ec436a10e901ab42c850e5fedc14860d3d8864 (patch) | |
tree | 42c200f3b2cf0a3335cc76f52478110a94b5134e /shell | |
parent | ec56c78fb5f2751f8b4561150b98ca684e2e44b5 (diff) | |
download | busybox-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.c | 13 |
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); |
13351 | SAVE_PTR2((*vpp)->vp, (*vpp)->text); | 13351 | SAVE_PTR2((*vpp)->vp, (*vpp)->text); |
13352 | SLIST_COPY_END() | 13352 | SLIST_COPY_END() |
13353 | |||
13354 | /* | ||
13355 | * struct strlist | ||
13356 | */ | ||
13357 | SLIST_SIZE_BEGIN(strlist_size,struct strlist) | ||
13358 | funcstringsize += strlen(p->text) + 1; | ||
13359 | nodeptrsize++; /* p->text */ | ||
13360 | SLIST_SIZE_END() | ||
13361 | |||
13362 | SLIST_COPY_BEGIN(strlist_copy,struct strlist) | ||
13363 | (*vpp)->text = nodeckstrdup(vp->text); | ||
13364 | SAVE_PTR((*vpp)->text); | ||
13365 | SLIST_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. |