fixed not passing sdk check

This commit is contained in:
Sven Vogel 2024-06-03 00:31:22 +02:00
parent 33988beb10
commit f16c10d94b
3 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ static void print_ast_to_file(AST_NODE_PTR ast, TargetConfig *target) {
return;
// 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");
if (output == NULL) {

View File

@ -326,7 +326,7 @@ const char *get_absolute_path(const char *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...");
va_list args;

View File

@ -151,6 +151,6 @@ const char* get_absolute_path(const char* path);
* @return A relative path of a file
*/
[[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