aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 00:52:34 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:44 +0200
commit83ded9e175ba62c5ac75f41f720ba34ed667a002 (patch)
tree89cace84256f8dea94ec6edb8258c201b1a9791e /shell/ash.c
parent309c723003add5c465a87cf9db70cf31db8fcf04 (diff)
downloadbusybox-w32-83ded9e175ba62c5ac75f41f720ba34ed667a002.tar.gz
busybox-w32-83ded9e175ba62c5ac75f41f720ba34ed667a002.tar.bz2
busybox-w32-83ded9e175ba62c5ac75f41f720ba34ed667a002.zip
win32: ash: struct var
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index afe443518..03f81af17 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13316,6 +13316,24 @@ name(type *vp) \
13316 return start; \ 13316 return start; \
13317} 13317}
13318 13318
13319/*
13320 * struct var
13321 */
13322SLIST_SIZE_BEGIN(var_size,struct var)
13323funcstringsize += strlen(p->text) + 1;
13324nodeptrsize++; /* p->text */
13325SLIST_SIZE_END()
13326
13327SLIST_COPY_BEGIN(var_copy,struct var)
13328(*vpp)->text = nodeckstrdup(vp->text);
13329(*vpp)->flags = vp->flags;
13330/*
13331 * The only place that can set struct var#func is varinit[],
13332 * which will be fixed by forkshell_init()
13333 */
13334(*vpp)->func = NULL;
13335SAVE_PTR((*vpp)->text);
13336SLIST_COPY_END()
13319/*- 13337/*-
13320 * Copyright (c) 1989, 1991, 1993, 1994 13338 * Copyright (c) 1989, 1991, 1993, 1994
13321 * The Regents of the University of California. All rights reserved. 13339 * The Regents of the University of California. All rights reserved.