gdb: remove SYMBOL_IS_ARGUMENT macro
Add a getter and a setter for whether a symbol is an argument. Remove the corresponding macro and adjust all callers. Change-Id: I71b4f0465f3dfd2ed8b9e140bd3f7d5eb8d9ee81
This commit is contained in:
parent
7b3ecc7555
commit
d9743061f9
19 changed files with 49 additions and 40 deletions
|
@ -141,7 +141,7 @@ sympy_is_argument (PyObject *self, void *closure)
|
|||
|
||||
SYMPY_REQUIRE_VALID (self, symbol);
|
||||
|
||||
return PyBool_FromLong (SYMBOL_IS_ARGUMENT (symbol));
|
||||
return PyBool_FromLong (symbol->is_argument ());
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
@ -180,7 +180,7 @@ sympy_is_variable (PyObject *self, void *closure)
|
|||
|
||||
theclass = symbol->aclass ();
|
||||
|
||||
return PyBool_FromLong (!SYMBOL_IS_ARGUMENT (symbol)
|
||||
return PyBool_FromLong (!symbol->is_argument ()
|
||||
&& (theclass == LOC_LOCAL || theclass == LOC_REGISTER
|
||||
|| theclass == LOC_STATIC || theclass == LOC_COMPUTED
|
||||
|| theclass == LOC_OPTIMIZED_OUT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue