diff options
| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 00:53:03 +0200 |
|---|---|---|
| committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 11:04:24 +1000 |
| commit | 28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d (patch) | |
| tree | 2033ec9c8f3a4e77d2e0f3ed20b04de61b6a38bd /shell | |
| parent | 10a40a90e360807cee1c1a4452013091f22f68e9 (diff) | |
| download | busybox-w32-28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d.tar.gz busybox-w32-28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d.tar.bz2 busybox-w32-28db08865aa86f66ac51ad58ca5c2cfdfebe9c0d.zip | |
win32: ash: struct localvar
Diffstat (limited to 'shell')
| -rw-r--r-- | shell/ash.c | 16 |
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; |
| 13336 | SAVE_PTR((*vpp)->text); | 13336 | SAVE_PTR((*vpp)->text); |
| 13337 | SLIST_COPY_END() | 13337 | SLIST_COPY_END() |
| 13338 | |||
| 13339 | /* | ||
| 13340 | * struct localvar | ||
| 13341 | */ | ||
| 13342 | SLIST_SIZE_BEGIN(localvar_size,struct localvar) | ||
| 13343 | var_size(p->vp); | ||
| 13344 | funcstringsize += strlen(p->text) + 1; | ||
| 13345 | nodeptrsize += 2; /* p->vp, p->text */ | ||
| 13346 | SLIST_SIZE_END() | ||
| 13347 | |||
| 13348 | SLIST_COPY_BEGIN(localvar_copy,struct localvar) | ||
| 13349 | (*vpp)->text = nodeckstrdup(vp->text); | ||
| 13350 | (*vpp)->flags = vp->flags; | ||
| 13351 | (*vpp)->vp = var_copy(vp->vp); | ||
| 13352 | SAVE_PTR2((*vpp)->vp, (*vpp)->text); | ||
| 13353 | SLIST_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. |
