From owner-cvs-src-old@FreeBSD.ORG Tue Nov 23 22:17:52 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3E2D1065693 for ; Tue, 23 Nov 2010 22:17:52 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A07158FC19 for ; Tue, 23 Nov 2010 22:17:52 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oANMHqS6011746 for ; Tue, 23 Nov 2010 22:17:52 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oANMHq3j011745 for cvs-src-old@freebsd.org; Tue, 23 Nov 2010 22:17:52 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201011232217.oANMHq3j011745@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 23 Nov 2010 22:17:39 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/sh cd.c eval.c expand.c histedit.c memalloc.c memalloc.h miscbltin.c parser.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 22:17:52 -0000 jilles 2010-11-23 22:17:39 UTC FreeBSD src repository Modified files: bin/sh cd.c eval.c expand.c histedit.c memalloc.c memalloc.h miscbltin.c parser.c Log: SVN rev 215783 on 2010-11-23 22:17:39Z by jilles sh: Code size optimizations to "stack string" memory allocation: * Prefer one CHECKSTRSPACE with multiple USTPUTC to multiple STPUTC. * Add STPUTS macro (based on function) and use it instead of loops that add nul-terminated strings to the stack string. No functional change is intended, but code size is about 1K less on i386. Revision Changes Path 1.44 +4 -8 src/bin/sh/cd.c 1.94 +1 -2 src/bin/sh/eval.c 1.75 +8 -9 src/bin/sh/expand.c 1.41 +1 -2 src/bin/sh/histedit.c 1.33 +17 -0 src/bin/sh/memalloc.c 1.14 +4 -0 src/bin/sh/memalloc.h 1.44 +6 -5 src/bin/sh/miscbltin.c 1.102 +6 -7 src/bin/sh/parser.c