www.digitalmars.com         C & C++   DMDScript  

DMDScript - patches to make DMDscript compile with DMD1.0

I have attached to this post a patch list which I used
to get DMDscript to compile under the latest D compiler.

I have not had a chance to run these since I cant yet build a complete image
-- protoerror.d is still giving a 'forward references' error.

If anyone here can find a way around the forward reference problem and build
an image - speak up! I have a better command line handler (testscript.d) with
several requested improvements as a reward which I will post as soon as I can
unit-test it.
begin 644 diffs.txt
M*BHJ('!R;V=R86TN9`E3=6X 2F%N("`W(#`V.C$S.C,V(#(P,#<*+2TM("XN
M+RXN+V]R:6<O9&UD<V-R:7!T+W!R;V=R86TN9`E4=64 2G5L(#$X(#`S.C(S
M.C4R(#(P,#8**BHJ*BHJ*BHJ*BHJ*BHJ(&-L87-S(%!R;V=R86T**BHJ(#(R
M,"PR,C8 *BHJ* H (`E["B` "2` ("!S9710<F]G<F%M*'1H:7,I.PH (`D 
M("` <F5T+G!U=%9U;F1E9FEN960H*3L*(2`)("` (')E<W5L="`](&-A<W0H
M5F%L=64J*4E2+F-A;&PH8V,L(&-C+F=L;V)A;"P 9VQO8F%L9G5N8W1I;VXN
M8V]D92P )G)E="P 8V%S="A686QU92`J*6QO8V%L<RD["B` "7T*("`)9FEN
M86QL>0H (`E["BTM+2`R,C`L,C(V("TM+2T*("`)>PH (`D ("` <V5T4')O
M9W)A;2AT:&ES*3L*("`)("` (')E="YP=716=6YD969I;F5D*"D["B$ "2` 
M("!R97-U;'0 /2!C87-T*%9A;'5E*BE)4BYC86QL*&-C+"!C8RYG;&]B86PL
M(&=L;V)A;&9U;F-T:6]N+F-O9&4L("9R970L(&QO8V%L<RD["B` "7T*("`)
M9FEN86QL>0H (`E["BHJ*B!L97AE<BYD"5-U;B!*86X (#< ,#8Z,#0Z,3, 
M,C`P-PHM+2T +BXO+BXO;W)I9R]D;61S8W)I<'0O;&5X97(N9`E3870 36%R
M(#$Q(#`S.C(R.C(V(#(P,#8**BHJ*BHJ*BHJ*BHJ*BHJ(&-L87-S($QE>&5R
M"BHJ*B`R-#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O<B`H<R`](&)A<V4[(', (3T <#L <RLK*0H (`E["B` "2` ("!I9B`H
M*G, /3T )UQN)RD*("`)("` ('L ("!L:6YN=6TK*SL**BHJ*BHJ*BHJ*BHJ
M*BHJ(&-L87-S($QE>&5R"BHJ*B`Q,C<P+#$S,#< *BHJ* H (`D)("` (&EF
M("AB87-E(#T](#`I"B` "0D)8F%S92`](#$P.PH (`D)("` (&EN='9A;'5E
M(#T ,#L*(2`)"2` ("!F;W)E86-H("AT8VAA<B!V;CL <W1A<G1;,"`N+B!P
M("T <W1A<G1=*0H (`D)("` ('L*(2`)"0EI9B`H)S`G(#P]('9N("8F('9N
M(#P]("<Y)RD*(2`)"0D ("` =FX +3T )S`G.PHA(`D)"65L<V4 :68 *"=A
M)R`\/2!V;B`F)B!V;B`\/2`G9B<I"B$ "0D)("` ('9N("T](" G82< +2`Q
M,"D["B$ "0D)96QS92!I9B`H)T$G(#P]('9N("8F('9N(#P]("=&)RD*(2`)
M"0D ("` =FX +3T *"=!)R`M(#$P*3L*("`)"0EE;'-E"B` "0D)("` (&%S
M<V5R=" P*3L*(2`)"0EA<W-E<G0H=FX /"!B87-E*3L*(2`)"0EI9B`H*&YU
M;6)E<E]T+FUA>"`M('9N*2`O(&)A<V4 /"!I;G1V86QU92D*("`)"0E["B` 
M"0D)("` (')E86QV86QU92`](#`["B$ "0D)("` (&9O<F5A8V  *'1C:&%R
M('9O.R!S=&%R=%LP("XN('` +2!S=&%R=%TI"B` "0D)("` ('L*(2`)"0D)
M:68 *"<P)R`\/2!V;R`F)B!V;R`\/2`G.2<I"B$ "0D)"2` ("!V;R`M/2`G
M,"<["B$ "0D)"65L<V4 :68 *"=A)R`\/2!V;R`F)B!V;R`\/2`G9B<I"B$ 
M"0D)"2` ("!V;R`M/2`H)V$G("T ,3`I.PHA(`D)"0EE;'-E(&EF(" G02< 
M/#T =F\ )B8 =F\ /#T )T8G*0HA(`D)"0D ("` =F\ +3T *"=!)R`M(#$P
M*3L*("`)"0D)96QS90H (`D)"0D ("` 87-S97)T*#`I.PH (`D)"0ER96%L
M=F%L=64 *CT 8F%S93L*(2`)"0D)<F5A;'9A;'5E("L]('9O.PH (`D)"2` 
M("!]"B` "0D)("` ('0N<F5A;'9A;'5E(#T <F5A;'9A;'5E.PH (`D)"2` 
M("!R971U<FX 5$]+<F5A;#L*("`)"0E]"B` "0D):6YT=F%L=64 *CT 8F%S
M93L*(2`)"0EI;G1V86QU92`K/2!V;CL*("`)"2` ("!]"B` "0D ("` ="YR
M96%L=F%L=64 /2!C87-T*&1O=6)L92EI;G1V86QU93L*("`)"2` ("!R971U
M<FX 5$]+<F5A;#L*+2TM(#$R-S`L,3,P-R`M+2TM"B` "0D ("` :68 *&)A
M<V4 /3T ,"D*("`)"0EB87-E(#T ,3`["B` "0D ("` :6YT=F%L=64 /2`P
M.PHA(`D)("` (&9O<F5A8V  *'1C:&%R('8[('-T87)T6S` +BX <"`M('-T
M87)T72D*("`)"2` ("!["B$ "0D):68 *"<P)R`\/2!V("8F('8 /#T )SDG
M*0HA(`D)"2` ("!V("T]("<P)SL*(2`)"0EE;'-E(&EF(" G82< /#T =B`F
M)B!V(#P]("=F)RD*(2`)"0D ("` =B`M/2`H)V$G("T ,3`I.PHA(`D)"65L
M<V4 :68 *"=!)R`\/2!V("8F('8 /#T )T8G*0HA(`D)"2` ("!V("T](" G
M02< +2`Q,"D["B` "0D)96QS90H (`D)"2` ("!A<W-E<G0H,"D["B$ "0D)
M87-S97)T*'8 /"!B87-E*3L*(2`)"0EI9B`H*&YU;6)E<E]T+FUA>"`M('8I
M("\ 8F%S92`\(&EN='9A;'5E*0H (`D)"7L*("`)"0D ("` <F5A;'9A;'5E
M(#T ,#L*(2`)"0D ("` 9F]R96%C:"`H=&-H87( =CL <W1A<G1;,"`N+B!P
M("T <W1A<G1=*0H (`D)"2` ("!["B$ "0D)"6EF(" G,"< /#T =B`F)B!V
M(#P]("<Y)RD*(2`)"0D)("` ('8 +3T )S`G.PHA(`D)"0EE;'-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