svn path=/trunk/netsurf/; revision=6366
This commit is contained in:
John Mark Bell 2009-02-05 15:07:19 +00:00
parent 146e26a403
commit 0ccdff104f

View File

@ -12,6 +12,8 @@
#include "utils/talloc.h"
#include "utils/utils.h"
#define ITERATIONS (1)
bool verbose_log = 0;
int option_font_size = 10;
int option_font_min_size = 10;
@ -123,6 +125,9 @@ int main(int argc, char **argv)
return 1;
}
printf("sizeof(struct css_style): %zu\n", sizeof(struct css_style));
for (int i = 0; i < ITERATIONS; i++) {
c = talloc_zero(0, struct content);
if (c == NULL) {
fprintf(stderr, "No memory for content\n");
@ -149,8 +154,6 @@ int main(int argc, char **argv)
origlen = len = ftell(fp);
fseek(fp, 0, SEEK_SET);
printf("Reading %zu bytes\n", len);
while (len >= CHUNK_SIZE) {
fread(data, 1, CHUNK_SIZE, fp);
@ -169,13 +172,10 @@ int main(int argc, char **argv)
fclose(fp);
printf("Converting\n");
css_convert(c, 100, 100);
printf("Done\n");
talloc_free(c);
}
return 0;
}