[PATCH] applet-request: expand

Tito farmatito at tiscali.it
Mon Aug 6 21:00:56 UTC 2007


Hi,
this is a first attempt to implement a stripped down version of expand.
This version is only little tested so it may contain all sort of bugs.
Hints, critics and help in testing and improving it is welcome. 

bloat-o-meter (after make defconfig and enabling the expand applet) says:
function                                             old     new   delta
expand_main                                            -     437    +437
.rodata                                           121357  121485    +128
packed_usage                                       22558   22660    +102
applets                                             3108    3120     +12
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/0 up/down: 679/0)             Total: 679 bytes

Usage is: expand  [-i] [-t NUM] [FILE | -]

 *  Options:
 *  -t num		Convert tabs to num spaces (default 8 spaces).
 *
 *              Caveat: this version doesn't accept tab lists and
 *              therefore isn't conform to The Open Group Base 
 *              Specifications Issue 6.
 *
 *  -i			Only convert initial tabs on each line to spaces.

Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expand.patch
Type: text/x-diff
Size: 5052 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070806/61687011/attachment-0002.bin 


More information about the busybox mailing list