コード例 #1
0
ファイル: graph.c プロジェクト: crcox/lens
flag deleteGraph(Graph G) {
  hideGraph(G);
  Root->graph[G->num] = NULL;
  /* FREE(G->title); */
  FOR_EACH_TRACE(G, deleteTrace(T));
  FREE(G->trace);
  FREE(G);
  return TCL_OK;
}
コード例 #2
0
ファイル: tman_interface.c プロジェクト: svn2github/staden
/*
 * Shuts down all traces in the current trace display.
 *
 * limit_to is 0 for no limits (all traces), 1 for mini_only, 2 for
 * full only.
 */
void tman_shutdown_traces(EdStruct *xx, int limit_to) {
    int i;

    /* Shut down existing traces */
    for (i = 0; i < MAXCONTEXTS; i++) {
	if (edc[i].dc != NULL && edc[i].xx == xx) {
	    if (limit_to == 1 && edc[i].dc->mini_trace == 0)
		continue;
	    if (limit_to == 2 && edc[i].dc->mini_trace != 0)
		continue;
	    deleteTrace(xx, edc[i].dc->path);
	    edc[i].dc = NULL;
	}
    }
}