X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/82d4e52fba54be50d719f6185ec381f2dc87fc6c..9777e2483955343fea879378221d10f738f43b40:/lcoreselect.pas?ds=inline diff --git a/lcoreselect.pas b/lcoreselect.pas index 0d99f6a..16134ee 100755 --- a/lcoreselect.pas +++ b/lcoreselect.pas @@ -31,6 +31,8 @@ var function getfdsrmaster : fdset; {$ifdef useinline}inline;{$endif} function getfdswmaster : fdset; {$ifdef useinline}inline;{$endif} +procedure lcoreinit; + implementation uses lcore,sysutils, @@ -392,9 +394,13 @@ begin fdreverse[fd] := reverseto; end; +var + inited:boolean; - +procedure lcoreinit; begin + if inited then exit; + inited := true; eventcore := tselecteventcore.create; absoloutemaxs := absoloutemaxs_select; @@ -402,4 +408,6 @@ begin maxs := 0; fd_zero(fdsrmaster); fd_zero(fdswmaster); +end; + end.