diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-13 16:18:48 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-13 16:18:48 +0000 |
commit | a2fa3109521b2f8a7080f30ab999d9a74b329070 (patch) | |
tree | d47a8f28552fb4513997a78aedbf8e1aed71ba73 | |
parent | 5acf83059e6f7ff2abfad7be86598013db509c6f (diff) | |
download | gcc-a2fa3109521b2f8a7080f30ab999d9a74b329070.tar.gz |
* splay-tree.h: Fix whitespace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126625 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | include/ChangeLog | 3 | ||||
-rw-r--r-- | include/splay-tree.h | 34 |
2 files changed, 17 insertions, 20 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 852d90c2ea0..9700c24fd65 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,8 +1,5 @@ 2007-07-12 Kai Tietz <kai.tietz@onevision.com> - * splay-tree.h (libi_uhostptr_t, libi_shostptr_t): Adjust types - work-a-round whitespace problem in gcc gengtype. - * splay-tree.h (libi_uhostptr_t, libi_shostptr_t): New types, needed for WIN64 when a long is not wide enough for a pointer. (splay_tree_key, splay_tree_value): Use the new types. diff --git a/include/splay-tree.h b/include/splay-tree.h index 7df1a7c7b98..b03c581e0b2 100644 --- a/include/splay-tree.h +++ b/include/splay-tree.h @@ -37,11 +37,11 @@ extern "C" { #include "ansidecl.h" #ifndef _WIN64 -typedef unsigned long int libi_uhostptr_t; -typedef long int libi_shostptr_t; + typedef unsigned long int libi_uhostptr_t; + typedef long int libi_shostptr_t; #else -typedef unsigned long long libi_uhostptr_t; -typedef long long libi_shostptr_t; + typedef unsigned long long libi_uhostptr_t; + typedef long long libi_shostptr_t; #endif #ifndef GTY @@ -118,23 +118,23 @@ struct splay_tree_s GTY(()) splay_tree_allocate_fn allocate; splay_tree_deallocate_fn deallocate; void * GTY((skip)) allocate_data; - }; + typedef struct splay_tree_s *splay_tree; -extern splay_tree splay_tree_new (splay_tree_compare_fn, - splay_tree_delete_key_fn, - splay_tree_delete_value_fn); +extern splay_tree splay_tree_new (splay_tree_compare_fn, + splay_tree_delete_key_fn, + splay_tree_delete_value_fn); extern splay_tree splay_tree_new_with_allocator (splay_tree_compare_fn, - splay_tree_delete_key_fn, - splay_tree_delete_value_fn, - splay_tree_allocate_fn, - splay_tree_deallocate_fn, - void *); -extern void splay_tree_delete (splay_tree); + splay_tree_delete_key_fn, + splay_tree_delete_value_fn, + splay_tree_allocate_fn, + splay_tree_deallocate_fn, + void *); +extern void splay_tree_delete (splay_tree); extern splay_tree_node splay_tree_insert (splay_tree, - splay_tree_key, - splay_tree_value); + splay_tree_key, + splay_tree_value); extern void splay_tree_remove (splay_tree, splay_tree_key); extern splay_tree_node splay_tree_lookup (splay_tree, splay_tree_key); extern splay_tree_node splay_tree_predecessor (splay_tree, splay_tree_key); @@ -144,7 +144,7 @@ extern splay_tree_node splay_tree_min (splay_tree); extern int splay_tree_foreach (splay_tree, splay_tree_foreach_fn, void*); extern int splay_tree_compare_ints (splay_tree_key, splay_tree_key); extern int splay_tree_compare_pointers (splay_tree_key, splay_tree_key); - + #ifdef __cplusplus } #endif /* __cplusplus */ |