public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-python:  * python/python-type.c (type_object_methods): Remove forward
@ 2008-10-20  0:30 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2008-10-20  0:30 UTC (permalink / raw)
  To: archer-commits

The branch, archer-tromey-python has been updated
       via  98e466efeba53fac4689c80fa431a4211893313f (commit)
       via  27cc01867a0119417830b44cef97a9eb627a6c0a (commit)
      from  4c863e3015b0b821d34b5c63f7569ff196e4bb7a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 98e466efeba53fac4689c80fa431a4211893313f
Author: Tom Tromey <tromey@redhat.com>
Date:   Sun Oct 19 18:30:02 2008 -0600

    	* python/python-type.c (type_object_methods): Remove forward
    	declarations.
    	(type_object_methods, type_object_type): Move to bottom of file.
    	* python/python-symtab.c: Remove forward declarations.
    	(symtab_object_methods, symtab_object_type)
    	(sal_object_getseters, sal_object_methods, sal_object_type): Move
    	to bottom of file.
    	* python/python-symbol.c: Remove forward declarations.
    	(symbol_object_methods, symbol_object_type): Move to bottom of
    	file.
    	* python/python-param.c: Remove forward declarations.
    	(parmpy_object_type): Move to bottom of file.
    	* python/python-function.c (fnpy_object_type): Move to bottom of
    	file.
    	* python/python-frame.c: Remove forward declarations.
    	(frame_object_methods, frame_object_type): Move to bottom of
    	file.
    	(frame_object_to_frame_info): Move earlier.
    	* python/python-cmd.c: Remove forward declarations.
    	(cmdpy_object_methods, cmdpy_object_type): Move to bottom of
    	file.
    	* python/python-breakpoint.c: Remove forward declarations.
    	(breakpoint_object_methods, breakpoint_object_type): Move to
    	bottom of file.
    	* python/python-block.c: Remove forward declarations.
    	(block_object_methods, block_object_type)
    	(block_syms_iterator_object_type): Move to bottom of file.

