1 |
2002-02-23 Sergey Poznyakoff <gray@Mirddin.farlep.net> |
2002-02-23 Sergey Poznyakoff |
2 |
|
|
3 |
* lib/argcv.c: Yesterday's fix makes argcv_get include trailing |
* lib/argcv.c: Yesterday's fix makes argcv_get include trailing |
4 |
whitespace to the arg array. To fix: |
whitespace to the argv array. To fix: |
5 |
(argcv_scan): Return len+1 if called on or after |
(argcv_scan): Return len+1 if called on or after |
6 |
the terminating null character. |
the terminating null character. |
7 |
(argcv_get): Initialize *argc to zero and continue scanning |
(argcv_get): Initialize *argc to zero and continue scanning |
8 |
until argcv_scan return is > len. Thanks Sam for noticing. |
until argcv_scan return is > len. Thanks Sam for noticing. |
9 |
|
|
10 |
|
More fixes: |
11 |
|
(argcv_scan): Correclty handle comments without intervening |
12 |
|
whitespace between the comment character and remaining text, |
13 |
|
e.g.: |
14 |
|
set a=2 #comment |
15 |
|
|
16 |
2002-02-22 Sergey Poznyakoff |
2002-02-22 Sergey Poznyakoff |
17 |
|
|
18 |
* lib/argcv.c (argcv_get): Bugfix, *argc must be initialized to 1. |
* lib/argcv.c (argcv_get): Bugfix, *argc must be initialized to 1. |