diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 00:52:34 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-20 19:14:44 +0200 |
commit | 83ded9e175ba62c5ac75f41f720ba34ed667a002 (patch) | |
tree | 89cace84256f8dea94ec6edb8258c201b1a9791e /shell/ash.c | |
parent | 309c723003add5c465a87cf9db70cf31db8fcf04 (diff) | |
download | busybox-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.c | 18 |
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 | */ | ||
13322 | SLIST_SIZE_BEGIN(var_size,struct var) | ||
13323 | funcstringsize += strlen(p->text) + 1; | ||
13324 | nodeptrsize++; /* p->text */ | ||
13325 | SLIST_SIZE_END() | ||
13326 | |||
13327 | SLIST_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; | ||
13335 | SAVE_PTR((*vpp)->text); | ||
13336 | SLIST_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. |