X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fregistry.h;h=cb5d0c384de2e1ff783ea0f7f953f77725319034;hb=908fa2aaede2b3d1c33d167116101c2152e30616;hp=062a500936d173ec8ef17170e868d859dbce9915;hpb=aa0fbdd82c86c683f6d2bf39dcc9dedfc9c7a8d0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/registry.h b/gdb/registry.h index 062a500936..cb5d0c384d 100644 --- a/gdb/registry.h +++ b/gdb/registry.h @@ -1,7 +1,6 @@ /* Macros for general registry objects. - Copyright (C) 2011, 2012 - Free Software Foundation, Inc. + Copyright (C) 2011-2013 Free Software Foundation, Inc. This file is part of GDB. @@ -46,11 +45,12 @@ - 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