X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fglob.psi;h=1fd6b15c9bb6f8677a96c232acb0802877ee50f1;hp=5e6d21534d452d34c36304878dfb533dbd06f16c;hb=601e13c0743234c53a62e68fc89f122069123c15;hpb=7df12c88a4e14611a2585d6e7c994c59e8d7485a;ds=sidebyside diff --git a/psi.d/glob.psi b/psi.d/glob.psi index 5e6d215..1fd6b15 100644 --- a/psi.d/glob.psi +++ b/psi.d/glob.psi @@ -1,3 +1,5 @@ +#include + function psi\glob(string $pattern, int $flags, array &$glob = NULL, callable $errfn = NULL) : int { let path = strval($pattern); let flags = intval($flags); @@ -14,7 +16,7 @@ function psi\glob(string $pattern, int $flags, array &$glob = NULL, callable $er strval($gl_pathv) ) ); - return to_int(glob); + return glob(path, flags, err, buf) as to_int(glob); set $glob = to_array(*buf, to_int(gl_matchc), to_int(gl_pathc),