diff options
author | Joel Brobecker <brobecker@gnat.com> | 2003-02-28 07:19:32 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2003-02-28 07:19:32 +0000 |
commit | 974e8cede22a3cb1c491897f724df30de6d93155 (patch) | |
tree | a9893defe31c1e77c4a63869a263739678a778be /gdb | |
parent | 7a28f9732af79e301d856eafaa526200505e02ef (diff) | |
download | gdb-974e8cede22a3cb1c491897f724df30de6d93155.zip gdb-974e8cede22a3cb1c491897f724df30de6d93155.tar.gz gdb-974e8cede22a3cb1c491897f724df30de6d93155.tar.bz2 |
* observer.c: Minor comments edits.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/observer.c | 18 |
2 files changed, 12 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b9b5047..d1c6db1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2003-02-27 J. Brobecker <brobecker@gnat.com> + * observer.c: Minor comments edits. + +2003-02-27 J. Brobecker <brobecker@gnat.com> + * observer.h, observer.c: New file. 2003-02-27 Andrew Cagney <cagney@redhat.com> diff --git a/gdb/observer.c b/gdb/observer.c index c331112..92ec48e 100644 --- a/gdb/observer.c +++ b/gdb/observer.c @@ -95,9 +95,9 @@ xfree_observer_list_node (struct observer_list *node) xfree (node); } -/* Attach the callback NOTIFY to a subject represented by its list - of observers LIST. The DATA is also stored, in order for the subject - to provide it back to the observer during a notification. */ +/* Attach the callback NOTIFY to a SUBJECT. The DATA is also stored, + in order for the subject to provide it back to the observer during + a notification. */ static struct observer * generic_observer_attach (struct observer_list **subject, @@ -114,10 +114,9 @@ generic_observer_attach (struct observer_list **subject, return observer_list->observer; } -/* Remove the given OBSERVER from the list of observers that need - to be notified by the subject represented by its LIST of observers. - Once detached, OBSERVER should no longer be used, as it is no longer - valid. */ +/* Remove the given OBSERVER from the SUBJECT. Once detached, OBSERVER + should no longer be used, as it is no longer valid. */ + static void generic_observer_detach (struct observer_list **subject, const struct observer *observer) @@ -145,9 +144,8 @@ generic_observer_detach (struct observer_list **subject, warning ("Failed to detach observer"); } -/* Send a notification to all the observers of a subject represented by - its LIST of observers. ARGS is passed to all observers as an argument - to the notification callback. */ +/* Send a notification to all the observers of SUBJECT. ARGS is passed to + all observers as an argument to the notification callback. */ static void generic_observer_notify (struct observer_list *subject, const void *args) |