X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=psi.d%2Fgetopt.psi;h=5e1e427ce50cec30c22d678b954bb9815c4e131b;hp=5f5bae6fcb67d6ac3224e55b94837d8b6589a502;hb=5e240548ba570610ce0dbc248a2b7654a0e080fa;hpb=a107dfcca2dfd0fc5a2779a8d679f778cb8f3290 diff --git a/psi.d/getopt.psi b/psi.d/getopt.psi index 5f5bae6..5e1e427 100644 --- a/psi.d/getopt.psi +++ b/psi.d/getopt.psi @@ -1,5 +1,6 @@ -function psi\opterr() : int { - return to_int(opterr); +function psi\opterr(int $value) : void { + let _v = intval($value); + return void(opterr_set); } function psi\optind() : int { return to_int(optind);