You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object.c: get_max_object_index and get_indexed_object accept r parameter
Currently the two functions use global variable `the_repository` to access
the values stored in it. This makes `the_repository` to be existent even
when not required.
This commit replaces it with `r` which is passed as a parameter to those
functions. This is in line with a general trend to reduce dependence on
usage of global variables wherever possible.
This task will be carried out gradually in stages, wherein the caller
functions of these functions modified in object.c, might themselves also
be using `the_repository` in form of a global variable, shall be passed
the `r` variable in a future patch series, and so on for their callers.
Signed-off-by: Parth Gala <parthpgala@gmail.com>
0 commit comments