rewrite make-target-delegates matching code
authorTom Tromey <tromey@redhat.com>
Tue, 15 Jul 2014 18:08:54 +0000 (12:08 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 23 Jul 2014 16:01:27 +0000 (10:01 -0600)
commita8bdc56b4e36451f197f9522e2bbfcc39c5d90dd
tree3c5b0ce0b7bd4ae1a5a2a9588f1c56e4c182456f
parent91b522404e7eee8b4101bccabc29821792e6a627
rewrite make-target-delegates matching code

This patch rewrites the make-target-delegates matching code a little
bit.  The result is functionally the same (the output has some small
whitespace differences), but the new code is more forgiving regarding
the formatting of target.h.  In particular now there's no need to
ensure that the return type and the method name appear on the same
line.

2014-07-23  Tom Tromey  <tromey@redhat.com>

* make-target-delegates ($ARGS_PART): Match trailing close paren.
($INTRO_PART): Don't match whitespace.
($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
argument matching.
($METHOD): Add $METHOD_TRAILER.
(trim): Rewrite.
(scan_target_h): New sub.
Change main loop not to collect state.
* target-delegates.c: Rebuild.
gdb/ChangeLog
gdb/make-target-delegates
gdb/target-delegates.c
This page took 0.03598 seconds and 4 git commands to generate.