merge from gcc
This commit is contained in:
		| @@ -1,3 +1,9 @@ | |||||||
|  | 2001-05-07  Zack Weinberg  <zackw@stanford.edu> | ||||||
|  |  | ||||||
|  | 	* demangle.h: Use PARAMS for all prototypes. | ||||||
|  | 	* ternary.h: Use PARAMS for all prototypes.  Use PTR, not void *. | ||||||
|  | 	Make arguments constant where possible. | ||||||
|  |  | ||||||
| 2001-05-07  Mark Mitchell  <mark@codesourcery.com> | 2001-05-07  Mark Mitchell  <mark@codesourcery.com> | ||||||
|  |  | ||||||
| 	* splay-tree.h (splay_tree_max): New function. | 	* splay-tree.h (splay_tree_max): New function. | ||||||
|   | |||||||
| @@ -139,7 +139,8 @@ enum gnu_v3_ctor_kinds { | |||||||
|    in the G++ V3 ABI demangling style.  Specifically, return an `enum |    in the G++ V3 ABI demangling style.  Specifically, return an `enum | ||||||
|    gnu_v3_ctor_kinds' value indicating what kind of constructor |    gnu_v3_ctor_kinds' value indicating what kind of constructor | ||||||
|    it is.  */ |    it is.  */ | ||||||
| extern enum gnu_v3_ctor_kinds is_gnu_v3_mangled_ctor (const char *name); | extern enum gnu_v3_ctor_kinds | ||||||
|  | 	is_gnu_v3_mangled_ctor PARAMS ((const char *name)); | ||||||
|  |  | ||||||
|  |  | ||||||
| enum gnu_v3_dtor_kinds { | enum gnu_v3_dtor_kinds { | ||||||
| @@ -152,6 +153,7 @@ enum gnu_v3_dtor_kinds { | |||||||
|    in the G++ V3 ABI demangling style.  Specifically, return an `enum |    in the G++ V3 ABI demangling style.  Specifically, return an `enum | ||||||
|    gnu_v3_dtor_kinds' value, indicating what kind of destructor |    gnu_v3_dtor_kinds' value, indicating what kind of destructor | ||||||
|    it is.  */ |    it is.  */ | ||||||
| extern enum gnu_v3_dtor_kinds is_gnu_v3_mangled_dtor (const char *name); | extern enum gnu_v3_dtor_kinds | ||||||
|  | 	is_gnu_v3_mangled_dtor PARAMS ((const char *name)); | ||||||
|  |  | ||||||
| #endif	/* DEMANGLE_H */ | #endif	/* DEMANGLE_H */ | ||||||
|   | |||||||
| @@ -38,13 +38,14 @@ ternary_node; | |||||||
|    already there, and replace is 0. |    already there, and replace is 0. | ||||||
|    Otherwise, replaces if it it exists, inserts if it doesn't, and |    Otherwise, replaces if it it exists, inserts if it doesn't, and | ||||||
|    returns the data you passed in. */ |    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.  | /* Delete the ternary search tree rooted at P.  | ||||||
|    Does NOT delete the data you associated with the strings. */ |    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 | /* Search the ternary tree for string S, returning the data associated | ||||||
|    with it if found. */ |    with it if found. */ | ||||||
| void *ternary_search (ternary_tree p, char *s); | PTR ternary_search PARAMS ((const ternary_node *p, const char *s)); | ||||||
| #endif | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user