Skip to content

Commit

Permalink
Revert "tweaks to xxd usage"
Browse files Browse the repository at this point in the history
This reverts commit c38f857.
  • Loading branch information
StavromulaBeta committed Sep 24, 2024
1 parent c38f857 commit 2e1f011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cognac.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ void to_c(module_t* mod)
{
mkstemps(runtime_filename, 2);
FILE* runtime_file = fopen(runtime_filename, "w");
fprintf(runtime_file, "%.*s", (int)(sizeof(src_runtime_h) / sizeof(src_runtime_h[0])), (char*)src_runtime_h);
fprintf(runtime_file, "%.*s", src_runtime_h_len, (char*)src_runtime_h);
fclose(runtime_file);

char* c_source_path = strdup(mod->path);
Expand Down Expand Up @@ -3531,7 +3531,7 @@ void load_preludes(void)
prelude2.tree = NULL;
prelude2.funcs = NULL;
prelude2.uses = preludes.next;
fprintf(prelude2.file, "%.*s", (int)(sizeof(src_prelude_cog) / sizeof(src_prelude_cog[0])), (char*)src_prelude_cog);
fprintf(prelude2.file, "%.*s", src_prelude_cog_len, (char*)src_prelude_cog);
rewind(prelude2.file);
module_parse(&prelude2);
add_backlinks(&prelude2);
Expand Down

0 comments on commit 2e1f011

Please sign in to comment.