Let the ARI know gdb_Py_DECREF is OK.

The ARI complains with:

> gdb/python/python-internal.h:177: code: editCase function: Function name starts lower case but has uppercased letters.
gdb/python/python-internal.h:177:gdb_Py_DECREF (void *op)

gdb_Py_DECREF is just wrapping a python macro that happens to be mixed case.

gdb/
2013-05-22  Pedro Alves  <palves@redhat.com>

	* python/python-internal.h (gdb_Py_DECREF): Tag with
	"ARI: editCase function".
This commit is contained in:
Pedro Alves 2013-05-22 09:31:44 +00:00
parent ad3d91277b
commit ac90359cdc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-05-22 Pedro Alves <palves@redhat.com>
* python/python-internal.h (gdb_Py_DECREF): Tag with
"ARI: editCase function".
2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
* solib-svr4.c (svr4_free_so): Protect against NULL dereference.

View File

@ -174,7 +174,7 @@ typedef unsigned long gdb_py_ulongest;
Wrap it ourselves, so that callers don't need to care. */
static inline void
gdb_Py_DECREF (void *op)
gdb_Py_DECREF (void *op) /* ARI: editCase function */
{
Py_DECREF (op);
}