Browse Source

Change test, add .gitignore

master
Daniel 1 year ago
parent
commit
e669e441a0
2 changed files with 5 additions and 2 deletions
  1. +2
    -0
      .gitignore
  2. +3
    -2
      test.c

+ 2
- 0
.gitignore View File

@@ -0,0 +1,2 @@
*.txt
*.out

+ 3
- 2
test.c View File

@@ -24,7 +24,8 @@ void testRef(char *name, int chapter, int start, int to)
printf("Error parsing: %s %d %d:%d (%d)\n", name, chapter, start, to, err);
}

// Demo didn't have this - leaked a lot of memory..
// Demo didn't have this, leaked 1/3 of
// allocated memory
free(text);
}

@@ -37,7 +38,7 @@ int main()
}

clock_t start_time = clock();
for (int i = 0; i < 2; i++) {
for (int i = 0; i < 100; i++) {
testRef("Rev", 1, 1, 1);
}



Loading…
Cancel
Save