memcpy(vec_add(filename, len), pathfile, len);
vec_push(filename, '/');
}
- else {
- len = strlen(pathfile);
- memcpy(vec_add(filename, len), pathfile, len);
- if (vec_last(filename) != '/')
- vec_push(filename, '/');
- }
len = strlen(file);
memcpy(vec_add(filename, len+1), file, len);
}
inlex = lex_open(filename);
if (!inlex) {
- ftepp_error(ftepp, "failed to open include file `%s`", filename);
+ ftepp_error(ftepp, "open failed on include file `%s`", filename);
vec_free(filename);
return false;
}