Split rank_one_type_parm_complex from rank_one_type
[deliverable/binutils-gdb.git] / gdb / registry.h
index b3d1b552696087ef4da525d438e15a43861327ad..3881e29b54fcb95fa7edce92e3efc4febed64759 100644 (file)
@@ -1,6 +1,6 @@
 /* Macros for general registry objects.
 
-   Copyright (C) 2011-2013 Free Software Foundation, Inc.
+   Copyright (C) 2011-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
    
    - register_TAG_data_with_cleanup(TAG, SAVE, FREE)
    Get a new key for the container type TAG.
-   SAVE and FREE are defined as void (*) (struct TAG *, void *)
-   When the container is destroyed, first all registered SAVE
+   SAVE and FREE are defined as void (*) (struct TAG *object, void *data)
+   When the container object OBJECT is destroyed, first all registered SAVE
    functions are called.
    Then all FREE functions are called.
-   Either or both may be NULL.
+   Either or both may be NULL.  DATA is the data associated with the
+   container object OBJECT.
    
    - clear_TAG_data(TAG, OBJECT)
    Clear all the data associated with OBJECT.  Should be called by the
@@ -157,8 +158,6 @@ const struct TAG ## _data *                                         \
 register_ ## TAG ## _data_with_cleanup (void (*save) (struct TAG *, void *), \
                                        void (*free) (struct TAG *, void *)) \
 {                                                                      \
-  struct registry_data_registration **curr;                            \
-                                                                       \
   return (struct TAG ## _data *)                                       \
     register_data_with_cleanup (&TAG ## _data_registry,                        \
                                (registry_data_callback) save,          \
@@ -185,8 +184,6 @@ TAG ## registry_callback_adaptor (registry_data_callback func,              \
                                  void *data)                           \
 {                                                                      \
   struct TAG *tagged_container = (struct TAG *) container;             \
-  struct registry_fields *rdata                                                \
-    = &ACCESS (tagged_container)->registry_data;                       \
                                                                        \
   registry_ ## TAG ## _callback tagged_func                            \
     = (registry_ ## TAG ## _callback) func;                            \
This page took 0.024736 seconds and 4 git commands to generate.