Hi, all,

i'm wondering if anyone would be against me making the following change to
the 'g' object:

Extend its structure to include:

struct FossilPermissions {
  char setup;
  char admin;
  ... repeat for all current g.okXXX bits ...
} perm;

Remove all of the g.okXXX members, replacing their uses with g.perm.XXX.

One advantage (though very minor) would be future-proofing code
like login_as_user() against the addition of future permissions (which must
currently be explicitly set there, whereas the above replaces all that with
a simple memset()).

???

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to