ffi: improve support for functions returning arrays
[m6w6/ext-psi] / psi.d / getopt.psi
index 42b5ee5763d32564e4b016fe0a08665caf6a2332..962ac970fb74ae66f126d2a78c554fec1ccb3c0d 100644 (file)
@@ -12,10 +12,10 @@ function psi\optind\set(int $v) : void {
        return optind_set(optind) as void(optind_set);
 }
 function psi\optopt() : int {
-       return optopt() as to_int(optopt);
+       return optopt_get() as to_int(optopt_get);
 }
 function psi\optarg() : string {
-       return optarg() as to_string(optarg);
+       return optarg_get() as to_string(optarg_get);
 }
 
 #ifdef _OPTRESET