Phase 20: package Linux builds and document release and maintenance workflows
This commit is contained in:
parent
6b85f28add
commit
830b6e1914
22 changed files with 490 additions and 17 deletions
|
|
@ -193,7 +193,7 @@ static xtc_result read_project(reader *input, xtc_project *project, const char *
|
|||
xtc_graph *graph = project->graph;
|
||||
READ("XTC_PROJECT", 2U);
|
||||
NUM(1U, version);
|
||||
if (version < 1U || version > 7U)
|
||||
if (version < 1U || version > XTC_PROJECT_FORMAT_VERSION)
|
||||
return XTC_ERR_UNSUPPORTED;
|
||||
format_version = version;
|
||||
READ("APP", 4U);
|
||||
|
|
@ -448,8 +448,8 @@ static xtc_result write_project(FILE *file, const xtc_project *project, const ch
|
|||
return XTC_ERR_UNSUPPORTED;
|
||||
if (sizeof(float) != sizeof(uint32_t) || FLT_RADIX != 2 || FLT_MANT_DIG != 24 || FLT_MAX_EXP != 128)
|
||||
return XTC_ERR_UNSUPPORTED;
|
||||
if (fprintf(file, "XTC_PROJECT 7\nAPP %d %d %d\nTEMPO %u\nIDS %" PRIu64 " %" PRIu64 "\nGRAPH %d %zu %zu %zu\n",
|
||||
XTC_VERSION_MAJOR, XTC_VERSION_MINOR, XTC_VERSION_PATCH, project->tempo, project->next_track_id,
|
||||
if (fprintf(file, "XTC_PROJECT %u\nAPP %d %d %d\nTEMPO %u\nIDS %" PRIu64 " %" PRIu64 "\nGRAPH %d %zu %zu %zu\n",
|
||||
XTC_PROJECT_FORMAT_VERSION, XTC_VERSION_MAJOR, XTC_VERSION_MINOR, XTC_VERSION_PATCH, project->tempo, project->next_track_id,
|
||||
project->next_clip_id, graph->require_output_nodes, graph->next_id, graph->node_count,
|
||||
graph->edge_count) < 0)
|
||||
return XTC_ERR_IO;
|
||||
|
|
@ -582,7 +582,11 @@ xtc_result xtc_project_load(xtc_project *project, const char *path)
|
|||
input.file = fopen(path, "rb");
|
||||
if (input.file == NULL)
|
||||
return XTC_ERR_IO;
|
||||
directory = project_folder(path);
|
||||
{
|
||||
char *canonical = realpath(path,NULL);
|
||||
directory = canonical ? project_folder(canonical) : NULL;
|
||||
free(canonical);
|
||||
}
|
||||
if (!directory) { fclose(input.file); return XTC_ERR_IO; }
|
||||
result = xtc_project_create(&candidate);
|
||||
if (result == XTC_OK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue