Fix ARI warning about function names in first column.
authorPierre Muller <muller@sourceware.org>
Mon, 14 Mar 2011 16:55:04 +0000 (16:55 +0000)
committerPierre Muller <muller@sourceware.org>
Mon, 14 Mar 2011 16:55:04 +0000 (16:55 +0000)
Put prototype declaration on same line as return type.
* objc-exp.y: Ditto.
* p-exp.y: Ditto.
* python/py-stopevent.h: Ditto.
For long function names, split parameters to allow function name
on same line as return type.
* solib-pa64.c: Ditto.
* varobj.c: Ditto.
* varobj.h: Ditto.
For long function declaration, use single line.
* hppa-tdep.h: Ditto.
* inferior.h: Ditto.

gdb/ChangeLog
gdb/hppa-tdep.h
gdb/inferior.h
gdb/objc-exp.y
gdb/p-exp.y
gdb/python/py-stopevent.h
gdb/solib-pa64.c
gdb/varobj.c
gdb/varobj.h

index 4662422..32294eb 100644 (file)
@@ -1,3 +1,19 @@
+2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Fix ARI warning about function names in first column.
+       Put prototype declaration on same line as return type.
+       * objc-exp.y: Ditto.
+       * p-exp.y: Ditto.
+       * python/py-stopevent.h: Ditto.
+       For long function names, split parameters to
+       allow function name on same line as return type.
+       * solib-pa64.c: Ditto.
+       * varobj.c: Ditto.
+       * varobj.h: Ditto.
+       For long function declaration, use single line.
+       * hppa-tdep.h: Ditto.
+       * inferior.h: Ditto.
+
 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
 
        * python/python.h: Declare gdbpy_should_stop and
index 4afb030..f961258 100644 (file)
@@ -240,8 +240,7 @@ extern struct minimal_symbol *
   hppa_lookup_stub_minimal_symbol (const char *name,
                                    enum unwind_stub_types stub_type);
 
-extern struct hppa_objfile_private *
-hppa_init_objfile_priv_data (struct objfile *objfile);
+extern struct hppa_objfile_private * hppa_init_objfile_priv_data (struct objfile *objfile);
 
 extern int hppa_in_solib_call_trampoline (struct gdbarch *gdbarch,
                                          CORE_ADDR pc, char *name);
index 13a06d9..9f33ae8 100644 (file)
@@ -366,8 +366,7 @@ extern int debug_displaced;
 void displaced_step_dump_bytes (struct ui_file *file,
                                 const gdb_byte *buf, size_t len);
 
-struct displaced_step_closure*
-get_displaced_step_closure_by_addr (CORE_ADDR addr);
+struct displaced_step_closure* get_displaced_step_closure_by_addr (CORE_ADDR addr);
 \f
 /* Possible values for gdbarch_call_dummy_location.  */
 #define ON_STACK 1
index c1e2632..d2f193a 100644 (file)
 #define        YYDEBUG 0               /* Default to no yydebug support.  */
 #endif
 
-int
-yyparse (void);
+int yyparse (void);
 
-static int
-yylex (void);
+static int yylex (void);
 
-void
-yyerror (char *);
+void yyerror (char *);
 
 %}
 
@@ -150,8 +147,7 @@ yyerror (char *);
 
 %{
 /* YYSTYPE gets defined by %union.  */
-static int
-parse_number (char *, int, int, YYSTYPE *);
+static int parse_number (char *, int, int, YYSTYPE *);
 %}
 
 %type <voidval> exp exp1 type_exp start variable qualified_name lcurly
index e0dba8f..183f001 100644 (file)
@@ -117,8 +117,7 @@ int yyparse (void);
 
 static int yylex (void);
 
-void
-yyerror (char *);
+void yyerror (char *);
 
 static char * uptok (char *, int);
 %}
@@ -154,8 +153,7 @@ static char * uptok (char *, int);
 
 %{
 /* YYSTYPE gets defined by %union */
-static int
-parse_number (char *, int, int, YYSTYPE *);
+static int parse_number (char *, int, int, YYSTYPE *);
 
 static struct type *current_type;
 static struct internalvar *intvar;
index 690cbbd..52f3511 100644 (file)
@@ -28,10 +28,8 @@ extern void stop_evpy_dealloc (PyObject *self);
 extern int emit_stop_event (struct bpstats *bs,
                             enum target_signal stop_signal);
 
-extern PyObject *
-create_breakpoint_event_object (PyObject *breakpoint);
+extern PyObject *create_breakpoint_event_object (PyObject *breakpoint);
 
-extern PyObject *
-create_signal_event_object (enum target_signal stop_signal);
+extern PyObject *create_signal_event_object (enum target_signal stop_signal);
 
 #endif /* GDB_PY_STOPEVENT_H */
index f7d7b6f..cd38728 100644 (file)
@@ -76,8 +76,8 @@ dld_cache_t;
 
 static dld_cache_t dld_cache;
 
-static int
-read_dynamic_info (asection *dyninfo_sect, dld_cache_t *dld_cache_p);
+static int read_dynamic_info (asection *dyninfo_sect,
+                             dld_cache_t *dld_cache_p);
 
 static void
 pa64_relocate_section_addresses (struct so_list *so,
index 12b0b16..103ee99 100644 (file)
@@ -296,8 +296,9 @@ static int is_root_p (struct varobj *var);
 
 #if HAVE_PYTHON
 
-static struct varobj *
-varobj_add_child (struct varobj *var, const char *name, struct value *value);
+static struct varobj * varobj_add_child (struct varobj *var,
+                                        const char *name,
+                                        struct value *value);
 
 #endif /* HAVE_PYTHON */
 
index 81ba05e..ef984c8 100644 (file)
@@ -167,8 +167,8 @@ extern int varobj_editable_p (struct varobj *var);
 
 extern int varobj_floating_p (struct varobj *var);
 
-extern void 
-varobj_set_visualizer (struct varobj *var, const char *visualizer);
+extern void varobj_set_visualizer (struct varobj *var,
+                                  const char *visualizer);
 
 extern void varobj_enable_pretty_printing (void);