toolchain: xpcg: update fx path api usage

This commit is contained in:
2026-07-19 13:33:05 +01:00
parent 7c2f59c7b1
commit 59034be9e6
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -1150,7 +1150,7 @@ static int emit_interface(const struct interface_definition *iface)
snprintf(path, sizeof path, "%s.h", iface->if_name); snprintf(path, sizeof path, "%s.h", iface->if_name);
fx_result result = fx_file_open( fx_result result = fx_file_open(
NULL, NULL,
FX_RV_PATH(path), FX_CSTR(path),
FX_FILE_WRITE_ONLY | FX_FILE_CREATE | FX_FILE_TRUNCATE, FX_FILE_WRITE_ONLY | FX_FILE_CREATE | FX_FILE_TRUNCATE,
&file); &file);
if (fx_result_is_error(result)) { if (fx_result_is_error(result)) {
+2 -5
View File
@@ -86,11 +86,8 @@ static int xpcg(
} }
fx_file *file = NULL; fx_file *file = NULL;
fx_result result = fx_file_open( fx_result result
NULL, = fx_file_open(NULL, FX_CSTR(path), FX_FILE_READ_ONLY, &file);
FX_RV_PATH(path),
FX_FILE_READ_ONLY,
&file);
if (fx_result_is_error(result)) { if (fx_result_is_error(result)) {
fx_throw(result); fx_throw(result);
return -1; return -1;