diff options
author | Doug Evans <dje@google.com> | 2012-04-17 21:24:47 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-04-17 21:24:47 +0000 |
commit | 58d5e2c3ff4b447730a33cde385905bf5f4436c0 (patch) | |
tree | fcf7b0daaf82922b6c4bc489768310934562cea0 /gdb/cleanups.c | |
parent | c27f5738407bad7199f3d532b3648f24508a7fd4 (diff) | |
download | gdb-58d5e2c3ff4b447730a33cde385905bf5f4436c0.zip gdb-58d5e2c3ff4b447730a33cde385905bf5f4436c0.tar.gz gdb-58d5e2c3ff4b447730a33cde385905bf5f4436c0.tar.bz2 |
* cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
* cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
(discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
Diffstat (limited to 'gdb/cleanups.c')
-rw-r--r-- | gdb/cleanups.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/cleanups.c b/gdb/cleanups.c index 9d893ac..988b92e 100644 --- a/gdb/cleanups.c +++ b/gdb/cleanups.c @@ -37,7 +37,7 @@ static struct cleanup *final_cleanup_chain; The result is a pointer to the previous chain pointer to be passed later to do_cleanups or discard_cleanups. */ -struct cleanup * +static struct cleanup * make_my_cleanup2 (struct cleanup **pmy_chain, make_cleanup_ftype *function, void *arg, void (*free_arg) (void *)) { @@ -62,7 +62,7 @@ make_my_cleanup2 (struct cleanup **pmy_chain, make_cleanup_ftype *function, The result is a pointer to the previous chain pointer to be passed later to do_cleanups or discard_cleanups. */ -struct cleanup * +static struct cleanup * make_my_cleanup (struct cleanup **pmy_chain, make_cleanup_ftype *function, void *arg) { @@ -143,7 +143,7 @@ do_final_cleanups (struct cleanup *old_chain) OLD_CHAIN is the result of a "make" cleanup routine. Cleanups are discarded until we get back to the old end of the chain. */ -void +static void discard_my_cleanups (struct cleanup **pmy_chain, struct cleanup *old_chain) { @@ -180,7 +180,7 @@ discard_final_cleanups (struct cleanup *old_chain) PMY_CHAIN is a pointer to either cleanup_chain or final_cleanup_chain. The chain is emptied and the result is a pointer to the old chain. */ -struct cleanup * +static struct cleanup * save_my_cleanups (struct cleanup **pmy_chain) { struct cleanup *old_chain = *pmy_chain; @@ -210,7 +210,7 @@ save_final_cleanups (void) PMY_CHAIN is a pointer to either cleanup_chain or final_cleanup_chain. The chain is restored from CHAIN. */ -void +static void restore_my_cleanups (struct cleanup **pmy_chain, struct cleanup *chain) { *pmy_chain = chain; |