commit 27cc01867a0119417830b44cef97a9eb627a6c0a
Author: Tom Tromey <tromey@redhat.com>
Date:   Sun Oct 19 18:16:05 2008 -0600

    2008-10-19  Tom Tromey  <tromey@redhat.com>
    
    	* python/python-value.c (valpy_length): Revert return type to
    	Py_ssize_t.
    
    2008-10-19  Pedro Alves  <pedro@codesourcery.com>
    
    	* python/python-value.c (value_object_methods)
    	(value_object_as_number, value_object_as_mapping): Move to bottom
    	of file.
    	(valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
    	(valpy_setitem, valpy_str, valpy_add, valpy_subtract)
    	(valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
    	(valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
    	(valpy_richcompare, valpy_dereference): Don't forward-declare.
    	(valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                  |   47 ++++++++++
 gdb/python/python-block.c      |  169 +++++++++++++++++-------------------
 gdb/python/python-breakpoint.c |  171 +++++++++++++++++--------------------
 gdb/python/python-cmd.c        |   87 ++++++++++---------
 gdb/python/python-frame.c      |  154 +++++++++++++++------------------
 gdb/python/python-function.c   |   68 ++++++++-------
 gdb/python/python-param.c      |   71 ++++++++--------
 gdb/python/python-symbol.c     |  111 +++++++++++-------------
 gdb/python/python-symtab.c     |  187 +++++++++++++++++++--------------------
 gdb/python/python-type.c       |  103 +++++++++++------------
 gdb/python/python-value.c      |  173 ++++++++++++++++---------------------
 11 files changed, 660 insertions(+), 681 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 80691bb..82ba8be 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,50 @@
+2008-10-19  Tom Tromey  <tromey@redhat.com>
+
+	* python/python-type.c (type_object_methods): Remove forward
+	declarations.
+	(type_object_methods, type_object_type): Move to bottom of file.
+	* python/python-symtab.c: Remove forward declarations.
+	(symtab_object_methods, symtab_object_type)
+	(sal_object_getseters, sal_object_methods, sal_object_type): Move
+	to bottom of file.
+	* python/python-symbol.c: Remove forward declarations.
+	(symbol_object_methods, symbol_object_type): Move to bottom of
+	file.
+	* python/python-param.c: Remove forward declarations.
+	(parmpy_object_type): Move to bottom of file.
+	* python/python-function.c (fnpy_object_type): Move to bottom of
+	file.
+	* python/python-frame.c: Remove forward declarations.
+	(frame_object_methods, frame_object_type): Move to bottom of
+	file.
+	(frame_object_to_frame_info): Move earlier.
+	* python/python-cmd.c: Remove forward declarations.
+	(cmdpy_object_methods, cmdpy_object_type): Move to bottom of
+	file.
+	* python/python-breakpoint.c: Remove forward declarations.
+	(breakpoint_object_methods, breakpoint_object_type): Move to
+	bottom of file.
+	* python/python-block.c: Remove forward declarations.
+	(block_object_methods, block_object_type)
+	(block_syms_iterator_object_type): Move to bottom of file.
+
+2008-10-19  Tom Tromey  <tromey@redhat.com>
+
+	* python/python-value.c (valpy_length): Revert return type to
+	Py_ssize_t.
+
+2008-10-19  Pedro Alves  <pedro@codesourcery.com>
+
+	* python/python-value.c (value_object_methods)
+	(value_object_as_number, value_object_as_mapping): Move to bottom
+	of file.
+	(valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
+	(valpy_setitem, valpy_str, valpy_add, valpy_subtract)
+	(valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
+	(valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
+	(valpy_richcompare, valpy_dereference): Don't forward-declare.
+	(valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
+
 2008-10-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
 	* value.c (value_from_contents_and_address): Don't
diff --git a/gdb/python/python-block.c b/gdb/python/python-block.c
index 3154eb4..0629ffa 100644
--- a/gdb/python/python-block.c
+++ b/gdb/python/python-block.c
@@ -28,59 +28,6 @@ typedef struct {
   struct block *block;
 } block_object;
 
-static PyObject *blpy_iter (PyObject *self);
-static PyObject *blpy_itersymbols (PyObject *self, PyObject *args);
-static PyObject *blpy_get_start (PyObject *self, PyObject *args);
-static PyObject *blpy_get_end (PyObject *self, PyObject *args);
-static PyObject *blpy_get_function (PyObject *self, PyObject *args);
-static PyObject *blpy_get_superblock (PyObject *self, PyObject *args);
-
-static PyMethodDef block_object_methods[] = {
-  { "itersymbols", blpy_itersymbols, METH_NOARGS,
-    "Return an iterator to walk through the symbols in the block." },
-  { "get_start", blpy_get_start, METH_NOARGS,
-    "Return the start address of this block." },
-  { "get_end", blpy_get_end, METH_NOARGS,
-    "Return the end address of this block." },
-  { "get_function", blpy_get_function, METH_NOARGS,
-    "Return the symbol that names this block, or None." },
-  { "get_superblock", blpy_get_end, METH_NOARGS,
-    "Return the block containing this block, or None." },
-  {NULL}  /* Sentinel */
-};
-
-PyTypeObject block_object_type = {
-  PyObject_HEAD_INIT (NULL)
-  0,				  /*ob_size*/
-  "gdb.Block",			  /*tp_name*/
-  sizeof (block_object),	  /*tp_basicsize*/
-  0,				  /*tp_itemsize*/
-  0,				  /*tp_dealloc*/
-  0,				  /*tp_print*/
-  0,				  /*tp_getattr*/
-  0,				  /*tp_setattr*/
-  0,				  /*tp_compare*/
-  0,				  /*tp_repr*/
-  0,				  /*tp_as_number*/
-  0,				  /*tp_as_sequence*/
-  0,				  /*tp_as_mapping*/
-  0,				  /*tp_hash */
-  0,				  /*tp_call*/
-  0,				  /*tp_str*/
-  0,				  /*tp_getattro*/
-  0,				  /*tp_setattro*/
-  0,				  /*tp_as_buffer*/
-  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_ITER,  /*tp_flags*/
-  "GDB block object",		  /* tp_doc */
-  0,				  /* tp_traverse */
-  0,				  /* tp_clear */
-  0,				  /* tp_richcompare */
-  0,				  /* tp_weaklistoffset */
-  blpy_iter,			  /* tp_iter */
-  0,				  /* tp_iternext */
-  block_object_methods		  /* tp_methods */
-};
-
 typedef struct {
   PyObject_HEAD
   struct dictionary *dict;
@@ -88,41 +35,7 @@ typedef struct {
   int initialized_p;
 } block_syms_iterator_object;
 
-static PyObject *blpy_block_syms_iter (PyObject *self);
-static PyObject *blpy_block_syms_iternext (PyObject *self);
-
-static PyTypeObject block_syms_iterator_object_type = {
-  PyObject_HEAD_INIT (NULL)
-  0,				  /*ob_size*/
-  "gdb.BlockIterator",		  /*tp_name*/
-  sizeof (block_syms_iterator_object),	      /*tp_basicsize*/
-  0,				  /*tp_itemsize*/
-  0,				  /*tp_dealloc*/
-  0,				  /*tp_print*/
-  0,				  /*tp_getattr*/
-  0,				  /*tp_setattr*/
-  0,				  /*tp_compare*/
-  0,				  /*tp_repr*/
-  0,				  /*tp_as_number*/
-  0,				  /*tp_as_sequence*/
-  0,				  /*tp_as_mapping*/
-  0,				  /*tp_hash */
-  0,				  /*tp_call*/
-  0,				  /*tp_str*/
-  0,				  /*tp_getattro*/
-  0,				  /*tp_setattro*/
-  0,				  /*tp_as_buffer*/
-  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_ITER,  /*tp_flags*/
-  "GDB block syms iterator object",	      /* tp_doc */
-  0,				  /* tp_traverse */
-  0,				  /* tp_clear */
-  0,				  /* tp_richcompare */
-  0,				  /* tp_weaklistoffset */
-  blpy_block_syms_iter,		  /* tp_iter */
-  blpy_block_syms_iternext,	  /* tp_iternext */
-  0				  /* tp_methods */
-};
-
+static PyTypeObject block_syms_iterator_object_type;
 
 static PyObject *
 blpy_iter (PyObject *self)
@@ -258,3 +171,83 @@ gdbpy_initialize_blocks (void)
   PyModule_AddObject (gdb_module, "BlockIterator",
 		      (PyObject *) &block_syms_iterator_object_type);
 }
+
+\f
+
+static PyMethodDef block_object_methods[] = {
+  { "itersymbols", blpy_itersymbols, METH_NOARGS,
+    "Return an iterator to walk through the symbols in the block." },
+  { "get_start", blpy_get_start, METH_NOARGS,
+    "Return the start address of this block." },
+  { "get_end", blpy_get_end, METH_NOARGS,
+    "Return the end address of this block." },
+  { "get_function", blpy_get_function, METH_NOARGS,
+    "Return the symbol that names this block, or None." },
+  { "get_superblock", blpy_get_end, METH_NOARGS,
+    "Return the block containing this block, or None." },
+  {NULL}  /* Sentinel */
+};
+
+PyTypeObject block_object_type = {
+  PyObject_HEAD_INIT (NULL)
+  0,				  /*ob_size*/
+  "gdb.Block",			  /*tp_name*/
+  sizeof (block_object),	  /*tp_basicsize*/
+  0,				  /*tp_itemsize*/
+  0,				  /*tp_dealloc*/
+  0,				  /*tp_print*/
+  0,				  /*tp_getattr*/
+  0,				  /*tp_setattr*/
+  0,				  /*tp_compare*/
+  0,				  /*tp_repr*/
+  0,				  /*tp_as_number*/
+  0,				  /*tp_as_sequence*/
+  0,				  /*tp_as_mapping*/
+  0,				  /*tp_hash */
+  0,				  /*tp_call*/
+  0,				  /*tp_str*/
+  0,				  /*tp_getattro*/
+  0,				  /*tp_setattro*/
+  0,				  /*tp_as_buffer*/
+  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_ITER,  /*tp_flags*/
+  "GDB block object",		  /* tp_doc */
+  0,				  /* tp_traverse */
+  0,				  /* tp_clear */
+  0,				  /* tp_richcompare */
+  0,				  /* tp_weaklistoffset */
+  blpy_iter,			  /* tp_iter */
+  0,				  /* tp_iternext */
+  block_object_methods		  /* tp_methods */
+};
+
+static PyTypeObject block_syms_iterator_object_type = {
+  PyObject_HEAD_INIT (NULL)
+  0,				  /*ob_size*/
+  "gdb.BlockIterator",		  /*tp_name*/
+  sizeof (block_syms_iterator_object),	      /*tp_basicsize*/
+  0,				  /*tp_itemsize*/
+  0,				  /*tp_dealloc*/
+  0,				  /*tp_print*/
+  0,				  /*tp_getattr*/
+  0,				  /*tp_setattr*/
+  0,				  /*tp_compare*/
+  0,				  /*tp_repr*/
+  0,				  /*tp_as_number*/
+  0,				  /*tp_as_sequence*/
+  0,				  /*tp_as_mapping*/
+  0,				  /*tp_hash */
+  0,				  /*tp_call*/
+  0,				  /*tp_str*/
+  0,				  /*tp_getattro*/
+  0,				  /*tp_setattro*/
+  0,				  /*tp_as_buffer*/
+  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_ITER,  /*tp_flags*/
+  "GDB block syms iterator object",	      /* tp_doc */
+  0,				  /* tp_traverse */
+  0,				  /* tp_clear */
+  0,				  /* tp_richcompare */
+  0,				  /* tp_weaklistoffset */
+  blpy_block_syms_iter,		  /* tp_iter */
+  blpy_block_syms_iternext,	  /* tp_iternext */
+  0				  /* tp_methods */
+};
diff --git a/gdb/python/python-breakpoint.c b/gdb/python/python-breakpoint.c
index 23ea6ba..9aa3546 100644
--- a/gdb/python/python-breakpoint.c
+++ b/gdb/python/python-breakpoint.c
@@ -34,22 +34,7 @@ extern struct breakpoint *breakpoint_chain;
 
 typedef struct breakpoint_object breakpoint_object;
 
-static PyObject *bppy_is_valid (PyObject *, PyObject *);
-static PyObject *bppy_is_enabled (PyObject *, PyObject *);
-static PyObject *bppy_is_silent (PyObject *, PyObject *);
-static PyObject *bppy_set_enabled (PyObject *, PyObject *);
-static PyObject *bppy_set_silent (PyObject *, PyObject *);
-static PyObject *bppy_set_thread (PyObject *, PyObject *);
-static PyObject *bppy_set_ignore_count (PyObject *, PyObject *);
-static PyObject *bppy_clear_hit_count (PyObject *, PyObject *);
-static PyObject *bppy_get_location (PyObject *, PyObject *);
-static PyObject *bppy_get_condition (PyObject *, PyObject *);
-static PyObject *bppy_get_commands (PyObject *, PyObject *);
-static PyObject *bppy_get_number (PyObject *, PyObject *);
-static PyObject *bppy_get_thread (PyObject *, PyObject *);
-static PyObject *bppy_get_hit_count (PyObject *, PyObject *);
-static PyObject *bppy_get_ignore_count (PyObject *, PyObject *);
-
+static PyTypeObject breakpoint_object_type;
 
 /* A dynamically allocated vector of breakpoint objects.  Each
    breakpoint has a number.  A breakpoint is valid if its slot in this
@@ -96,82 +81,6 @@ struct breakpoint_object
 			     (Breakpoint)->number);			\
     } while (0)
 
-static PyMethodDef breakpoint_object_methods[] =
-{
-  { "is_valid", bppy_is_valid, METH_NOARGS,
-    "Return true if this breakpoint is valid, false if not." },
-  { "is_enabled", bppy_is_enabled, METH_NOARGS,
-    "Return true if this breakpoint is enabled, false if disabled." },
-  { "is_silent", bppy_is_silent, METH_NOARGS,
-    "Return true if this breakpoint is silent, false if verbose." },
-
-  { "set_enabled", bppy_set_enabled, METH_O,
-    "Enable or disable this breakpoint" },
-  { "set_silent", bppy_set_silent, METH_O,
-    "Make this breakpoint quiet or verbose" },
-  { "set_thread", bppy_set_thread, METH_O,
-    "Set the thread ID for this breakpoint.\n\
-If the argument is a thread ID, make this a thread-specific breakpoint.\n\
-If the argument is None, make this breakpoint not thread-specific.\n\
-Any other argument is an error." },
-  { "set_ignore_count", bppy_set_ignore_count, METH_O,
-    "Set the ignore count for this breakpoint" },
-  { "clear_hit_count", bppy_set_ignore_count, METH_NOARGS,
-    "Set the hit count for this breakpoint to zero" },
-
-  { "get_location", bppy_get_location, METH_NOARGS,
-    "Return the location of this breakpoint, as specified by the user"},
-  { "get_condition", bppy_get_condition, METH_NOARGS,
-    "Return the condition of this breakpoint, as specified by the user.\n\
-Returns None if no condition set."},
-  { "get_commands", bppy_get_commands, METH_NOARGS,
-    "Return the commands of this breakpoint, as specified by the user"},
-  { "get_number", bppy_get_number, METH_NOARGS,
-    "Return this breakpoint's number." },
-  { "get_thread", bppy_get_thread, METH_NOARGS,
-    "For a thread-specific breakpoint, return the thread ID.\n\
-Otherwise, return None." },
-  { "get_hit_count", bppy_get_hit_count, METH_NOARGS,
-    "Return the number of times this breakpoint has been hit." },
-  { "get_ignore_count", bppy_get_ignore_count, METH_NOARGS,
-    "Return the number of times this breakpoint should be automatically continued." },
-
-  { 0 }
-};
-
-static PyTypeObject breakpoint_object_type =
-{
-  PyObject_HEAD_INIT (NULL)
-  0,				  /*ob_size*/
-  "gdb.Breakpoint",		  /*tp_name*/
-  sizeof (breakpoint_object),	  /*tp_basicsize*/
-  0,				  /*tp_itemsize*/
-  0,				  /*tp_dealloc*/
-  0,				  /*tp_print*/
-  0,				  /*tp_getattr*/
-  0,				  /*tp_setattr*/
-  0,				  /*tp_compare*/
-  0,				  /*tp_repr*/
-  0,				  /*tp_as_number*/
-  0,				  /*tp_as_sequence*/
-  0,				  /*tp_as_mapping*/
-  0,				  /*tp_hash */
-  0,				  /*tp_call*/
-  0,				  /*tp_str*/
-  0,				  /*tp_getattro*/
-  0,				  /*tp_setattro*/
-  0,				  /*tp_as_buffer*/
-  Py_TPFLAGS_DEFAULT,		  /*tp_flags*/
-  "GDB breakpoint object",	  /* tp_doc */
-  0,				  /* tp_traverse */
-  0,				  /* tp_clear */
-  0,				  /* tp_richcompare */
-  0,				  /* tp_weaklistoffset */
-  0,				  /* tp_iter */
-  0,				  /* tp_iternext */
-  breakpoint_object_methods	  /* tp_methods */
-};
-
 /* Python function which checks the validity of a breakpoint object.  */
 static PyObject *
 bppy_is_valid (PyObject *self, PyObject *args)
@@ -563,3 +472,81 @@ gdbpy_initialize_breakpoints (void)
   observer_attach_breakpoint_created (gdbpy_breakpoint_created);
   observer_attach_breakpoint_deleted (gdbpy_breakpoint_deleted);
 }
+
+\f
+
+static PyMethodDef breakpoint_object_methods[] =
+{
+  { "is_valid", bppy_is_valid, METH_NOARGS,
+    "Return true if this breakpoint is valid, false if not." },
+  { "is_enabled", bppy_is_enabled, METH_NOARGS,
+    "Return true if this breakpoint is enabled, false if disabled." },
+  { "is_silent", bppy_is_silent, METH_NOARGS,
+    "Return true if this breakpoint is silent, false if verbose." },
+
+  { "set_enabled", bppy_set_enabled, METH_O,
+    "Enable or disable this breakpoint" },
+  { "set_silent", bppy_set_silent, METH_O,
+    "Make this breakpoint quiet or verbose" },
+  { "set_thread", bppy_set_thread, METH_O,
+    "Set the thread ID for this breakpoint.\n\
+If the argument is a thread ID, make this a thread-specific breakpoint.\n\
+If the argument is None, make this breakpoint not thread-specific.\n\
+Any other argument is an error." },
+  { "set_ignore_count", bppy_set_ignore_count, METH_O,
+    "Set the ignore count for this breakpoint" },
+  { "clear_hit_count", bppy_set_ignore_count, METH_NOARGS,
+    "Set the hit count for this breakpoint to zero" },
+
+  { "get_location", bppy_get_location, METH_NOARGS,
+    "Return the location of this breakpoint, as specified by the user"},
+  { "get_condition", bppy_get_condition, METH_NOARGS,
+    "Return the condition of this breakpoint, as specified by the user.\n\
+Returns None if no condition set."},
+  { "get_commands", bppy_get_commands, METH_NOARGS,
+    "Return the commands of this breakpoint, as specified by the user"},
+  { "get_number", bppy_get_number, METH_NOARGS,
+    "Return this breakpoint's number." },
+  { "get_thread", bppy_get_thread, METH_NOARGS,
+    "For a thread-specific breakpoint, return the thread ID.\n\
+Otherwise, return None." },
+  { "get_hit_count", bppy_get_hit_count, METH_NOARGS,
+    "Return the number of times this breakpoint has been hit." },
+  { "get_ignore_count", bppy_get_ignore_count, METH_NOARGS,
+    "Return the number of times this breakpoint should be automatically continued." },
+
+  { 0 }
+};
+
+static PyTypeObject breakpoint_object_type =
+{
+  PyObject_HEAD_INIT (NULL)
+  0,				  /*ob_size*/
+  "gdb.Breakpoint",		  /*tp_name*/
+  sizeof (breakpoint_object),	  /*tp_basicsize*/
+  0,				  /*tp_itemsize*/
+  0,				  /*tp_dealloc*/
+  0,				  /*tp_print*/
+  0,				  /*tp_getattr*/
+  0,				  /*tp_setattr*/
+  0,				  /*tp_compare*/
+  0,				  /*tp_repr*/
+  0,				  /*tp_as_number*/
+  0,				  /*tp_as_sequence*/
+  0,				  /*tp_as_mapping*/
+  0,				  /*tp_hash */
+  0,				  /*tp_call*/
+  0,				  /*tp_str*/
+  0,				  /*tp_getattro*/
+  0,				  /*tp_setattro*/
+  0,				  /*tp_as_buffer*/
+  Py_TPFLAGS_DEFAULT,		  /*tp_flags*/
+  "GDB breakpoint object",	  /* tp_doc */
+  0,				  /* tp_traverse */
+  0,				  /* tp_clear */
+  0,				  /* tp_richcompare */
+  0,				  /* tp_weaklistoffset */
+  0,				  /* tp_iter */
+  0,				  /* tp_iternext */
+  breakpoint_object_methods	  /* tp_methods */
+};
diff --git a/gdb/python/python-cmd.c b/gdb/python/python-cmd.c
index 2b922dd..c628623 100644
--- a/gdb/python/python-cmd.c
+++ b/gdb/python/python-cmd.c
@@ -60,49 +60,7 @@ struct cmdpy_object
 
 typedef struct cmdpy_object cmdpy_object;
 
-static PyObject *cmdpy_dont_repeat (PyObject *self, PyObject *args);
-
-static PyMethodDef cmdpy_object_methods[] =
-{
-  { "dont_repeat", cmdpy_dont_repeat, METH_NOARGS,
-    "Prevent command repetition when user enters empty line." },
-
-  { 0 }
-};
-
-static PyTypeObject cmdpy_object_type =
-{
-  PyObject_HEAD_INIT (NULL)
-  0,				  /*ob_size*/
-  "gdb.Command",		  /*tp_name*/
-  sizeof (cmdpy_object),	  /*tp_basicsize*/
-  0,				  /*tp_itemsize*/
-  0,				  /*tp_dealloc*/
-  0,				  /*tp_print*/
-  0,				  /*tp_getattr*/
-  0,				  /*tp_setattr*/
-  0,				  /*tp_compare*/
-  0,				  /*tp_repr*/
-  0,				  /*tp_as_number*/
-  0,				  /*tp_as_sequence*/
-  0,				  /*tp_as_mapping*/
-  0,				  /*tp_hash */
-  0,				  /*tp_call*/
-  0,				  /*tp_str*/
-  0,				  /*tp_getattro*/
-  0,				  /*tp_setattro*/
-  0,				  /*tp_as_buffer*/
-  Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/
-  "GDB command object",		  /* tp_doc */
-  0,				  /* tp_traverse */
-  0,				  /* tp_clear */
-  0,				  /* tp_richcompare */
-  0,				  /* tp_weaklistoffset */
-  0,				  /* tp_iter */
-  0,				  /* tp_iternext */
-  cmdpy_object_methods		  /* tp_methods */
-};
-
+static PyTypeObject cmdpy_object_type;
 
 /* Constants used by this module.  */
 static PyObject *invoke_cst;
@@ -498,3 +456,46 @@ gdbpy_initialize_commands (void)
   invoke_cst = PyString_FromString ("invoke");
   complete_cst = PyString_FromString ("complete");
 }
+
+\f


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-20  0:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-20  0:30 [SCM] archer-tromey-python: * python/python-type.c (type_object_methods): Remove forward tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).