X-Git-Url: https://git.martlubbers.net/?p=cloogle-irc.git;a=blobdiff_plain;f=cloogle.icl;h=29cee8056d1a4ce513878379658490f1563132cc;hp=fa3bb50c8385ce6fc04d925680c58e8aadd8ea8b;hb=f828f3a79cfcfb21c6c7a7773905cc210a739f75;hpb=e044cfaa625c5b38ab18a481c20eb743fccb285d diff --git a/cloogle.icl b/cloogle.icl index fa3bb50..29cee80 100644 --- a/cloogle.icl +++ b/cloogle.icl @@ -142,14 +142,14 @@ cloogle data w processResult :: Result -> String processResult (FunctionResult (br, {func})) - = "Function in " +++ br.library +++ ": " +++ br.modul +++ " - " +++ func + = "Function in " +++ br.library +++ ": " +++ br.modul +++ "\n" +++ func processResult (TypeResult (br, {type})) - = "Type in " +++ br.library +++ ": " +++ br.modul +++ " - " +++ limitResults type + = "Type in " +++ br.library +++ ": " +++ br.modul +++ "\n" +++ limitResults type processResult (ClassResult (br, {class_name,class_funs})) - = "Class in " +++ br.library +++ ": " +++ br.modul +++ " - " +++ class_name +++ " with " + = "Class in " +++ br.library +++ ": " +++ br.modul +++ "\n" +++ class_name +++ " with " +++ toString (length class_funs) +++ " class functions" processResult (MacroResult (br, {macro_name})) - = "Macro in " +++ br.library +++ ": " +++ br.modul +++ " - " +++ macro_name + = "Macro in " +++ br.library +++ ": " +++ br.modul +++ "\n" +++ macro_name processResult (ModuleResult (br, _)) = "Module in " +++ br.library +++ ": " +++ br.modul @@ -167,9 +167,15 @@ cloogle data w send :: [String] TCP_DuplexChannel *World -> (TCP_DuplexChannel, *World) send [] chan w = (chan, w) send [msg:msgs] {sChannel,rChannel} w +# (_, w) = sleep 250000 w # (rpt,i,sChannel,w) = send_MT TIMEOUT (toByteSeq msg) sChannel w | rpt <> TR_Success = abort "Could not send request\n" = send msgs {sChannel=sChannel,rChannel=rChannel} w + where + sleep :: !Int !*World -> (!Int, *World) + sleep i w = code { + ccall usleep "I:I:A" + } recv :: TCP_DuplexChannel *World -> (Maybe String, TCP_DuplexChannel, *World) recv {sChannel,rChannel} w