git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for disappearing characters bug in pdf2swf
[swftools.git]
/
lib
/
as3
/
files.c
diff --git
a/lib/as3/files.c
b/lib/as3/files.c
index
5cd1e2e
..
6e75fd7
100644
(file)
--- a/
lib/as3/files.c
+++ b/
lib/as3/files.c
@@
-201,7
+201,7
@@
char is_absolute(const char*filename)
return 0;
}
return 0;
}
-char*find_file(const char*filename)
+char*find_file(const char*filename, char error)
{
include_dir_t*i = current_include_dirs;
FILE*fi = 0;
{
include_dir_t*i = current_include_dirs;
FILE*fi = 0;
@@
-212,7
+212,7
@@
char*find_file(const char*filename)
return strdup(filename);
}
} else {
return strdup(filename);
}
} else {
- if(!i) {
+ if(!i && error) {
as3_warning("Include directory stack is empty, while looking for file %s", filename);
}
while(i) {
as3_warning("Include directory stack is empty, while looking for file %s", filename);
}
while(i) {
@@
-227,6
+227,9
@@
char*find_file(const char*filename)
i = i->next;
}
}
i = i->next;
}
}
+ if(!error) {
+ return 0;
+ }
as3_error("Couldn't find file %s", filename);
i = current_include_dirs;
as3_error("Couldn't find file %s", filename);
i = current_include_dirs;