fixed not passing sdk check
This commit is contained in:
parent
33988beb10
commit
f16c10d94b
|
@ -110,7 +110,7 @@ static void print_ast_to_file(AST_NODE_PTR ast, TargetConfig *target) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// create file path to write graphviz to
|
// create file path to write graphviz to
|
||||||
const char *path = make_file_path(1, target->name, ".gv", target->archive_directory);
|
const char *path = make_file_path(target->name, ".gv", 1, target->archive_directory);
|
||||||
|
|
||||||
FILE *output = fopen((const char *) path, "w");
|
FILE *output = fopen((const char *) path, "w");
|
||||||
if (output == NULL) {
|
if (output == NULL) {
|
||||||
|
|
|
@ -326,7 +326,7 @@ const char *get_absolute_path(const char *path) {
|
||||||
return strdup(absolute_path);
|
return strdup(absolute_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* make_file_path(int count, const char* name, const char* ext, ...) {
|
const char* make_file_path(const char* name, const char* ext, int count, ...) {
|
||||||
DEBUG("building file path...");
|
DEBUG("building file path...");
|
||||||
|
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
|
@ -151,6 +151,6 @@ const char* get_absolute_path(const char* path);
|
||||||
* @return A relative path of a file
|
* @return A relative path of a file
|
||||||
*/
|
*/
|
||||||
[[nodiscard("pointer must be freed")]]
|
[[nodiscard("pointer must be freed")]]
|
||||||
const char* make_file_path(int count, const char* name, const char* ext, ...);
|
const char* make_file_path(const char* name, const char* ext, int count, ...);
|
||||||
|
|
||||||
#endif //GEMSTONE_FILES_H
|
#endif //GEMSTONE_FILES_H
|
||||||
|
|
Loading…
Reference in New Issue