1 |
/**< |
/* |
2 |
* Ascend Instance Tree Killing |
* Ascend Instance Tree Killing |
3 |
* by Tom Epperly |
* by Tom Epperly |
4 |
* 8/16/89 |
* 8/16/89 |
28 |
* Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check the file named |
* Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check the file named |
29 |
* COPYING. |
* COPYING. |
30 |
*/ |
*/ |
|
#ifndef __DESTROYINST_H_SEEN__ |
|
|
#define __DESTROYINST_H_SEEN__ |
|
|
|
|
31 |
|
|
32 |
/**< |
/** @file |
33 |
|
* Ascend Instance Tree Killing. |
34 |
|
* <pre> |
35 |
* When #including destroyinst.h, make sure these files are #included first: |
* When #including destroyinst.h, make sure these files are #included first: |
36 |
|
* #include "utilities/ascConfig.h" |
37 |
* #include "instance_enum.h" |
* #include "instance_enum.h" |
38 |
|
* </pre> |
39 |
*/ |
*/ |
40 |
|
|
41 |
|
#ifndef __DESTROYINST_H_SEEN__ |
42 |
|
#define __DESTROYINST_H_SEEN__ |
43 |
|
|
44 |
extern void DestroyInstance(struct Instance *,struct Instance *); |
extern void DestroyInstance(struct Instance *inst, struct Instance *parent); |
45 |
/**< |
/**< |
|
* void DestroyInstance(inst,parent) |
|
|
* struct Instance *inst,*parent; |
|
46 |
* If parent is NULL, this will destroy all references to inst and deallocate |
* If parent is NULL, this will destroy all references to inst and deallocate |
47 |
* the memory associated with inst. It will delete inst's reference to its |
* the memory associated with inst. It will delete inst's reference to its |
48 |
* children. If parent is not NULL, this will destroy parent's reference |
* children. If parent is not NULL, this will destroy parent's reference |
49 |
* to inst. If this is the only reference to inst, it will deallocate the |
* to inst. If this is the only reference to inst, it will deallocate the |
50 |
* memory associated with inst. |
* memory associated with inst.<br><br> |
51 |
* |
* |
52 |
* DestroyInstance will modify the parent's of inst to remove the reference. |
* DestroyInstance will modify the parent's of inst to remove the reference. |
53 |
*/ |
*/ |
54 |
|
/* |
55 |
|
* void DestroyInstance(inst,parent) |
56 |
|
* struct Instance *inst,*parent; |
57 |
|
*/ |
58 |
|
|
59 |
|
#endif /* __DESTROYINST_H_SEEN__ */ |
60 |
|
|
|
#endif |
|
|
/**< __DESTROYINST_H_SEEN__ */ |
|