boinc/py
David Anderson f03ee95bf4 Use 'enum' instead of int/#define for PREEMPT_TYPE and SCHEDULER_STATE.
In theory we should do this for everything like this;
it provides some type checking and prevents passing the wrong type of value
(though I don't recall this ever happening).

Note: you can't parse_int() directly into an enum.
You have to parse into an int, then cast to enum.

Note 2: there's some funky perl code that scrapes common_defs.h
for #defines and makes them into python variables.
I think we can get rid of this.

Also added some comments.
No functional changes.
2023-09-16 12:51:04 -07:00
..
Boinc Use 'enum' instead of int/#define for PREEMPT_TYPE and SCHEDULER_STATE. 2023-09-16 12:51:04 -07:00
Makefile.am build: add files to make clean command 2021-01-24 22:03:12 +01:00
boinc_path_config.py.in - server: Use distutils for installing the python modules, 2009-06-11 16:01:36 +00:00
db_def_to_py Use 'enum' instead of int/#define for PREEMPT_TYPE and SCHEDULER_STATE. 2023-09-16 12:51:04 -07:00
setup.py.in - forget to add file 2009-06-11 23:06:02 +00:00