monitor.d and critical.d?

%u wfunction at hotmail.com
Sun Jan 30 01:54:56 PST 2011


Hi,

I was wondering, is there any particular reason why critical.c and monitor.c
aren't written in D?

I've attached the D versions... the only other changes needed would be to
change win32.mak:
1. Change all instances of critical.c and monitor.c to critical.d and monitor.d
2. Add
    src\rt\critical.d \
    src\rt\monitor.d \
  below the
    SRCS= \
  category.
3. Remove critical.obj and monitor.obj from the OBJS= and OBJS_TO_DELETE=
sections.
4. Remove the their ASM targets from the bottom of the makefile  (they're
around line 755).

Does this sound useful? Or was there a particular reason this wasn't done in D?
begin 644 critical.d
M<')I=F%T92!I;7!O<G0 at 8V]R92YS>7,N=VEN9&]W<RYW:6YD;W=S(#H at 16YT
M97)#<FET:6-A;%-E8W1I;VXL($QE879E0W)I=&EC86Q396-T:6]N+"!$96QE
M=&5#<FET:6-A;%-E8W1I;VXL($EN:71I86QI>F5#<FET:6-A;%-E8W1I;VXL
M($-2251)0T%,7U-%0U1)3TX[#0H-"F5X=&5R;B`H0RD-"GL-"@ES=')U8W0@
M1%]#4DE424-!3%]314-424].('L at 1%]#4DE424-!3%]314-424].("IN97AT
M.R!#4DE424-!3%]314-424].(&-S.R!]#0H)=F]I9"!?4U1)7V-R:71I8V%L
M7VEN:70H*2![($EN:71I86QI>F5#<FET:6-A;%-E8W1I;VXH)F-R:71I8V%L
M7W-E8W1I;VXN8W,I.R!D8W-?;&ES="`]("9C<FET:6-A;%]S96-T:6]N.R!]
M#0H-"@EV;VED(%]35$1?8W)I=&EC86Q?=&5R;2 at I#0H)>PT*"0EW:&EL92`H
M9&-S7VQI<W0I#0H)"7L-"@D)"41E;&5T94-R:71I8V%L4V5C=&EO;B at F9&-S
M7VQI<W0N8W,I.PT*"0D)9&-S7VQI<W0@/2!D8W-?;&ES="YN97AT.PT*"0E]
M#0H)?0T*#0H)<W1A=&EC(%]?9W-H87)E9"!$7T-2251)0T%,7U-%0U1)3TX@
M*F1C<U]L:7-T.PT*"7-T871I8R!?7V=S:&%R960 at 1%]#4DE424-!3%]314-4
M24].(&-R:71I8V%L7W-E8W1I;VX[#0H-"@EV;VED(%]D7V-R:71I8V%L96YT
M97(H1%]#4DE424-!3%]314-424].("ID8W,I#0H)>PT*"2`@("!I9B`H(61C
M<RYN97AT*0T*"2`@("![#0H)"0E%;G1E<D-R:71I8V%L4V5C=&EO;B at F8W)I
M=&EC86Q?<V5C=&EO;BYC<RD[#0H)"0EI9B`H(61C<RYN97AT*2`O+R!I9BP@
M:6X@=&AE(&UE86YT:6UE+"!A;F]T:&5R('1H<F5A9"!D:61N)W0@<V5T(&ET
M#0H)"0E[#0H)"0D)9&-S+FYE>'0@/2!D8W-?;&ES=#L-"@D)"0ED8W-?;&ES
M="`](&1C<SL-"@D)"0E);FET:6%L:7IE0W)I=&EC86Q396-T:6]N*"9D8W,N
M8W,I.PT*"0D)?0T*"0D)3&5A=F5#<FET:6-A;%-E8W1I;VXH)F-R:71I8V%L
M7W-E8W1I;VXN8W,I.PT*"2`@("!]#0H)("`@($5N=&5R0W)I=&EC86Q396-T
M:6]N*"9D8W,N8W,I.PT*"7T-"@T*"79O:60 at 7V1?8W)I=&EC86QE>&ET*$1?
M0U))5$E#04Q?4T5#5$E/3B`J9&-S*2![($QE879E0W)I=&EC86Q396-T:6]N
/*"9D8W,N8W,I.R!]#0I]
`
end
begin 644 monitor.d
M<')I=F%T92!I;7!O<G0 at 8V]R92YS>7,N=VEN9&]W<RYW:6YD;W=S(#H at 16YT
M97)#<FET:6-A;%-E8W1I;VXL($QE879E0W)I=&EC86Q396-T:6]N+"!$96QE
M=&5#<FET:6-A;%-E8W1I;VXL($EN:71I86QI>F5#<FET:6-A;%-E8W1I;VXL
M($-2251)0T%,7U-%0U1)3TX[#0IP<FEV871E(&EM<&]R="!C;W)E+G-T9&,N
M<W1D;&EB.PT*<')I=F%T92!I;7!O<G0@<G0N;&EF971I;64 at .B!!<G)A>3L-
M"@T*+R\@5&AI<R!I<R!W:&%T('1H92!M;VYI=&]R(')E9F5R96YC92!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M4%12*&@I*3L-"@D@("`@9G)E92AH+E]?;6]N:71O<BD[#0H)("`@(&@N7U]M
M;VYI=&]R(#T@;G5L;#L-"@D@("`@+R]P<FEN=&8H(BU?9%]M;VYI=&]R7V1E
M<W1R;WDH)7`I7&XB+"!H*3L-"@E]#0H-"@EV;VED(%]D7VUO;FET;W)?;&]C
M:RA/8FIE8W0@:"D-"@E[#0H)("`@("\O<')I;G1F*"(K7V1?;6]N:71O<E]A
M8W%U:7)E*"5P*5QN(BP@:"D[#0H)("`@(&%S<V5R="AH("8F(&@N7U]M;VYI
M=&]R("8F("$H8V%S="A-;VYI=&]R*BEH+E]?;6]N:71O<BDN:6UP;"D[#0H)
M("`@($5N=&5R0W)I=&EC86Q396-T:6]N*$U/3E!44BAH*2D[#0H)("`@("\O
M<')I;G1F*"(M7V1?;6]N:71O<E]A8W%U:7)E*"5P*5QN(BP@:"D[#0H)?0T*
M#0H)=F]I9"!?9%]M;VYI=&]R7W5N;&]C:RA/8FIE8W0@:"D-"@E[#0H)("`@
M("\O<')I;G1F*"(K7V1?;6]N:71O<E]R96QE87-E*"5P*5QN(BP@:"D[#0H)
M("`@(&%S<V5R="AH("8F(&@N7U]M;VYI=&]R("8F("$H8V%S="A-;VYI=&]R
M*BEH+E]?;6]N:71O<BDN:6UP;"D[#0H)("`@($QE879E0W)I=&EC86Q396-T
M:6]N*$U/3E!44BAH*2D[#0H)("`@("\O<')I;G1F*"(M7V1?;6]N:71O<E]R
996QE87-E*"5P*5QN(BP@:"D[#0H)?0T*?0``
`
end


More information about the Digitalmars-d mailing list