Back to index

plt-scheme  4.2.1
Classes | Defines | Functions | Variables
trace_test.c File Reference
#include <stdio.h>
#include "gc.h"

Go to the source code of this file.


struct  treenode


#define GC_DEBUG


struct treenodemktree (int i)
 main ()


struct treenoderoot [10]

Class Documentation

struct treenode

Definition at line 725 of file test.c.

Collaboration diagram for treenode:
Class Members
struct treenode * lchild
int level
struct treenode * rchild
struct treenode * x
struct treenode * y

Define Documentation

#define GC_DEBUG

Definition at line 2 of file trace_test.c.

Function Documentation

main ( void  )

Definition at line 19 of file trace_test.c.

Here is the call graph for this function:

struct treenode* mktree ( int  i) [read]

Definition at line 10 of file trace_test.c.

  struct treenode * r = GC_MALLOC(sizeof(struct treenode));
  if (0 == i) return 0;
  if (1 == i) r = GC_MALLOC_ATOMIC(sizeof(struct treenode));
  r -> x = mktree(i-1);
  r -> y = mktree(i-1);
  return r;

Here is the call graph for this function:

Variable Documentation