~ubuntu-branches/ubuntu/hardy/libgc/hardy-updates

« back to all changes in this revision

Viewing changes to tests/trace_test.c

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Murray
  • Date: 2005-02-03 00:50:53 UTC
  • mto: (3.1.1 etch) (1.2.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050203005053-9c0v9r2qcm2g1cfp
Tags: upstream-6.4
ImportĀ upstreamĀ versionĀ 6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
struct treenode * mktree(int i) {
11
11
  struct treenode * r = GC_MALLOC(sizeof(struct treenode));
12
12
  if (0 == i) return 0;
 
13
  if (1 == i) r = GC_MALLOC_ATOMIC(sizeof(struct treenode));
13
14
  r -> x = mktree(i-1);
14
15
  r -> y = mktree(i-1);
15
16
  return r;