diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-08 06:13:58 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-08 06:13:58 +0000 |
commit | e5f55ef4f5d1456aa8b751e34974b8c023098fe7 (patch) | |
tree | cb279795efc4e5b734fb92e5aa50763824cde776 /include/ternary.h | |
parent | 535df215e09404bac7a2e1956187e0eeedd4a436 (diff) | |
download | gcc-e5f55ef4f5d1456aa8b751e34974b8c023098fe7.tar.gz |
* cp-demangle.c (demangle_v3_with_details,
is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
function definition.
* ternary.c: Use K+R style function definitions. Use PTR, not
void *. Make arguments constant where possible.
* demangle.h: Use PARAMS for all prototypes.
* ternary.h: Use PARAMS for all prototypes. Use PTR, not void *.
Make arguments constant where possible.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/ternary.h')
-rw-r--r-- | include/ternary.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/ternary.h b/include/ternary.h index 2e0c8285030..40d442e6223 100644 --- a/include/ternary.h +++ b/include/ternary.h @@ -38,13 +38,14 @@ ternary_node; already there, and replace is 0. Otherwise, replaces if it it exists, inserts if it doesn't, and returns the data you passed in. */ -void *ternary_insert (ternary_tree *p, char *s, void *data, int replace); +PTR ternary_insert PARAMS ((ternary_tree *p, const char *s, + PTR data, int replace)); /* Delete the ternary search tree rooted at P. Does NOT delete the data you associated with the strings. */ -void ternary_cleanup (ternary_tree p); +void ternary_cleanup PARAMS ((ternary_tree p)); /* Search the ternary tree for string S, returning the data associated with it if found. */ -void *ternary_search (ternary_tree p, char *s); +PTR ternary_search PARAMS ((const ternary_node *p, const char *s)); #endif |