From c485f06ab621b87c0501c4c628a697d48addafa8 Mon Sep 17 00:00:00 2001
From: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date: Wed, 14 Apr 2010 00:53:26 +0200
Subject: win32: ash: struct strlist

---
 shell/ash.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'shell')

diff --git a/shell/ash.c b/shell/ash.c
index e028d0fcd..28d2f5b9a 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13351,6 +13351,19 @@ SLIST_COPY_BEGIN(localvar_copy,struct localvar)
 (*vpp)->vp = var_copy(vp->vp);
 SAVE_PTR2((*vpp)->vp, (*vpp)->text);
 SLIST_COPY_END()
+
+/*
+ * struct strlist
+ */
+SLIST_SIZE_BEGIN(strlist_size,struct strlist)
+funcstringsize += strlen(p->text) + 1;
+nodeptrsize++; /* p->text */
+SLIST_SIZE_END()
+
+SLIST_COPY_BEGIN(strlist_copy,struct strlist)
+(*vpp)->text = nodeckstrdup(vp->text);
+SAVE_PTR((*vpp)->text);
+SLIST_COPY_END()
 /*-
  * Copyright (c) 1989, 1991, 1993, 1994
  *      The Regents of the University of California.  All rights reserved.
-- 
cgit v1.2.3-55-g6feb