dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
aaf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code documentation
[aaf.git]
/
main.c
diff --git
a/main.c
b/main.c
index 58a6bf9183a58034d49fe26139635929195fcf07..a661c51e401544b56e5b7c648a484748e1d64b18 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-24,13
+24,13
@@
int main(int argc, char ** argv)
return errno;
}
return errno;
}
- if (
read_aaf
(in, &_aaf) != 0) {
+ if (
aaf_read
(in, &_aaf) != 0) {
fprintf(stderr, "Problem occured when trying to read AAF file\n");
fclose(in);
return 1;
}
fprintf(stderr, "Problem occured when trying to read AAF file\n");
fclose(in);
return 1;
}
- glyph_data =
read_aaf
_glyph_data(in, &_aaf);
+ glyph_data =
aaf_read
_glyph_data(in, &_aaf);
if (glyph_data == NULL) {
fprintf(stderr, "Problem occured when trying to read AAF glyph data\n");
fclose(in);
if (glyph_data == NULL) {
fprintf(stderr, "Problem occured when trying to read AAF glyph data\n");
fclose(in);
@@
-63,22
+63,22
@@
int main(int argc, char ** argv)
out = fopen(filename, "w");
if (out == NULL) {
perror("Unable to open file for writing glyph");
out = fopen(filename, "w");
if (out == NULL) {
perror("Unable to open file for writing glyph");
-
free_aaf
_glyph_data(glyph_data);
+
aaf_free
_glyph_data(glyph_data);
fclose(in);
return 3;
}
fclose(in);
return 3;
}
- if (
write_aaf
_glyph_as_pgm(out, glyph, data)) {
+ if (
aaf_write
_glyph_as_pgm(out, glyph, data)) {
fprintf(stderr, "Error occured when trying to write glyph into PGM\n");
fclose(out);
fprintf(stderr, "Error occured when trying to write glyph into PGM\n");
fclose(out);
-
free_aaf
_glyph_data(glyph_data);
+
aaf_free
_glyph_data(glyph_data);
fclose(in);
return 4;
}
fclose(out);
}
fclose(in);
return 4;
}
fclose(out);
}
-
free_aaf
_glyph_data(glyph_data);
+
aaf_free
_glyph_data(glyph_data);
fclose(in);
}
fclose(in);
}