projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
options: make the groups/categories constant
[fio.git]
/
goptions.c
diff --git
a/goptions.c
b/goptions.c
index c01b6cc7d8f835bd3113a8601dc0404aaff50911..9279b22f946c434441c899dcc6727f8a588d78e5 100644
(file)
--- a/
goptions.c
+++ b/
goptions.c
@@
-92,9
+92,9
@@
struct gopt_job_view {
static GNode *gopt_dep_tree;
static GtkWidget *gopt_get_group_frame(struct gopt_job_view *gjv,
static GNode *gopt_dep_tree;
static GtkWidget *gopt_get_group_frame(struct gopt_job_view *gjv,
- GtkWidget *box, u
nsigned in
t groupmask)
+ GtkWidget *box, u
int64_
t groupmask)
{
{
- u
nsigned in
t mask, group;
+ u
int64_
t mask, group;
struct opt_group *og;
GtkWidget *frame, *hbox;
struct gopt_frame_widget *gfw;
struct opt_group *og;
GtkWidget *frame, *hbox;
struct gopt_frame_widget *gfw;
@@
-107,7
+107,7
@@
static GtkWidget *gopt_get_group_frame(struct gopt_job_view *gjv,
if (!og)
return NULL;
if (!og)
return NULL;
- group = ffz(~groupmask);
+ group = ffz
64
(~groupmask);
gfw = &gjv->g_widgets[group];
if (!gfw->vbox[0]) {
frame = gtk_frame_new(og->name);
gfw = &gjv->g_widgets[group];
if (!gfw->vbox[0]) {
frame = gtk_frame_new(og->name);
@@
-1135,11
+1135,11
@@
static void gopt_add_options(struct gopt_job_view *gjv,
*/
for (i = 0; fio_options[i].name; i++) {
struct fio_option *o = &fio_options[i];
*/
for (i = 0; fio_options[i].name; i++) {
struct fio_option *o = &fio_options[i];
- u
nsigned in
t mask = o->category;
+ u
int64_
t mask = o->category;
struct opt_group *og;
while ((og = opt_group_from_mask(&mask)) != NULL) {
struct opt_group *og;
while ((og = opt_group_from_mask(&mask)) != NULL) {
- GtkWidget *vbox = gjv->vboxes[ffz(~og->mask)];
+ GtkWidget *vbox = gjv->vboxes[ffz
64
(~og->mask)];
hbox = gtk_hbox_new(FALSE, 3);
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
hbox = gtk_hbox_new(FALSE, 3);
gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
@@
-1189,7
+1189,7
@@
static void gopt_add_group_tabs(GtkWidget *notebook, struct gopt_job_view *gjv)
i = 0;
do {
i = 0;
do {
- u
nsigned int mask = (1U
<< i);
+ u
int64_t mask = (1ULL
<< i);
og = opt_group_from_mask(&mask);
if (!og)
og = opt_group_from_mask(&mask);
if (!og)