mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-25 10:34:59 +02:00
9e7e804d1a
- deallocate all our data structures on exit (to help find memory leaks, bad pointers, and general logic errors) - fixed memory leak when allocating pad names in instantiation - added "magic" environment variable FPED_NO_GUI to run fped without initializing Gtk+ - added valgrind wrapper "leakcheck" - delete.c: destroy() now requires a deletion to exist - vacate_op: free string expressions - destroy_obj: free measurement labels - delete_references: use do_delete_obj so the we don't bump the group number - delete_frame: delete references after deleting the frame itself, so they end up on the stack above the frame and get destroyed first - do_delete_vec: like above, even though it doesn't matter here git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5506 99fdad57-331a-0410-800a-d7fa5415bdb3
33 lines
779 B
C
33 lines
779 B
C
/*
|
|
* delete.h - Object deletion
|
|
*
|
|
* Written 2009 by Werner Almesberger
|
|
* Copyright 2009 by Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
|
|
#ifndef DELETE_H
|
|
#define DELETE_H
|
|
|
|
|
|
#include "obj.h"
|
|
|
|
|
|
void delete_vec(struct vec *vec);
|
|
void delete_obj(struct obj *obj);
|
|
void delete_row(struct row *row);
|
|
void delete_column(struct table *table, int n);
|
|
void delete_table(struct table *table);
|
|
void delete_loop(struct loop *loop);
|
|
void delete_frame(struct frame *frame);
|
|
void destroy(void);
|
|
int undelete(void);
|
|
void purge(void);
|
|
|
|
#endif /* !DELETE_H */
|