]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb] convert struct pointer typedefs
authorTom de Vries <tdevries@suse.de>
Mon, 13 Jul 2026 13:06:35 +0000 (15:06 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 13 Jul 2026 13:06:35 +0000 (15:06 +0200)
Convert "typedef struct foo { ... } *bar" to
"struct foo { ... }; using bar = foo *".

Generated by a script written by Claude Code.

Approved-By: Tom Tromey <tom@tromey.com>
gdbserver/notif.h

index dc3164e91cd18985e71e0bbf8b4b90e3cc95e52a..caa2f36f66d48fbe48ba0794e3ca810457bba2e7 100644 (file)
@@ -38,7 +38,7 @@ struct notif_event
 /* A type notification to GDB.  An object of 'struct notif_server'
    represents a type of notification.  */
 
-typedef struct notif_server
+struct notif_server
 {
   /* The name of ack packet, for example, 'vStopped'.  */
   const char *ack_name;
@@ -54,7 +54,8 @@ typedef struct notif_server
 
   /* Write event EVENT to OWN_BUF.  */
   void (*write) (struct notif_event *event, char *own_buf);
-} *notif_server_p;
+};
+using notif_server_p = struct notif_server *;
 
 extern struct notif_server notif_stop;