Skip to content
Snippets Groups Projects
Commit 91059084 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use new uifc.list mode flag WIN_BLANKOPTS

uifc option lists are always NULL-terminated string lists (not static
arrays of char arrays, as is often used in other UIFC utils), so grow
the ability to have blank options (list items).

This was needed for fileman.js to accurately edit extended file
descriptions that contain blank lines.
parent 521e0f48
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -903,7 +903,7 @@ js_uifc_list(JSContext *cx, uintN argc, jsval *arglist)
JS_SET_RVAL(cx, arglist, JSVAL_FALSE);
} else {
rc=JS_SUSPENDREQUEST(cx);
JS_SET_RVAL(cx, arglist, INT_TO_JSVAL(uifc->list(mode,left,top,width,(int*)dptr,(int*)bptr,title,opts)));
JS_SET_RVAL(cx, arglist, INT_TO_JSVAL(uifc->list(mode|WIN_BLANKOPTS,left,top,width,(int*)dptr,(int*)bptr,title,opts)));
JS_RESUMEREQUEST(cx, rc);
}
strListFree(&opts);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment