X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=include%2Fternary.h;h=40d442e6223e5a12f90fda83c3e7d0f5a322e5ba;hb=cdfbf930b96d5ae51342f34dd180323a8011f8ef;hp=2e0c828503050fb3f2e780956ec4d847d1115bf4;hpb=400ee7e1e22e3915a699f0ff52809cfce44d9b14;p=binutils-gdb.git 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