[fpc-devel]Bugfixes and improvements in options.pas

Sergey Korshunoff Sergey.Korshunoff at p5.f2666.n5020.z2.fidonet.org
Sat Jun 30 01:51:29 CEST 2001


PO> I think, current condition of +/- switches handling in command line
PO> (options.pas) in 1.1 branch is not good and somewhere buggy. A
PO> typical sample is  handling of -WD+/- which is fully impossible.
PO> Cause: parsing all command characters inside of "for .. to" cycle
PO> causes to getting "+" or "-" characters as independent switches which
PO> are not supported. Somewhere this problem was partially solved using
PO> index increasing but not fully correctly because only if "-" sign
PO> would be found the index would be increased. Missing of signs after
PO> switch would also cause loss of next switch. Therefore now I tried to
PO> fix this bug and added excluding of signs directly into unsetbool
PO> function. This change let me simplify some constructions. Also I
PO> would add support -WR+ / -WR- as synonims of -WR / -WN (may be, -WN
PO> switch could be excluded).
PO> All these my changes are marked by //Ozerski.
PO> Sincerely, Pavel

And this is a diff against a Pavel OPTIONS.PAS
(FPC 1.1, some not corrected by Pavel UnsetBool() usage)

=== Cut ===
begin 644 OPTIONS.PAS.DIF.gz
M'XL("->D/3L``T]05$E/3E,N4$%3+D1)1@"]65MOXC at 4?M[^"C^LE**0-H$"
M'3J,NBVTVQ5;4#NC6:EBHY`X(33$46+4LJ/^][5SX9+$-E!:OP#)\?&Y?.=F
M%$4!@^'WN\']X\GPC\>30;_[VZ.!P5]S']15H)ZU:^=MM0EJJJH=R;*\3KQ!
MV"!4[8:6$%Y>`J7>JE7)"SG^K('+RR/`6'>>!QW#&QJA<8P"7+DHIX2^57 at C
MC270!F/HN/Z17,[=M<$//X+X"B'O^&\4PJI:`7@"??XVLM%W\0Q9<P]&+RXV
M)S!J=XK/E"<STL<A>HE at .+HX"#</F8:WQA/\^MVU+6B#J^11'SEO1PK[&,=#
M8\/;/&;SF;PF-#G.$0DNYJ at 4.1*QB<M<FRVK#:@_OGZ3I- at A++HE94?R1)3;
M&EHN&IK-%'H17,F at B&5(D,4AV`==U1)H,+Q&[)X(?1"(RYL0WP6.JV/V at M`[
M05D"<R$H4_-M!P8"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