refactor: remove oldSize parameter from WrenReallocateFn and all call sites

Simplify the allocation API by dropping the unused `oldSize` argument from `WrenReallocateFn` typedef, its documentation, and all internal callers. Update `wrenReallocate` in `wren_vm.c` to pass only `newSize`, remove the `defaultReallocate` wrapper in favor of direct `realloc`, and adjust `generate_baseline` signature in benchmark script to match.
This commit is contained in:
Bob Nystrom
2015-03-25 14:45:29 +00:00
parent c32b586603
commit 90de831bd7
3 changed files with 14 additions and 22 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ def read_baseline():
benchmark[2] = float(best)
def generate_baseline(graph):
def generate_baseline():
print("generating baseline")
baseline_text = ""
for benchmark in BENCHMARKS: